/* ========================================================================== 
   VILA NORTE F.C. — PREMIUM EXPERIENCE LAYER V3
   Camada 100% aditiva. O style.css original continua sendo a base funcional.
   Objetivo: transformar a percepção visual/UX sem remover fluxos existentes.
   ========================================================================== */

:root {
    --premium-gold: #f0c75e;
    --premium-gold-2: #c99722;
    --premium-bordo: #680d1b;
    --premium-bordo-2: #380710;
    --premium-ink: #0d0204;
    --premium-surface: rgba(36, 7, 12, .78);
    --premium-surface-2: rgba(20, 4, 7, .9);
    --premium-line: rgba(240, 199, 94, .24);
    --premium-line-soft: rgba(255, 255, 255, .075);
    --premium-muted: rgba(255, 255, 255, .64);
    --premium-shadow: 0 28px 70px rgba(0, 0, 0, .46);
    --premium-shadow-soft: 0 14px 38px rgba(0, 0, 0, .28);
    --premium-radius-xl: 28px;
    --premium-radius-lg: 22px;
    --premium-radius-md: 16px;
    --premium-ease: cubic-bezier(.22, 1, .36, 1);
}

html {
    background: #0d0204;
}

body {
    background:
        radial-gradient(circle at 10% 15%, rgba(104, 13, 27, .24), transparent 30rem),
        radial-gradient(circle at 92% 25%, rgba(240, 199, 94, .08), transparent 25rem),
        linear-gradient(180deg, #100205 0%, #160307 38%, #0d0204 100%);
    background-attachment: fixed;
}

body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(80px);
    opacity: .16;
}

body::before {
    width: 260px;
    height: 260px;
    top: 14vh;
    left: -130px;
    background: var(--premium-bordo);
}

body::after {
    width: 220px;
    height: 220px;
    right: -120px;
    top: 55vh;
    background: var(--premium-gold-2);
    opacity: .08;
}

/* Somente a camada pública participa do stacking decorativo.
   IMPORTANTE: overlays e painel admin mantêm o position:fixed original. */
#app-public {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   SPLASH / ESTADO DA APLICAÇÃO
   -------------------------------------------------------------------------- */
#loading-screen {
    background:
        radial-gradient(circle at 50% 35%, rgba(240,199,94,.13), transparent 22rem),
        linear-gradient(160deg, #22060b, #0d0204 72%);
}

#loading-screen::before {
    content: '';
    width: 92px;
    height: 92px;
    margin-bottom: 22px;
    background: url('escudo.png') center / contain no-repeat;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,.55));
    animation: premiumCrestFloat 2.4s var(--premium-ease) infinite alternate;
}

#loading-screen .spinner {
    width: 54px;
    height: 54px;
    border-width: 3px;
    border-color: rgba(255,255,255,.09);
    border-top-color: var(--premium-gold);
    box-shadow: 0 0 30px rgba(240,199,94,.14);
}

#loading-screen h3 {
    font-size: 11px !important;
    color: rgba(255,255,255,.72) !important;
    letter-spacing: 2.5px !important;
    margin-top: 18px;
}

@keyframes premiumCrestFloat {
    from { transform: translateY(0) scale(.98); }
    to { transform: translateY(-7px) scale(1.02); }
}

#offline-banner {
    left: 50%;
    right: auto;
    top: calc(76px + env(safe-area-inset-top));
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100vw - 28px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 126, 47, .92);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* --------------------------------------------------------------------------
   HEADER — APP BAR PREMIUM
   -------------------------------------------------------------------------- */
header {
    min-height: 68px;
    padding-left: 16px;
    padding-right: 16px;
    background: linear-gradient(180deg, rgba(18,3,6,.90), rgba(18,3,6,.73));
    border-bottom: 1px solid rgba(240,199,94,.12);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    box-shadow: 0 1px 0 rgba(255,255,255,.025);
}

header.premium-scrolled {
    background: rgba(13,2,4,.94);
    box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 1px 0 rgba(240,199,94,.12);
}

.header-logo-container {
    gap: 10px;
    min-width: 0;
}

