@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #0A0A0A;
    --card-bg: #121212;
    --card-border: #1F1F1F;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --gold: #C5A880;
    --gold-hover: #D8BD97;
    --sans-serif: 'Inter', sans-serif;
    --title-font: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: var(--sans-serif);
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    letter-spacing: -0.01em;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: -0.02em;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Splash Screen (Overlay) */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

#intro-text-container {
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.intro-phrase {
    font-family: var(--title-font);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
    display: none;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.intro-phrase.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.intro-phrase.logo-title {
    font-size: 3rem;
    letter-spacing: 0.2em;
    font-weight: 400;
}

.intro-phrase.logo-image {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}


/* Header & Nav */
.navbar-siga-o {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 20px 0;
    transition: var(--transition);
}

.navbar-siga-o .navbar-brand img {
    height: 48px;
    transition: var(--transition);
}

.navbar-siga-o .nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: var(--transition);
    white-space: nowrap !important;
}

.navbar-siga-o .nav-link:hover,
.navbar-siga-o .nav-link.active {
    color: var(--gold) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    overflow: hidden;
}

/* Cinematic Hero Background Slider */
.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 5s ease-in-out; /* Duração do cross dissolve */
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide.previous {
    opacity: 1;
    z-index: 1;
}


/* Ken Burns Animações (Movimentos lentos e sutis) */
@keyframes kenburns-1 {
    0% { transform: scale(1.00) translate(0, 0); }
    100% { transform: scale(1.05) translate(-1%, -0.5%); }
}
@keyframes kenburns-2 {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.00) translate(1%, 0.5%); }
}
@keyframes kenburns-3 {
    0% { transform: scale(1.00) translate(0, 0); }
    100% { transform: scale(1.05) translate(0.5%, -1%); }
}
@keyframes kenburns-4 {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.00) translate(-1%, -0.5%); }
}
@keyframes kenburns-5 {
    0% { transform: scale(1.00) translate(0, 0); }
    100% { transform: scale(1.05) translate(-0.5%, 0.5%); }
}

.hero-slide.active:nth-child(1), .hero-slide.previous:nth-child(1) { animation: kenburns-1 30s linear forwards; }
.hero-slide.active:nth-child(2), .hero-slide.previous:nth-child(2) { animation: kenburns-2 30s linear forwards; }
.hero-slide.active:nth-child(3), .hero-slide.previous:nth-child(3) { animation: kenburns-3 30s linear forwards; }
.hero-slide.active:nth-child(4), .hero-slide.previous:nth-child(4) { animation: kenburns-4 30s linear forwards; }
.hero-slide.active:nth-child(5), .hero-slide.previous:nth-child(5) { animation: kenburns-5 30s linear forwards; }


/* Overlay de Legibilidade Escuro */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.95) 90%);
    z-index: 3;
    pointer-events: none;
}

/* Assinatura Visual: Sweep de Luz Dourada */
.light-sweep-overlay {
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(197, 168, 128, 0) 0%,
        rgba(197, 168, 128, 0.02) 40%,
        rgba(197, 168, 128, 0.08) 50%,
        rgba(197, 168, 128, 0.02) 60%,
        rgba(197, 168, 128, 0) 100%
    );
    z-index: 4;
    pointer-events: none;
    mix-blend-mode: screen;
}

.light-sweep-overlay.animate {
    animation: lightSweepEffect 5.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes lightSweepEffect {
    0% { left: -150%; }
    100% { left: 100%; }
}


.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
}

.hero-logo {
    max-width: 250px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s forwards 0.5s;
}

.hero-manifesto {
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s forwards 0.9s;
}

.hero-btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s forwards 1.3s;
}

