:root{
    --bg:#070707;
    --bg-soft:#0d0d0d;
    --panel:#121212;
    --panel-2:#181818;
    --text:#f7f7f7;
    --muted:#aaa;
    --line:#292929;
    --gold:#c79a43;
    --gold-dark:#8b6424;
    --red:#d82b2b;
    --radius:18px;
    --shadow:0 22px 55px rgba(0,0,0,.42);
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{
    margin:0;
    min-height:100vh;
    color:var(--text);
    font-family:Inter,Segoe UI,Arial,sans-serif;
    background:
        radial-gradient(circle at 50% -20%,rgba(199,154,67,.13),transparent 33%),
        linear-gradient(180deg,#070707,#0b0b0b);
}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}
button{cursor:pointer}
.app-shell{width:min(100%,820px);min-height:100vh;margin:0 auto;background:rgba(7,7,7,.94)}
.topbar{
    height:76px;
    position:sticky;
    top:0;
    z-index:30;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 16px;
    background:rgba(7,7,7,.9);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(199,154,67,.16);
}
.top-logo img{height:55px;max-width:210px;object-fit:contain}
.icon-button{border:0;background:transparent;color:white;font-size:25px;padding:10px}
.content{padding:20px 16px 110px}
.welcome{text-align:center;padding:2px 0 22px}
.welcome-logo{width:min(440px,92%);height:170px;object-fit:contain}
.welcome h1{margin:4px 0 7px;font-size:28px}
.welcome p{margin:0;color:var(--gold)}
.live-feature{
    position:relative;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:var(--radius);
    margin-bottom:18px;
    box-shadow:var(--shadow);
}
.live-feature.large .live-content{min-height:420px}
.live-content{
    min-height:300px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:24px;
    background:
        linear-gradient(180deg,transparent,rgba(0,0,0,.92)),
        radial-gradient(circle at 50% 25%,rgba(199,154,67,.35),transparent 28%),
        linear-gradient(135deg,#3b2514,#0b0b0b 65%);
}
.large-cross{
    margin:auto;
    font-size:92px;
    color:var(--gold);
    text-shadow:0 0 35px rgba(199,154,67,.5);
}
.live-content h2{font-size:31px;margin:0 0 5px}
.live-content p{margin:0 0 18px;color:#ddd}
.live-label{
    position:absolute;
    z-index:2;
    left:14px;
    top:14px;
    background:var(--red);
    padding:7px 10px;
    border-radius:8px;
    font-size:12px;
    font-weight:800;
}
.button{
    border:0;
    border-radius:12px;
    padding:14px 18px;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    font-weight:800;
    text-transform:uppercase;
}
.button-gold{background:linear-gradient(135deg,var(--gold),var(--gold-dark));color:white}
.button-outline{background:transparent;border:1px solid var(--line);color:white}
.full{width:100%;margin-top:12px}
.panel{
    background:linear-gradient(145deg,var(--panel-2),var(--panel));
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:17px;
    margin-bottom:18px;
    box-shadow:var(--shadow);
}
.panel-heading,.section-heading,.page-heading{margin-bottom:17px}
.panel-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.panel-heading h2,.section-heading h2,.page-heading h1{margin:3px 0 0}
.panel-heading h2{font-size:21px}
.heading-icon{font-size:28px}
.section-kicker{font-size:12px;font-weight:800;color:var(--gold);letter-spacing:.12em}
.page-heading p{color:var(--muted);margin-bottom:0}
.liturgy-preview{display:grid;grid-template-columns:1fr 120px;gap:15px}
.liturgy-preview p{margin:5px 0 13px;color:var(--muted)}
.book-art{
    border-radius:15px;
    background:radial-gradient(circle,rgba(199,154,67,.25),transparent 60%),#0c0c0c;
    display:grid;
    place-items:center;
    font-size:60px;
}
.gold-link,.section-heading a,.auth-footer a{color:var(--gold)}
.video-carousel{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;overflow:auto}
.video-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.video-card h3{font-size:14px;margin:8px 0 4px}
.video-card p{font-size:12px;color:var(--muted);margin:0}
.video-thumbnail{
    aspect-ratio:16/9;
    position:relative;
    display:grid;
    place-items:center;
    border-radius:12px;
    overflow:hidden;
    color:var(--gold);
    font-size:37px;
    background:linear-gradient(135deg,#4c2d15,#0f0f0f);
}
.video-thumbnail small{position:absolute;right:6px;bottom:6px;color:#fff;background:#000c;padding:3px 5px;border-radius:5px}
.shortcut-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:20px}
.shortcut-grid a{
    min-height:75px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:17px;
    border-radius:15px;
    border:1px solid var(--line);
    background:var(--panel);
}
.shortcut-grid span{font-size:25px}
.bottom-nav{
    position:fixed;
    left:50%;
    bottom:0;
    transform:translateX(-50%);
    z-index:35;
    width:min(100%,820px);
    display:grid;
    grid-template-columns:repeat(5,1fr);
    padding:9px 5px calc(9px + env(safe-area-inset-bottom));
    background:rgba(7,7,7,.97);
    border-top:1px solid #252525;
}
.bottom-nav a{text-align:center;color:#aaa}
.bottom-nav a.active{color:var(--gold)}
.bottom-nav span{display:block;font-size:22px}
.bottom-nav small{font-size:10px}
.side-menu{
    position:fixed;
    z-index:60;
    top:0;
    bottom:0;
    left:0;
    width:min(350px,88vw);
    padding:18px;
    background:#090909;
    border-right:1px solid var(--gold-dark);
    transform:translateX(-105%);
    transition:.25s ease;
}
.side-menu.open{transform:translateX(0)}
.side-menu-header{display:flex;justify-content:space-between;align-items:center}
.side-menu-header img{width:220px;height:105px;object-fit:contain}
.side-menu nav{display:grid;gap:5px;margin-top:18px}
.side-menu nav a{display:flex;gap:12px;padding:13px;border-radius:11px;color:#ddd}
.side-menu nav a.active,.side-menu nav a:hover{background:#171717;color:var(--gold)}
.menu-overlay{display:none;position:fixed;inset:0;background:#000b;z-index:50}
.menu-overlay.show{display:block}
.scripture p{line-height:1.72;color:#e4e4e4}
.scripture b{color:var(--gold)}
.notice{color:var(--muted)}
.article h2{font-size:18px;color:var(--gold)}
.article p{line-height:1.65}
.article hr{border:0;border-top:1px solid var(--line);margin:20px 0}
.menu-list{padding:4px 14px}
.menu-list a{
    display:flex;
    align-items:center;
    gap:13px;
    padding:15px 3px;
    border-bottom:1px solid var(--line);
}
.menu-list a:last-child{border-bottom:0}
.menu-list a>span{font-size:25px}
.menu-list a div{display:grid;gap:3px}
.menu-list small{color:var(--muted)}
.profile-header{text-align:center;padding:25px 0}
.avatar{
    width:88px;height:88px;margin:auto;border-radius:50%;
    display:grid;place-items:center;background:#eee;color:#111;font-size:38px;font-weight:800
}
.profile-header h1{margin:13px 0 4px}
.profile-header p{color:var(--muted)}
.profile-header>span{background:var(--gold);color:#111;padding:5px 11px;border-radius:8px;font-weight:800}
.auth-page>img{display:block;width:min(400px,90%);height:180px;object-fit:contain;margin:auto}
.auth-card h1{font-size:30px}
.form-grid,.auth-card form{display:grid;gap:14px}
.form-grid label,.auth-card label{display:grid;gap:7px;color:#ddd}
.form-grid input,.form-grid textarea,.auth-card input,.chat-input input{
    width:100%;border:1px solid var(--line);border-radius:12px;
    padding:14px;background:#101010;color:white
}
.auth-footer{text-align:center;color:var(--muted)}
.checkbox{display:flex!important;grid-template-columns:auto 1fr;align-items:center}
.checkbox input{width:auto}
.chat-box{min-height:55vh;display:flex;flex-direction:column;gap:12px}
.message{max-width:84%;padding:14px;border-radius:16px;line-height:1.48}
.message.assistant{align-self:flex-start;background:#181818;border:1px solid #292929}
.message.user{align-self:flex-end;background:#2a2112;border:1px solid #6d4e1f}
.chat-input{
    position:sticky;
    bottom:79px;
    display:grid;
    grid-template-columns:1fr 54px;
    gap:8px;
    padding:10px 0;
    background:#080808;
}
.chat-input button{border:0;border-radius:50%;background:var(--gold);font-size:22px}
.chip-row{display:flex;gap:8px;overflow:auto;margin-bottom:17px}
.chip{border:1px solid var(--line);border-radius:22px;background:#111;color:white;padding:9px 15px}
.chip.active{background:var(--gold);border-color:var(--gold);color:#111}
.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:18px}
.stats-grid div{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:20px}
.stats-grid b{display:block;font-size:30px;color:var(--gold)}
.stats-grid span{color:var(--muted)}
.empty-state{text-align:center;padding:70px 20px}
.empty-state span{font-size:75px;color:var(--gold)}
@media(max-width:560px){
    .welcome-logo{height:135px}
    .video-carousel{grid-template-columns:repeat(3,155px)}
    .video-grid{grid-template-columns:1fr}
    .live-content{min-height:260px}
    .live-feature.large .live-content{min-height:350px}
}

.flash{margin-bottom:14px;padding:13px 15px;border-radius:12px;border:1px solid;font-weight:700}
.flash-success{background:#102519;border-color:#285a3c;color:#b8f0c9}
.flash-error{background:#291313;border-color:#653030;color:#ffc1c1}
.profile-details{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.profile-details div{display:grid;gap:5px;padding:12px;background:#0e0e0e;border-radius:12px}
.profile-details small{color:var(--muted)}
.danger-link{color:#ff7777!important}
@media(max-width:560px){.profile-details{grid-template-columns:1fr}}

.youtube-thumbnail img{width:100%;height:100%;object-fit:cover;display:block}.youtube-video-card{display:block}.youtube-live-player{overflow:hidden;margin-bottom:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.responsive-video{position:relative;width:100%;aspect-ratio:16/9;background:#000}.responsive-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.youtube-live-info{padding:18px}.youtube-live-info h2{margin:13px 0 5px}.inline-label{position:static;display:inline-block}.upcoming-list{display:grid;gap:13px}.upcoming-item{display:grid;grid-template-columns:130px 1fr;gap:13px;align-items:center;padding-bottom:13px;border-bottom:1px solid var(--line)}.upcoming-item:last-child{border-bottom:0;padding-bottom:0}.upcoming-item img{width:130px;aspect-ratio:16/9;object-fit:cover;border-radius:10px}.upcoming-item div{display:grid;gap:6px}.upcoming-item small,.muted-text{color:var(--muted)}.api-error{border-color:#693232;color:#ffc2c2}code{color:#efc36d}@media(max-width:560px){.upcoming-item{grid-template-columns:105px 1fr}.upcoming-item img{width:105px}}


.app-version-panel h2 {
    margin: 5px 0 8px;
    color: var(--gold);
}

.app-version-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.app-version-panel code {
    color: var(--gold);
}

.chat-support-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 15px;
}

.chat-support-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--text);
    text-align: center;
    font-size: 13px;
    background: #101010;
}

.chat-support-actions a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.chat-input button:disabled,
.chat-input input:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.message.loading-message {
    color: var(--muted);
    font-style: italic;
}
/*
|--------------------------------------------------------------------------
| Cefas TV
|--------------------------------------------------------------------------
*/

.cefas-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cefas-video-card {
    display: block;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cefas-video-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.cefas-video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(
            circle,
            rgba(199, 154, 67, 0.25),
            transparent 60%
        ),
        #101010;
}

.cefas-video-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cefas-video-card:hover .cefas-video-thumbnail img {
    transform: scale(1.04);
}

.cefas-video-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 54px;
}

.cefas-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111;
    background: var(--gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
    transform: translate(-50%, -50%);
    font-size: 20px;
    padding-left: 3px;
}

.cefas-video-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 5px 7px;
    border-radius: 6px;
    color: #fff;
    background: rgba(0, 0, 0, 0.82);
    font-size: 11px;
    font-weight: 700;
}

.cefas-video-info {
    padding: 14px;
}

.cefas-video-info h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.4;
}

.cefas-video-info p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Página interna do vídeo
|--------------------------------------------------------------------------
*/

.video-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.video-page-header > span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.video-back-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: var(--panel);
}

.cefas-player-wrapper {
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #000;
    box-shadow: var(--shadow);
}

.cefas-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.cefas-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-details-panel {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            var(--panel-2),
            var(--panel)
        );
}

.video-details-panel h1 {
    margin: 7px 0 12px;
    font-size: 26px;
    line-height: 1.3;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
}

.video-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: #d5d5d5;
    line-height: 1.65;
}

.video-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.video-action-button {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--text);
    background: #101010;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
}

.video-action-button:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.related-videos-section {
    margin-top: 24px;
}

.related-videos-list {
    display: grid;
    gap: 13px;
}

.related-video-card {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}

.related-video-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.related-video-thumbnail {
    position: relative;
    width: 185px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--gold);
    background: #111;
    font-size: 34px;
}

.related-video-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.related-video-thumbnail small {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 4px 6px;
    border-radius: 5px;
    color: #fff;
    background: rgba(0, 0, 0, 0.82);
    font-size: 10px;
}

.related-video-info h3 {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
}

.related-video-info p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

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

    .video-details-panel h1 {
        font-size: 21px;
    }

    .video-actions {
        grid-template-columns: 1fr;
    }

    .related-video-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .related-video-thumbnail {
        width: 120px;
    }
}
.liturgia-home-alert {
    margin-bottom: 15px;
    padding: 11px 13px;
    border: 1px solid #6b5524;
    border-radius: 10px;
    color: #e8c56f;
    background: #211b0d;
    font-size: 12px;
    line-height: 1.5;
}

.liturgia-home-empty {
    padding: 15px 0 4px;
    color: var(--muted);
}
/*
|--------------------------------------------------------------------------
| Liturgia automática na página inicial
|--------------------------------------------------------------------------
*/

.liturgia-home-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #6b5524;
    border-radius: 10px;
    color: #e8c56f;
    background: #211b0d;
    font-size: 12px;
    line-height: 1.55;
}

.liturgia-home-empty {
    padding: 12px 0 3px;
    color: var(--muted);
    line-height: 1.55;
}