.header-logo-img {
    width: 42px;
    height: 42px;
    padding: 3px;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(240,199,94,.18), rgba(255,255,255,.02));
    border: 1px solid rgba(240,199,94,.22);
    filter: drop-shadow(0 7px 16px rgba(0,0,0,.42));
}

.header-logo-text {
    font-size: 15px;
    line-height: 1;
    letter-spacing: -.3px;
    white-space: nowrap;
}

.header-logo-text::after {
    content: 'APP OFICIAL';
    display: block;
    margin-top: 5px;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.55px;
    color: rgba(255,255,255,.45);
}

.admin-trigger {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.admin-trigger:hover,
.admin-trigger:focus-visible {
    transform: translateY(-1px) rotate(45deg);
    background: rgba(240,199,94,.14);
    border-color: rgba(240,199,94,.28);
    color: var(--premium-gold);
}

.premium-connection-chip {
    display: none;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.64);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .55px;
    text-transform: uppercase;
    white-space: nowrap;
}

.premium-connection-chip::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #39d98a;
    box-shadow: 0 0 0 4px rgba(57,217,138,.10);
}

.premium-connection-chip.is-offline::before {
    background: #ff934d;
    box-shadow: 0 0 0 4px rgba(255,147,77,.11);
}

/* --------------------------------------------------------------------------
   HERO — IDENTIDADE DE CAMPANHA
   -------------------------------------------------------------------------- */
#view-inicio {
    overflow: clip;
}

#public-hero.hero {
    height: 69svh;
    min-height: 500px;
    max-height: 760px;
    margin: 0;
    padding: 38px 20px 92px;
    border: 0;
    border-radius: 0 0 34px 34px;
    background-position: center 16%;
    box-shadow: var(--premium-shadow);
    isolation: isolate;
}

#public-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(13,2,4,.08) 0%, rgba(13,2,4,.05) 32%, rgba(13,2,4,.72) 70%, #100205 100%),
        linear-gradient(90deg, rgba(13,2,4,.60) 0%, rgba(13,2,4,.12) 55%, rgba(13,2,4,.18) 100%);
    pointer-events: none;
}

#public-hero::after {
    content: 'VILA NORTE';
    position: absolute;
    z-index: 0;
    right: -20px;
    bottom: 78px;
    font-size: clamp(58px, 17vw, 150px);
    line-height: .8;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -7px;
    color: rgba(255,255,255,.035);
    white-space: nowrap;
    pointer-events: none;
}

#public-hero .hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 760px);
    padding: 0;
}

.premium-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--premium-gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    text-shadow: none;
}

.premium-hero-kicker::before {
    content: '';
    width: 22px;
    height: 1px;
    background: currentColor;
    box-shadow: 0 0 12px rgba(240,199,94,.35);
}

#public-hero-title.hero-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 13vw, 84px);
    line-height: .86;
    letter-spacing: -3.2px;
    text-transform: uppercase;
    text-shadow: 0 12px 36px rgba(0,0,0,.55);
}

#public-hero-subtitle.hero-subtitle {
    max-width: 560px;
    margin-top: 15px;
    color: rgba(255,255,255,.76);
    font-size: clamp(13px, 3.7vw, 17px);
    line-height: 1.5;
    text-shadow: 0 4px 18px rgba(0,0,0,.55);
}

#public-live-badge.live-badge {
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,95,111,.24);
    background: rgba(126,12,27,.72);
    box-shadow: 0 10px 28px rgba(0,0,0,.24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.premium-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    text-shadow: none;
}

.premium-hero-btn {
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(13,2,4,.50);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .55px;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    transition: transform .2s var(--premium-ease), background .2s ease, border-color .2s ease;
}

.premium-hero-btn.primary {
    background: linear-gradient(135deg, #f5d06e, #c9951c);
    color: #1a0702;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(201,149,28,.18);
}

.premium-hero-btn:hover,
.premium-hero-btn:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(240,199,94,.34);
}

/* --------------------------------------------------------------------------
   PRÓXIMO JOGO — MATCH TICKET
   -------------------------------------------------------------------------- */