/* Buttons */
.btn-siga-o {
    display: inline-block;
    font-family: var(--sans-serif);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    border: 1px solid var(--gold);
    background: transparent;
    padding: 14px 32px;
    border-radius: 0;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-siga-o:hover {
    background: var(--gold);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(197, 168, 128, 0.3);
}

.btn-siga-o-fill {
    display: inline-block;
    font-family: var(--sans-serif);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--bg-color);
    background: var(--gold);
    border: 1px solid var(--gold);
    padding: 14px 32px;
    border-radius: 0;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-siga-o-fill:hover {
    background: transparent;
    color: var(--gold);
    box-shadow: 0 0 20px rgba(197, 168, 128, 0.2);
}

/* Sections Configuration */
.sec-padding {
    padding: 8rem 0;
}

.sec-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.sec-heading {
    font-size: 2.2rem;
    margin-bottom: 40px;
    line-height: 1.4;
}

/* Fade-in Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Manifesto Section (Whitespace emphasis) */
.manifesto-section {
    background-color: var(--bg-color);
    text-align: center;
}

.manifesto-text {
    font-family: var(--title-font);
    font-size: 2.4rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 300;
    max-width: 900px;
    margin: 0 auto;
}

.manifesto-text p {
    margin-bottom: 3rem;
}

.manifesto-text .highlight {
    color: var(--gold);
    display: block;
    margin-top: 1.5rem;
    font-size: 1.8rem;
}

/* Quem Somos Section */
.quem-somos-img-container {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.quem-somos-img-container img {
    width: 100%;
    height: auto;
    transition: var(--transition);
    filter: grayscale(30%);
}

.quem-somos-img-container:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* Platform Cards */
.platform-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.platform-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.platform-icon {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.platform-card:hover .platform-icon {
    color: var(--gold);
}

.platform-name {
    font-family: var(--title-font);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

/* Albums & Songs Grid */
.album-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.album-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.album-cover-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.album-card:hover .album-cover {
    transform: scale(1.05);
}

.album-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.album-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.album-concept {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
    margin-top: auto;
}

.album-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.album-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Song Item Row in Playlist */
.song-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.song-row:hover {
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(197, 168, 128, 0.3);
}

.song-title-group {
    display: flex;
    align-items: center;
}

.song-number {
    font-size: 0.9rem;
    color: var(--text-muted);
    width: 40px;
}

.song-name {
    font-family: var(--title-font);
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.song-row:hover .song-name {
    color: var(--gold);
}

.song-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.song-theme-badge {
    font-size: 0.75rem;
    color: var(--gold);
    border: 1px solid rgba(197, 168, 128, 0.2);
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Mensagens (Devocionais) */
.eco-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
}

.eco-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.eco-card-body {
    padding: 40px;
}

.eco-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
}

.eco-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.eco-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Song Detail Page Layout */
.song-header-section {
    position: relative;
    padding: 10rem 0 5rem;
    border-bottom: 1px solid var(--card-border);
}

.song-concept-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
}

.lyrics-container {
    font-size: 1.2rem;
    line-height: 2.2;
    white-space: pre-wrap;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    font-family: var(--title-font);
    font-weight: 300;
}

.verse-box {
    background: #111;
    border-left: 3px solid var(--gold);
    padding: 30px;
    font-style: italic;
    font-family: var(--title-font);
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.reflection-box {
    line-height: 1.8;
}

.prayer-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    margin-top: 40px;
    border-radius: 0;
    text-align: center;
}

.prayer-box h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.prayer-text {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto;
}

/* Audio Player */
.player-container {
    background: #111;
    border: 1px solid var(--card-border);
    padding: 20px;
    margin-top: 30px;
}

/* Sharing Module */
.share-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
    cursor: pointer;
}

.share-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Footer Section */
.footer-section {
    background-color: #050505;
    border-top: 1px solid var(--card-border);
    padding: 6rem 0 3rem;
}

.footer-section p,
.footer-section span {
    color: var(--text-secondary) !important;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 30px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-phrase-group {
    font-family: var(--title-font);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-phrase-group span {
    transition: var(--transition);
}

.footer-phrase-group span:hover {
    color: var(--gold);
}

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid #111;
    padding-top: 30px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Admin Styles (Simple, Dark and clean) */
.admin-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0;
    margin-bottom: 30px;
}

.admin-header {
    background: #161616;
    border-bottom: 1px solid var(--card-border);
    padding: 20px;
    color: var(--text-primary);
}

.admin-table {
    margin-bottom: 0;
}

.admin-table th {
    background: #161616 !important;
    color: var(--gold) !important;
    border-color: var(--card-border) !important;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    background: var(--card-bg) !important;
    color: var(--text-secondary) !important;
    border-color: var(--card-border) !important;
    vertical-align: middle;
}

.form-control-siga-o {
    background: #161616;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-radius: 0;
    padding: 12px;
    transition: var(--transition);
}

.form-control-siga-o:focus {
    background: #1a1a1a;
    border-color: var(--gold);
    color: var(--text-primary);
    box-shadow: none;
}

.form-label-siga-o {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global overrides for legibility in dark mode */
.text-muted {
    color: var(--text-secondary) !important;
}

.song-number {
    color: var(--text-secondary) !important;
}

/* =============================================================================
   SIGA-O TV — APP OVERLAY STYLING (PREMIUM EXPERIENCE)
   ============================================================================= */
body.tv-active {
    overflow: hidden !important;
}

body.tv-active > *:not(#tv-app-overlay) {
    filter: blur(10px);
    transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#tv-app-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(6, 6, 6, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000; /* Supera todos os navbars e modais padrão */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.97);
    display: flex;
    flex-direction: column;
}

#tv-app-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Navbar Trigger Button */
.nav-link-tv-trigger {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    padding: 5px 14px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-link-tv-trigger.live {
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
    background-color: rgba(46, 204, 113, 0.05) !important;
    color: #2ecc71 !important;
}

.nav-link-tv-trigger.live:hover {
    border-color: #2ecc71 !important;
    background-color: rgba(46, 204, 113, 0.12) !important;
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.25);
    transform: translateY(-1px);
}

.nav-link-tv-trigger.offline {
    border: 1px solid rgba(231, 76, 60, 0.3) !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
    color: #e74c3c !important;
}

.nav-link-tv-trigger.offline:hover {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.12) !important;
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.25);
    transform: translateY(-1px);
}

.tv-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.tv-live-dot.live {
    background-color: #2ecc71;
    animation: tv-pulse-green 1.5s infinite;
}

.tv-live-dot.offline {
    background-color: #e74c3c;
    animation: tv-pulse-red 1.5s infinite;
}

@keyframes tv-pulse-green {
    0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@keyframes tv-pulse-red {
    0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
    100% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* TV App Top Header Bar */
.tv-app-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #080808;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-sizing: border-box;
    width: 100%;
}

.tv-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tv-header-logo {
    height: 26px;
    width: auto;
}

.tv-header-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 0.2em;
    font-weight: 600;
    border-left: 1px solid #222;
    padding-left: 15px;
    text-transform: uppercase;
}

.tv-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.tv-status-badge.live {
    background: rgba(46, 204, 113, 0.08);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.tv-status-badge.offline {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.25);
}

.tv-status-badge .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.tv-status-badge.live .status-dot {
    background-color: #2ecc71;
    animation: tv-pulse-green 1.5s infinite;
}

.tv-status-badge.offline .status-dot {
    background-color: #e74c3c;
}

.tv-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.tv-btn-close {
    background: transparent;
    border: 1px solid #222;
    color: #888;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tv-btn-close:hover {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
    transform: translateY(-1px);
}

/* TV Player Layout */
.tv-player-card {
    background-color: #0b0b0b;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
}

.tv-player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    overflow: hidden;
}

.tv-player-wrapper iframe, #tv-player-container-dynamic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.tv-player-footer-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    gap: 12px;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.btn-play-trigger {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-play-trigger:hover {
    transform: scale(1.05);
    background: #e5cda8;
    color: #000;
}

