/* Custom variables are now injected dynamically via index.php */
:root {
    --nav-height: 160px;
    --font-main: 'Inter', sans-serif;
}


/* Authentication Modals (Moved to top for robustness) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #666;
    cursor: pointer;
    font-size: 20px;
}

.modal-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 800;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 14px;
    background: #2a2a2a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
}

.auth-form .btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.auth-form .switch-modal {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 14px;
}

.auth-form .switch-modal a {
    color: var(--accent);
    font-weight: bold;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    padding-top: var(--nav-height);
    /* Clear the fixed header */
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
}

.green-text {
    color: var(--accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Header & Player */
.fixed-hdr {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--player-bg, var(--bg-header));
    border-bottom: 2px solid var(--player-accent, var(--accent));
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 0;
    color: var(--player-text, var(--text-main));
    /* Remove padding here, rows handle it */
}

.header-player {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 8px 0;
    margin-top: -5px;
    margin-bottom: -7px;
}

.menu-bar {
    background-color: var(--menu-bg, #000);
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    font-size: 24px;
    /* Slightly smaller to fit menu row better */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}


.logo span {
    color: var(--accent);
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.main-nav>ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.main-nav a {
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Submenu / Dropdown */
.nav-has-submenu {
    position: relative;
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-dark);
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    padding: 8px 0;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    border-radius: 6px;
    margin: 0;
}

.nav-has-submenu:hover>.nav-submenu {
    display: block;
}

.nav-submenu li {
    display: block;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-submenu a {
    display: block;
    padding: 12px 20px !important;
    border: none !important;
    font-size: 14px;
    white-space: nowrap;
    text-align: left;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.nav-submenu a:hover {
    background-color: #111;
    color: var(--accent);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    width: 100%;
    border-radius: 0;
}

.play-btn {
    background-color: var(--player-accent, var(--accent));
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: transform 0.2s, background-color 0.2s;
}

.play-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.current-track {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.2;
}

.host-name {
    font-weight: bold;
}

.track-name {
    color: var(--text-muted);
}

/* Home Page */
.hero-slider {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-slider .slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-slider h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.hero-slider p {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 35px;
    color: #f1f1f1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

/* Swiper custom styles */
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent) !important;
    background: rgba(0, 0, 0, 0.4);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: background 0.3s;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5 !important;
    width: 12px !important;
    height: 12px !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent) !important;
    opacity: 1 !important;
    transform: scale(1.2);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    background-color: var(--accent);
    color: #121212;
    padding: 15px 30px;
    font-weight: 800;
    border-radius: 5px;
    text-transform: uppercase;
}

.btn-primary:hover {
    filter: brightness(1.1);
    color: #121212;
}

.latest-news {
    padding: 60px 20px;
}

.latest-news h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.img-ph {
    height: 200px;
    background-color: #333;
    /* Placeholder for images */
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.read-more {
    color: var(--accent);
    font-weight: bold;
}

.default-page {
    padding: 80px 20px;
    text-align: center;
}

.page-content-wrapper {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.page-content-wrapper h1,
.page-content-wrapper h2,
.page-content-wrapper h3 {
    color: var(--accent);
    margin-bottom: 20px;
}

.page-content-wrapper p {
    margin-bottom: 15px;
    color: #ddd;
}

/* Footer */
.main-footer {
    background-color: var(--bg-header);
    padding: 60px 0 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--accent);
    margin-bottom: 20px;
}

.branding p {
    margin-top: 15px;
    color: var(--text-muted);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}

.social-links a:hover {
    background-color: var(--accent);
    color: #121212;
}

.links ul {
    list-style: none;
}

.links ul li {
    margin-bottom: 10px;
}

.contact p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.contact i {
    color: var(--accent);
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    background: #080808;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .menu-bar-content {
        padding: 0 15px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000;
        padding: 5px 0;
        /* Reduzido de 10px */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-top: 1px solid #222;
        max-height: 80vh;
        /* Garante que não ultrapasse a tela */
        overflow-y: auto;
        /* Permite rolagem se necessário */
    }

    .main-nav.active {
        display: block;
    }

    .main-nav>ul {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        /* Reduzido de 8px */
    }

    .main-nav>ul li a {
        font-size: 14px;
        /* Reduzido de 16px */
        display: block;
        padding: 4px;
        /* Reduzido de 8px */
    }

    .nav-submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: #111;
        padding: 5px 0;
    }

    .nav-submenu a {
        text-align: center;
        font-size: 16px;
    }

    .main-layout {
        flex-direction: column;
    }

    .main-content,
    .sidebar {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Redesign Player Mobile: Full Width & Linear */
    .fixed-hdr {
        border-bottom-width: 1px;
    }

    .header-player {
        padding: 10px 0;
    }

    .player-controls {
        background: transparent;
        border-radius: 0;
        padding: 5px 15px;
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }

    .play-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .current-track {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        font-size: 12px;
    }

    .host-name {
        font-weight: 500;
        color: #fff;
    }

    .track-name {
        color: var(--accent);
        font-weight: 700;
    }

    .track-name::before {
        content: "- ";
        color: rgba(255, 255, 255, 0.3);
    }

    .vol-slider {
        display: none;
        /* Hide volume on mobile to save space */
    }
}

/* Mentions Suggestions */
#mentionSuggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    width: 200px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #333;
}

.suggestion-item:hover {
    background: var(--accent);
    color: #000;
}

.suggestion-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Profile Form */
.profile-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .profile-form .form-grid {
        grid-template-columns: 1fr;
    }
}

.main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.main-content {
    flex: 2;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Chat UI */
.chat-container {
    display: flex;
    height: 600px;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    margin-top: 40px;
}

.chat-sidebar {
    width: 260px;
    background: #252525;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.chat-profile {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.chat-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    margin-bottom: 15px;
    object-fit: cover;
}

.chat-nav {
    flex: 1;
    padding: 20px 0;
}

.chat-nav button {
    width: 100%;
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: #aaa;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-nav button.active {
    background: var(--accent);
    background-color: rgba(var(--accent-rgb), 0.1);
    /* fallback if rgb is not set */
    color: var(--accent);
    border-left: 4px solid var(--accent);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #151515;
}

.chat-header {
    padding: 15px 25px;
    background: #1e1e1e;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-messages {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Message Bubbles */
.msg-row {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.msg-row.mine {
    align-self: flex-end;
}

.msg-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.msg-row:not(.mine) .msg-bubble {
    background: #252525;
    color: #fff;
    border-bottom-left-radius: 4px;
}

.msg-row.mine .msg-bubble {
    background: var(--accent);
    color: #000;
    border-bottom-right-radius: 4px;
}

.msg-info {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
}

.mine .msg-info {
    justify-content: flex-end;
}

.msg-info .user {
    font-weight: bold;
    color: #aaa;
}

.mine .msg-info .user {
    color: var(--accent);
}

.chat-input-area {
    padding: 20px;
    background: #1e1e1e;
    border-top: 1px solid #333;
    display: flex;
    gap: 15px;
}

.chat-input-area input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #333;
    padding: 15px 20px;
    border-radius: 30px;
    color: #fff;
    outline: none;
}

.chat-send-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        height: 80vh;
    }

    .chat-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
    }

    .chat-profile,
    .chat-nav {
        display: none;
    }
}

/* ===== Player iframe wrapper ===== */
.player-iframe-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: 35px;
    overflow: hidden;
    border-radius: 0;
}

.player-iframe-wrapper iframe,
.player-iframe-wrapper object,
.player-iframe-wrapper embed {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 992px) {
    .player-iframe-wrapper {
        max-width: 100%;
        width: 100%;
        height: 35px;
        border-radius: 0;
        padding: 0;
    }
}

/* ===== Advertiser cards — padronizados ===== */
.adv-hover-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
}

.adv-hover-container:hover {
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.25);
    transform: translateY(-3px);
}

.adv-hover-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    display: block;
    transition: transform 0.3s;
}

.adv-hover-container:hover img {
    transform: scale(1.05);
}

.adv-hover-container .adv-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 8px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adv-hover-container:hover .adv-name-overlay {
    opacity: 1;
}

/* Anunciante sem imagem */
.adv-hover-container.adv-no-image {
    background: #1e1e1e;
    border: 1px dashed #444;
}

.adv-hover-container.adv-no-image span {
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}