#public-home-countdown.home-countdown-widget {
    margin: -58px 14px 18px;
    padding: 18px 16px 16px;
    border: 1px solid rgba(240,199,94,.20);
    border-top: 1px solid rgba(240,199,94,.34);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(87,10,21,.89), rgba(18,3,6,.94) 58%),
        rgba(18,3,6,.9);
    box-shadow: 0 24px 58px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.045);
    overflow: hidden;
}

#public-home-countdown::before {
    content: 'PRÓXIMO CONFRONTO';
    display: block;
    width: fit-content;
    margin: 0 auto 14px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(240,199,94,.10);
    border: 1px solid rgba(240,199,94,.15);
    color: var(--premium-gold);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.35px;
}

#public-home-countdown .teams-preview {
    gap: 12px;
    margin-bottom: 14px;
}

#public-home-countdown .team-preview-col {
    width: 42%;
    gap: 2px;
}

#public-home-countdown .mini-crest {
    width: 56px;
    height: 56px;
    padding: 5px;
    border-radius: 17px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.07);
}

#public-home-countdown .vs-text {
    margin-top: 19px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--premium-gold);
}

#public-home-countdown .countdown-title {
    color: rgba(255,255,255,.50);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

#public-home-countdown .countdown-timer {
    gap: 7px;
}

#public-home-countdown .cd-box {
    flex: 1;
    width: auto;
    max-width: 78px;
    padding: 9px 4px;
    border-radius: 13px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

/* --------------------------------------------------------------------------
   HOME HUB — NOVA CAMADA DE EXPERIÊNCIA
   -------------------------------------------------------------------------- */
.premium-home-hub {
    margin: 0 14px 18px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    border: 1px solid rgba(255,255,255,.065);
    box-shadow: 0 18px 46px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.premium-home-hub-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.premium-home-hub-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--premium-gold);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.45px;
    text-transform: uppercase;
}

.premium-home-hub-title {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.55px;
}

.premium-home-hub-note {
    color: rgba(255,255,255,.42);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.premium-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.premium-quick-action {
    min-width: 0;
    min-height: 78px;
    padding: 10px 7px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: transform .22s var(--premium-ease), background .22s ease, border-color .22s ease;
}

.premium-quick-action:hover,
.premium-quick-action:focus-visible {
    transform: translateY(-3px);
    background: rgba(240,199,94,.075);
    border-color: rgba(240,199,94,.21);
}

.premium-quick-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--premium-gold);
    background: rgba(240,199,94,.09);
    border: 1px solid rgba(240,199,94,.12);
}

.premium-quick-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.premium-quick-label {
    max-width: 100%;
    color: rgba(255,255,255,.78);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .25px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-club-pulse {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.premium-pulse-card {
    min-width: 0;
    padding: 11px 10px;
    border-radius: 14px;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.045);
}

.premium-pulse-value {
    display: block;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.premium-pulse-label {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.40);
    font-size: 7px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .85px;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   TÍTULOS / SEÇÕES / FILTROS
   -------------------------------------------------------------------------- */
.page-header {
    padding: 30px 18px 15px;
}

.page-title {
    gap: 0;
    flex-wrap: wrap;
    font-size: clamp(18px, 5vw, 26px);
    letter-spacing: -.85px;
}

.page-title::before {
    display: none;
}

.page-title::after {
    content: '';
    width: 36px;
    height: 3px;
    display: block;
    flex-basis: 100%;
    margin-top: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--premium-gold), rgba(240,199,94,0));
}

.premium-section-kicker {
    display: block;
    margin-bottom: 6px;
    color: rgba(240,199,94,.72);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.45px;
    text-transform: uppercase;
}

.jogos-filter-bar,
.elenco-filter-bar,
.destaques-filter-bar,
.tabela-filter-bar,
.tv-filter-bar {
    margin-left: 18px !important;
    margin-right: 18px !important;
    gap: 8px !important;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.jogos-filter-bar::-webkit-scrollbar,
.elenco-filter-bar::-webkit-scrollbar,
.destaques-filter-bar::-webkit-scrollbar,
.tabela-filter-bar::-webkit-scrollbar,
.tv-filter-bar::-webkit-scrollbar {
    display: none;
}

.btn-filter {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.065);
    color: rgba(255,255,255,.64);
    font-size: 9px;
    letter-spacing: .25px;
    scroll-snap-align: start;
}