.tv-card {
    background: #090909;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 28px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.btn-tv-action {
    background: transparent;
    border: 1px solid #222;
    color: #aaa;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-tv-action:hover {
    border-color: var(--gold);
    color: #FFF;
    background: rgba(197, 168, 128, 0.04);
}

.grid-item-active {
    border-left: 3px solid var(--gold) !important;
    background: rgba(197, 168, 128, 0.03) !important;
}

.tv-card hr {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Layout Imersivo que cabe na tela sem rolar no Desktop */
.tv-body-container {
    display: flex;
    flex-grow: 1;
    height: calc(100vh - 75px);
    padding: 20px 40px;
    gap: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.tv-col-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    overflow: hidden;
    justify-content: center;
}

.tv-col-right {
    width: 380px;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for Right Column and Grid */
.tv-col-right::-webkit-scrollbar, .tv-grid-list::-webkit-scrollbar {
    width: 6px;
}
.tv-col-right::-webkit-scrollbar-track, .tv-grid-list::-webkit-scrollbar-track {
    background: transparent;
}
.tv-col-right::-webkit-scrollbar-thumb, .tv-grid-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.tv-col-right::-webkit-scrollbar-thumb:hover, .tv-grid-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Redução de fontes e paddings - Painéis mais definidos */
.tv-card {
    background: #090909;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 6px;
    margin-bottom: 0px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.tv-card h5 {
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.tv-card hr {
    margin: 10px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-grid-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 190px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Elementos da Grade de Programação */
.tv-grid-item {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.tv-grid-item.grid-item-active {
    border-left: 3px solid var(--gold) !important;
    background: rgba(197, 168, 128, 0.03) !important;
}

.tv-grid-time {
    font-family: monospace;
    font-size: 0.7rem;
    color: #888;
    display: block;
}

.tv-grid-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFF;
    display: block;
    margin-top: 2px;
}

.tv-grid-curator {
    font-size: 0.7rem;
    color: #666;
    display: block;
}

.badge-tv-live {
    font-family: monospace;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    background-color: #2ecc71 !important;
    color: #fff !important;
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Botão de Tema */
.tv-btn-theme {
    background: transparent;
    border: 1px solid #222;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tv-btn-theme:hover {
    border-color: var(--gold);
    color: #fff;
    background: rgba(197, 168, 128, 0.08);
}

/* --- OVERRIDES DO TEMA CLARO --- */
#tv-app-overlay.tv-light-mode {
    background-color: #F6F6F6;
    color: #222;
}

#tv-app-overlay.tv-light-mode .tv-app-header-bar {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #E5E5E5 !important;
}

#tv-app-overlay.tv-light-mode .tv-header-tag {
    color: #999 !important;
    border-left-color: #DDD !important;
}

#tv-app-overlay.tv-light-mode .tv-btn-close,
#tv-app-overlay.tv-light-mode .tv-btn-theme {
    border-color: #DDD !important;
    color: #666 !important;
}

#tv-app-overlay.tv-light-mode .tv-btn-theme:hover {
    background-color: rgba(197, 168, 128, 0.12) !important;
    color: #000 !important;
}

#tv-app-overlay.tv-light-mode .tv-player-card {
    background-color: #FFFFFF !important;
    border-color: #E5E5E5 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
}