.btn-filter.active {
    background: linear-gradient(135deg, rgba(240,199,94,.98), rgba(201,151,34,.95));
    color: #190702;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(201,151,34,.14);
}

/* --------------------------------------------------------------------------
   MATCH CENTER — SCOREBOARD DE PRODUTO ESPORTIVO
   -------------------------------------------------------------------------- */
#view-partida .partida-container {
    padding-left: 14px;
    padding-right: 14px;
}

#view-partida .match-card {
    padding: 26px 14px 22px;
    border-radius: 28px;
    border: 1px solid rgba(240,199,94,.18);
    background:
        radial-gradient(circle at 50% -20%, rgba(240,199,94,.16), transparent 46%),
        linear-gradient(155deg, rgba(91,11,24,.96), rgba(24,4,8,.98) 58%, rgba(13,2,4,.99));
    box-shadow: 0 26px 70px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.045);
}

#view-partida .match-card::before {
    content: 'MATCH CENTER';
    display: block;
    margin: 0 auto 22px;
    color: rgba(255,255,255,.35);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2px;
}

#view-partida .score-row {
    margin-bottom: 20px;
    gap: 8px;
}

#view-partida .score-team {
    width: 38%;
    gap: 9px;
}

#view-partida .score-crest {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    padding: 10px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.075);
    box-shadow: 0 14px 34px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.04);
}

#view-partida .score-crest.home {
    border-color: rgba(240,199,94,.28);
    background: linear-gradient(150deg, rgba(240,199,94,.09), rgba(255,255,255,.03));
}

#view-partida .score-name {
    max-width: 120px;
    font-size: 10px;
    letter-spacing: .1px;
    color: rgba(255,255,255,.76);
}

#central-dynamic-area {
    min-width: 74px;
}

#central-dynamic-area .vs-badge {
    min-width: 48px;
    min-height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 16px;
    color: var(--premium-gold);
    background: rgba(0,0,0,.24);
    border: 1px solid rgba(240,199,94,.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

#view-partida .match-status {
    margin-bottom: 18px;
    padding: 7px 12px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.065);
    color: var(--premium-gold);
}

#view-partida .match-tabs-bar {
    gap: 6px !important;
    margin: 0 -4px 18px !important;
    padding: 4px;
    border-radius: 14px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.045);
}

#view-partida .match-tabs-bar .btn-filter {
    min-height: 36px;
    padding: 0 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
}

#view-partida .match-tabs-bar .btn-filter.active {
    background: rgba(255,255,255,.075);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(240,199,94,.11);
}

.timeline-event,
.match-lineup-box,
.stat-item,
.vote-section {
    border-radius: 15px;
    background: rgba(255,255,255,.025);
    border-color: rgba(255,255,255,.055);
}

/* --------------------------------------------------------------------------
   CARDS — JOGOS / ELENCO / NOTÍCIAS / TV / LOJA / GALERIA
   -------------------------------------------------------------------------- */
.generic-list,
.squad-grid,
.sponsors-grid,
.tournaments-grid {
    padding-left: 14px;
    padding-right: 14px;
}

.match-item,
.news-card,
.news-card-modern,
.player-card,
.product-card,
.gallery-card,
.tv-card,
.tournament-card,
.sponsor-card {
    border-color: rgba(255,255,255,.065);
    box-shadow: var(--premium-shadow-soft);
}

.match-item {
    border-radius: 18px;
    padding: 15px;
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    border-left-color: rgba(240,199,94,.30);
}

.match-score-box {
    border-radius: 9px;
}

.squad-grid {
    gap: 11px;
}

.player-card {
    border-radius: 20px;
    background: #1a0508;
    box-shadow: 0 18px 44px rgba(0,0,0,.30);
}

.player-card::after {
    background: linear-gradient(to top, rgba(10,1,3,.98) 0%, rgba(24,4,8,.72) 43%, rgba(13,2,4,.02) 78%);
}

.player-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(240,199,94,.07);
    pointer-events: none;
}

.player-number {
    top: 13px;
    right: 14px;
    color: rgba(240,199,94,.86);
    -webkit-text-stroke: 0;
    font-size: 29px;
}

.player-info {
    margin: 9px;
    padding: 11px;
    border-left: 0;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 13px;
    background: rgba(13,2,4,.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.highlight-card {
    border-radius: 22px;
    border-width: 1px;
    border-color: rgba(240,199,94,.18);
    box-shadow: 0 20px 48px rgba(0,0,0,.30);
}

.highlight-card::before {
    animation-duration: 6s;
    opacity: .35;
}

.highlight-info {
    margin: 8px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 14px;
    background: rgba(13,2,4,.60);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.news-card {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 8px;
    border-radius: 22px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.055);
    overflow: hidden;
}

.news-img {
    height: 210px;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.news-content,
#public-news-list .news-content {
    margin: 0;
    padding: 16px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(49,7,14,.92), rgba(23,4,8,.98));
    box-shadow: none;
}

.news-date,
.news-featured-badge {
    border-radius: 999px;
    background: rgba(240,199,94,.12);
    color: var(--premium-gold);
    border: 1px solid rgba(240,199,94,.12);
}

.news-title,
.news-card-title {
    letter-spacing: -.35px;
}

.news-card-modern,
.tv-card,
.product-card,
.gallery-card,
.tournament-card {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.018));
}

/* --------------------------------------------------------------------------
   TABELA / CHAVEAMENTO
   -------------------------------------------------------------------------- */
.table-container,
#public-chaveamento-container {
    padding-left: 14px;
    padding-right: 14px;
}

.league-table-wrapper {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.018);
    box-shadow: var(--premium-shadow-soft);
    overflow: auto;
}

.league-table thead {
    background: rgba(240,199,94,.07);
}

.league-table th {
    color: rgba(240,199,94,.76);
}

.league-table tbody tr:hover {
    background: rgba(240,199,94,.035);
}

/* --------------------------------------------------------------------------
   TORCIDA — CAMPOS TOUCH-FRIENDLY
   -------------------------------------------------------------------------- */
#view-torcida .generic-list > div[style*="display:flex"] {
    display: grid !important;
    grid-template-columns: minmax(90px, .7fr) minmax(0, 1.6fr) auto;
    gap: 8px !important;
}

#torcida-input-nome,
#torcida-input-recado {
    min-height: 44px;
    width: 100% !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.035) !important;
}

#view-torcida button[onclick="enviarRecadoTorcida()"] {
    min-height: 44px;
    padding: 0 16px !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, #f5d06e, #c9951c) !important;
}

/* --------------------------------------------------------------------------
   PWA INSTALL PROMPT — NOVO FLUXO NATIVO
   -------------------------------------------------------------------------- */
.premium-install-prompt {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 9997;
    display: none;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    padding: 13px;
    border-radius: 19px;
    background: rgba(18,3,6,.94);
    border: 1px solid rgba(240,199,94,.20);
    box-shadow: 0 24px 64px rgba(0,0,0,.56);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.premium-install-prompt.is-visible {
    display: flex;
    animation: premiumSlideUp .45s var(--premium-ease) both;
}

.premium-install-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(240,199,94,.10);
    border: 1px solid rgba(240,199,94,.12);
    object-fit: contain;
}

.premium-install-copy {
    min-width: 0;
    flex: 1;
}

.premium-install-copy strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 11px;
}

.premium-install-copy span {
    display: block;
    color: rgba(255,255,255,.48);
    font-size: 8px;
    line-height: 1.35;
}

.premium-install-cta,
.premium-install-close {
    border: 0;
    cursor: pointer;
}

.premium-install-cta {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 12px;
    background: var(--premium-gold);
    color: #190702;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.premium-install-close {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.55);
}

@keyframes premiumSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   MOBILE BOTTOM NAV — FLOATING APP DOCK
   -------------------------------------------------------------------------- */