#tv-app-overlay.tv-light-mode .tv-player-footer-controls {
    background-color: #FAFAFA !important;
    border-top-color: #E5E5E5 !important;
}

#tv-app-overlay.tv-light-mode .btn-tv-action {
    border-color: #DDD !important;
    color: #666 !important;
}

#tv-app-overlay.tv-light-mode .btn-tv-action:hover {
    border-color: var(--gold) !important;
    color: #000 !important;
    background-color: rgba(197, 168, 128, 0.08) !important;
}

#tv-app-overlay.tv-light-mode .tv-card {
    background-color: #FFFFFF !important;
    border-color: #E5E5E5 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03) !important;
}

#tv-app-overlay.tv-light-mode .tv-card h5 {
    color: #333 !important;
}

#tv-app-overlay.tv-light-mode .tv-card hr {
    border-top-color: #EEE !important;
}

#tv-app-overlay.tv-light-mode .text-white {
    color: #111111 !important;
}

#tv-app-overlay.tv-light-mode .text-secondary {
    color: #555555 !important;
}

#tv-app-overlay.tv-light-mode .text-muted {
    color: #888888 !important;
}

#tv-app-overlay.tv-light-mode .bg-black.bg-opacity-50 {
    background-color: #F8F9FA !important;
    border-color: #E5E5E5 !important;
}