.bottom-nav {
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    min-height: 64px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 22px;
    background: rgba(17,3,6,.91);
    box-shadow: 0 22px 60px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.bottom-nav .nav-item {
    min-height: 50px;
    padding: 5px 2px;
    border-radius: 16px;
    gap: 3px;
    font-size: 8px;
    color: rgba(255,255,255,.42);
}

.bottom-nav .nav-item .nav-icon {
    font-size: 17px;
    transition: transform .22s var(--premium-ease), filter .22s ease;
}

.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover,
.bottom-nav .nav-item:focus-visible {
    background: rgba(240,199,94,.075);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(240,199,94,.09);
}

.bottom-nav .nav-item.active .nav-icon {
    transform: translateY(-2px) scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(240,199,94,.22));
}

.bottom-nav .nav-item:nth-child(2) {
    position: relative;
}

.bottom-nav .nav-item:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 7px;
    right: calc(50% - 18px);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff4158;
    box-shadow: 0 0 0 3px rgba(255,65,88,.09);
}

body[data-premium-view="view-partida"] .bottom-nav .nav-item:nth-child(2) {
    background: linear-gradient(145deg, rgba(172,17,39,.65), rgba(86,9,22,.78));
    box-shadow: inset 0 0 0 1px rgba(255,87,105,.15);
}

#app-public {
    padding-bottom: 92px;
}

/* "Mais" vira bottom sheet no mobile, usando o mesmo HTML/JS existente */
#menu-mais {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    padding: 14px !important;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    border-radius: 22px !important;
    background: rgba(19,3,6,.96) !important;
    border: 1px solid rgba(240,199,94,.18) !important;
    box-shadow: 0 28px 70px rgba(0,0,0,.58) !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
}

#menu-mais[style*="display: flex"] {
    display: grid !important;
    animation: premiumSlideUp .30s var(--premium-ease) both;
}

#menu-mais::before {
    content: 'MAIS DO VILA';
    grid-column: 1 / -1;
    margin: 1px 2px 6px;
    color: rgba(240,199,94,.68);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.45px;
}

#menu-mais .nav-item-mais {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 11px !important;
    border: 1px solid rgba(255,255,255,.05) !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.025);
    font-size: 9px !important;
    text-transform: none !important;
}

/* --------------------------------------------------------------------------
   ADMIN — PRODUTO, NÃO "PAINEL CRU"
   -------------------------------------------------------------------------- */
#app-admin {
    background:
        radial-gradient(circle at 18% 8%, rgba(104,13,27,.25), transparent 32rem),
        #0f0204;
}