#tv-app-overlay.tv-light-mode .bg-black.bg-opacity-20 {
    background-color: #FAFAFA !important;
    border-color: #E5E5E5 !important;
}

#tv-app-overlay.tv-light-mode .tv-grid-item {
    background-color: #FCFCFC !important;
    border-color: #EFEFEF !important;
}

#tv-app-overlay.tv-light-mode .tv-grid-item .tv-grid-name {
    color: #222 !important;
}

#tv-app-overlay.tv-light-mode .tv-grid-item .tv-grid-time {
    color: #777 !important;
}

#tv-app-overlay.tv-light-mode .tv-grid-item .tv-grid-curator {
    color: #999 !important;
}

#tv-app-overlay.tv-light-mode .grid-item-active {
    background-color: rgba(197, 168, 128, 0.08) !important;
    border-color: var(--gold) !important;
}

#tv-app-overlay.tv-light-mode .tv-col-right::-webkit-scrollbar-thumb,
#tv-app-overlay.tv-light-mode .tv-grid-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}
#tv-app-overlay.tv-light-mode .tv-col-right::-webkit-scrollbar-thumb:hover,
#tv-app-overlay.tv-light-mode .tv-grid-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive Mobile Layout rules */
@media (max-width: 991.98px) {
    .tv-body-container {
        flex-direction: column !important;
        height: auto !important;
        overflow-y: auto !important;
        padding: 15px !important;
        gap: 15px !important;
    }
    
    .tv-col-left, .tv-col-right {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .tv-grid-list {
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .tv-app-header-bar {
        padding: 10px 15px !important;
        height: auto !important;
    }
}

/* Card de status da transmissão ativa/próxima */
.tv-status-bar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 12px 18px;
    margin-top: 12px;
    transition: all 0.3s ease;
}
.border-md-end-tv {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 767.98px) {
    .border-md-end-tv {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
}
@keyframes tv-pulse-red-badge {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
@keyframes tv-pulse-green-badge {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Estrutura de Abas na Coluna Direita */
.tv-tabs-header {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.tv-tab-btn {
    background: transparent;
    border: none;
    color: #666;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}
.tv-tab-btn:hover {
    color: #FFF;
}
.tv-tab-btn.active {
    background: rgba(197, 168, 128, 0.08);
    color: var(--gold);
}
.tv-tab-pane {
    display: none;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
}
.tv-tab-pane.active {
    display: flex;
}

/* Calendário */
.tv-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 4px;
}
.tv-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.tv-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    color: #DDD;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.tv-calendar-day:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}
.tv-calendar-day.empty {
    opacity: 0.1;
    pointer-events: none;
    background: transparent;
    border: none;
}
.tv-calendar-day.today {
    border-color: rgba(197, 168, 128, 0.4);
    box-shadow: inset 0 0 4px rgba(197, 168, 128, 0.15);
    font-weight: bold;
    color: var(--gold);
}
.tv-calendar-day.selected {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #000 !important;
    font-weight: bold;
}
.tv-calendar-day.has-special::after {
    content: "";
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    background-color: var(--gold);
    border-radius: 50%;
}
.tv-calendar-day.selected.has-special::after {
    background-color: #000;
}

/* Light Mode Overrides para Abas e Calendário */
#tv-app-overlay.tv-light-mode .tv-status-bar-card {
    background: #FFF;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
#tv-app-overlay.tv-light-mode .border-md-end-tv {
    border-right-color: rgba(0, 0, 0, 0.06);
}
#tv-app-overlay.tv-light-mode .tv-tabs-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
#tv-app-overlay.tv-light-mode .tv-tab-btn {
    color: #666;
}
#tv-app-overlay.tv-light-mode .tv-tab-btn:hover {
    color: #000;
}
#tv-app-overlay.tv-light-mode .tv-tab-btn.active {
    background: rgba(197, 168, 128, 0.12);
    color: var(--gold);
}
#tv-app-overlay.tv-light-mode .tv-calendar-weekdays {
    color: #888;
}
#tv-app-overlay.tv-light-mode .tv-calendar-day {
    color: #333;
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}
#tv-app-overlay.tv-light-mode .tv-calendar-day:hover {
    background: rgba(0, 0, 0, 0.05);
}
#tv-app-overlay.tv-light-mode .tv-calendar-day.today {
    border-color: var(--gold);
    color: #C5A880;
}
#tv-app-overlay.tv-light-mode .tv-calendar-day.selected {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #000 !important;
}

/* Custom Premium CAPTCHA Box */
.captcha-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.captcha-container:hover {
    border-color: rgba(197, 168, 128, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.captcha-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #888;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.captcha-media-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.captcha-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #090909;
    height: 38px;
    display: flex;
    align-items: center;
}

.captcha-image-wrapper img {
    height: 100%;
    width: auto;
    display: block;
    transition: filter 0.3s;
}

.captcha-btn-refresh {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.captcha-btn-refresh:hover {
    background: rgba(197, 168, 128, 0.08);
    border-color: rgba(197, 168, 128, 0.3);
    color: var(--gold);
}

.captcha-accessibility-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
}

.captcha-question-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    color: #ccc;
    font-weight: 500;
}

.captcha-accessibility-hint {
    font-size: 0.6rem;
    color: #666;
    margin-top: 1px;
    display: block;
}

.captcha-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.captcha-input-icon {
    position: absolute;
    left: 12px;
    color: #666;
    font-size: 0.8rem;
    pointer-events: none;
}

.captcha-input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #FFF !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    padding: 8px 12px 8px 36px;
    border-radius: 6px;
    outline: none;
    transition: all 0.3s ease;
}

.captcha-input-field:focus {
    border-color: rgba(197, 168, 128, 0.4) !important;
    box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.08) !important;
}

.captcha-input-field::placeholder {
    color: #555;
}

/* Light mode overrides (se a página principal ou o modal estiver em modo claro) */
.tv-light-mode .captcha-container {
    background: #FFF;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.tv-light-mode .captcha-container:hover {
    border-color: rgba(197, 168, 128, 0.3);
    background: #FFF;
}
.tv-light-mode .captcha-label {
    color: #777;
}
.tv-light-mode .captcha-image-wrapper {
    background: #F0F0F0;
    border-color: rgba(0, 0, 0, 0.1);
}
.tv-light-mode .captcha-btn-refresh {
    background: #F9F9F9;
    border-color: rgba(0, 0, 0, 0.1);
    color: #777;
}
.tv-light-mode .captcha-btn-refresh:hover {
    background: rgba(197, 168, 128, 0.08);
    border-color: var(--gold);
    color: var(--gold);
}
.tv-light-mode .captcha-accessibility-box {
    background: #F5F5F5;
    border-color: rgba(0, 0, 0, 0.05);
}
.tv-light-mode .captcha-question-text {
    color: #444;
}
.tv-light-mode .captcha-input-field {
    background: #FFF !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #222 !important;
}
.tv-light-mode .captcha-input-field:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.1) !important;
}
.tv-light-mode .captcha-input-icon {
    color: #888;
}