.admin-header {
    min-height: 72px;
    background: rgba(17,3,6,.93);
    border-bottom: 1px solid rgba(240,199,94,.11);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.admin-title {
    letter-spacing: -.25px;
}

.admin-nav {
    background: rgba(255,255,255,.018);
    border-right-color: rgba(255,255,255,.055);
}

.admin-tab {
    border-left: 0;
    border: 1px solid transparent;
    border-radius: 12px;
}

.admin-tab.active {
    border-color: rgba(240,199,94,.12);
    background: rgba(240,199,94,.075);
}

.admin-card {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
    box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

.admin-card-title {
    letter-spacing: -.2px;
}

.form-group input,
.form-group textarea,
.form-group select,
.image-url-input,
.bracket-input {
    min-height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.028);
    border-color: rgba(255,255,255,.07);
}

.btn-admin,
.btn-confirm,
.btn-cancel,
.close-admin,
.btn-mini {
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   MODAIS / TOASTS
   -------------------------------------------------------------------------- */
.modal-overlay,
.player-modal-container {
    background: rgba(7,1,2,.78);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.modal-box,
.player-modal-wrapper {
    border-radius: 24px;
    border-color: rgba(240,199,94,.13);
    box-shadow: 0 34px 90px rgba(0,0,0,.62);
}

#toast-container {
    top: calc(82px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    align-items: center;
}

.toast-msg {
    max-width: 480px;
    border-radius: 14px;
    background: rgba(240,199,94,.96);
    box-shadow: 0 20px 55px rgba(0,0,0,.46);
}

/* --------------------------------------------------------------------------
   RESPONSIVIDADE
   -------------------------------------------------------------------------- */
@media (max-width: 420px) {
    .premium-home-hub-note {
        display: none;
    }

    .premium-quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #view-torcida .generic-list > div[style*="display:flex"] {
        grid-template-columns: 1fr;
    }

    #view-partida .score-crest {
        width: 74px;
        height: 74px;
        border-radius: 21px;
    }
}

@media (min-width: 700px) {
    #public-hero.hero {
        min-height: 570px;
        height: 70vh;
        padding-left: max(32px, calc((100vw - 1120px) / 2));
        padding-right: max(32px, calc((100vw - 1120px) / 2));
        border-radius: 0 0 42px 42px;
    }

    #public-home-countdown.home-countdown-widget,
    .premium-home-hub {
        max-width: 880px;
        margin-left: auto;
        margin-right: auto;
    }

    .premium-home-hub {
        padding: 22px;
    }

    .premium-quick-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .premium-quick-action {
        min-height: 92px;
    }

    .premium-club-pulse {
        grid-template-columns: repeat(3, 1fr);
    }

    .squad-grid {
        gap: 16px;
    }

    #view-partida .match-card {
        padding: 34px 32px;
    }

    #view-partida .score-crest {
        width: 104px;
        height: 104px;
        border-radius: 30px;
    }

    #view-partida .score-name {
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    header {
        min-height: 76px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .header-logo-img {
        width: 46px;
        height: 46px;
    }

    .header-logo-text {
        font-size: 16px;
    }

    .desktop-nav {
        display: flex;
        gap: 4px;
        padding: 5px;
        border-radius: 15px;
        background: rgba(255,255,255,.027);
        border: 1px solid rgba(255,255,255,.05);
    }

    .desktop-nav > .nav-item {
        min-height: 36px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        border-radius: 10px;
        color: rgba(255,255,255,.56);
        font-size: 9px;
        letter-spacing: .2px;
        border: 0;
    }

    .desktop-nav > .nav-item.active,
    .desktop-nav > .nav-item:hover {
        color: #fff;
        background: rgba(240,199,94,.075);
        box-shadow: inset 0 0 0 1px rgba(240,199,94,.08);
    }

    .btn-baixe-app-desktop {
        min-height: 36px;
        padding: 0 14px;
        border-radius: 10px;
        background: linear-gradient(135deg, rgba(240,199,94,.96), rgba(201,151,34,.94));
        color: #1a0702;
        border: 0;
        font-size: 9px;
    }

    .premium-connection-chip {
        display: inline-flex;
        margin-left: 8px;
    }

    #public-hero.hero {
        height: 72vh;
        min-height: 610px;
        max-height: 820px;
        background-position: center 22%;
    }

    #public-hero-title.hero-title {
        font-size: clamp(66px, 7vw, 96px);
        letter-spacing: -5px;
    }

    #public-home-countdown.home-countdown-widget {
        max-width: 760px;
        margin-top: -72px;
    }

    .premium-home-hub {
        max-width: 1120px;
    }

    .premium-home-hub-head {
        margin-bottom: 18px;
    }

    .premium-club-pulse {
        margin-top: 14px;
    }

    .page-header,
    .generic-list,
    .partida-container,
    .table-container,
    .squad-grid,
    .news-container,
    .sponsors-grid,
    .tournaments-grid {
        max-width: 1180px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-header {
        padding-top: 42px;
    }

    .squad-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #view-partida .partida-container {
        max-width: 920px;
    }

    .bottom-nav {
        display: none;
    }

    #app-public {
        padding-bottom: 0;
    }

    .premium-install-prompt {
        bottom: 22px;
    }

    #menu-mais {
        display: none !important;
    }
}

@media (min-width: 1500px) {
    #public-hero .hero-content {
        width: 860px;
    }

    #public-hero-title.hero-title {
        font-size: 104px;
    }

    .page-header,
    .generic-list,
    .partida-container,
    .table-container,
    .squad-grid,
    .news-container,
    .sponsors-grid,
    .tournaments-grid,
    .premium-home-hub {
        max-width: 1320px;
    }
}

/* --------------------------------------------------------------------------
   ACESSIBILIDADE / MOTION
   -------------------------------------------------------------------------- */
[role="button"]:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--premium-gold) !important;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    #loading-screen::before,
    .premium-install-prompt.is-visible {
        animation: none !important;
    }
}

@media (hover: hover) {
    .match-item,
    .news-card,
    .news-card-modern,
    .player-card,
    .highlight-card,
    .product-card,
    .gallery-card,
    .tv-card,
    .tournament-card,
    .sponsor-card {
        transition: transform .28s var(--premium-ease), border-color .28s ease, box-shadow .28s ease;
    }

    .match-item:hover,
    .news-card:hover,
    .news-card-modern:hover,
    .player-card:hover,
    .highlight-card:hover,
    .product-card:hover,
    .gallery-card:hover,
    .tv-card:hover,
    .tournament-card:hover,
    .sponsor-card:hover {
        transform: translateY(-4px);
        border-color: rgba(240,199,94,.20);
        box-shadow: 0 24px 58px rgba(0,0,0,.34);
    }
}


/* V3.1 HOTFIX — BOOT RECOVERY */
.premium-boot-recovery {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 100001;
    width: min(92vw, 520px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(240,199,94,.28);
    border-radius: 18px;
    background: rgba(20,4,7,.96);
    box-shadow: 0 20px 70px rgba(0,0,0,.6);
    backdrop-filter: blur(18px);
}
.premium-boot-recovery strong { color: #fff; font-size: 13px; }
.premium-boot-recovery span { color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.4; }
.premium-boot-recovery button {
    grid-column: 2; grid-row: 1 / span 2;
    border: 0; border-radius: 12px; padding: 11px 14px;
    background: var(--premium-gold, #f0c75e); color: #180509;
    font-weight: 900; cursor: pointer;
}
@media (max-width: 560px) {
    .premium-boot-recovery { grid-template-columns: 1fr; }
    .premium-boot-recovery button { grid-column: 1; grid-row: auto; width: 100%; margin-top: 6px; }
}

/* ========================================================================== 
   V3.4 — MODAL + SCROLL ROOT FIX
   Corrige a causa raiz vista no vídeo: a camada premium estava sobrescrevendo
   position:fixed de modais/admin com position:relative, jogando o modal para o
   fluxo da página e criando áreas vazias/rolagem inconsistente.
   ========================================================================== */

:root {
    --vn-mobile-header-safe: calc(78px + env(safe-area-inset-top));
    --vn-desktop-header-safe: 92px;
}

/* Mantém o documento no scroll nativo do navegador. Não forçamos overflow em
   html/body aqui: o style.css original continua sendo a autoridade do scroll. */
#app-public {
    min-height: 100dvh;
    overflow: visible;
}

.view-section.active {
    overflow: visible;
}

/* Todas as páginas internas começam abaixo da app bar fixa. */
.view-section:not(#view-inicio) {
    padding-top: var(--vn-mobile-header-safe) !important;
    scroll-margin-top: var(--vn-mobile-header-safe);
}

.view-section:not(#view-inicio) > .page-header:first-child {
    padding-top: 22px !important;
}

.page-header,
.page-title {
    overflow: visible;
}

.page-title {
    max-width: 100%;
    line-height: 1.12;
    padding-top: 1px;
    padding-bottom: 2px;
    word-break: normal;
    overflow-wrap: anywhere;
}

@media (min-width: 1024px) {
    .view-section:not(#view-inicio) {
        padding-top: var(--vn-desktop-header-safe) !important;
        scroll-margin-top: var(--vn-desktop-header-safe);
    }

    .view-section:not(#view-inicio) > .page-header:first-child {
        padding-top: 20px !important;
    }
}

/* CAUSA RAIZ: estes elementos precisam permanecer fora do fluxo do documento. */
#app-admin {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
}

.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
}

.player-modal-container {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
}

.player-modal-container.active {
    position: fixed !important;
}

.player-modal-container .player-modal-wrapper {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Componentes horizontais podem deslizar lateralmente sem impedir o gesto Y. */
.jogos-filter-bar,
.elenco-filter-bar,
.destaques-filter-bar,
.tabela-filter-bar,
.tv-filter-bar,
.match-tabs-bar,
.league-table-wrapper {
    touch-action: pan-x pan-y;
}

.view-section.active:not(#view-inicio) {
    min-height: 100dvh;
}
