:root {
    /* Brand Colors */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gold: #D4AF37;
    --color-gold-light: #F4CF57;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    --color-cyan: #D4AF37;
    --color-cyan-soft: rgba(212, 175, 55, 0.22);
    --color-surface: rgba(9, 13, 24, 0.82);
    --color-surface-strong: rgba(5, 8, 16, 0.92);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    grid-template-columns: auto 1fr auto;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
}

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

html {
    font-size: 0.94rem;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    /* prevents iOS horizontal rubber-band bounce */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background:
        radial-gradient(circle at 12% 12%, rgba(212, 175, 55, 0.16), transparent 38%),
        radial-gradient(circle at 88% 14%, rgba(212, 175, 55, 0.12), transparent 32%),
        radial-gradient(circle at 50% 120%, rgba(212, 175, 55, 0.1), transparent 45%),
        linear-gradient(160deg, #02050d 0%, #060a14 45%, #03050b 100%);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    /* smooth iOS momentum scroll */
    -webkit-overflow-scrolling: touch;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at 50% 40%, black 40%, transparent 86%);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    border: 1px solid transparent;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(140deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border-color: rgba(212, 175, 55, 0.34);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(140deg, rgba(212, 175, 55, 0.22), rgba(244, 207, 87, 0.3));
    border-color: rgba(212, 175, 55, 0.58);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(140deg, #d4af37, #f4cf57);
    color: #1b1404;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover {
    background: linear-gradient(140deg, #f4cf57, #ffe28a);
}

.card {
    background: linear-gradient(160deg, rgba(12, 18, 31, 0.82), rgba(8, 12, 22, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(2, 4, 10, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(2, 4, 10, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.28);
}

/* Article detail main card in dark theme */
.article-card {
    background: #000000;
    color: #F9FAFB;
    border: 1px solid #4B5563;
}

/* Header */
.site-header {
    background: linear-gradient(120deg, rgba(6, 9, 18, 0.94) 0%, rgba(8, 12, 22, 0.95) 44%, rgba(23, 18, 6, 0.9) 100%);
    color: var(--color-white);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
    border-bottom: 1px solid rgba(212, 175, 55, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* GPU compositing — prevents scroll-induced jitter on mobile */
    will-change: transform;
    transform: translateZ(0);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-wrapper nav {
    flex: 1;
    min-width: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 50px;
    width: auto;
    background: #000000;
    border-radius: 8px;
    padding: 4px;
    filter: invert(1) hue-rotate(180deg);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.site-title span {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow: visible;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    color: var(--color-gray-200);
    position: relative;
    background: rgba(15, 23, 42, 0.36);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
    border-color: rgba(212, 175, 55, 0.45);
    background: linear-gradient(140deg, rgba(212, 175, 55, 0.13), rgba(244, 207, 87, 0.14));
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08), 0 8px 20px rgba(0, 0, 0, 0.32);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Footer */
.site-footer {
    background:
        linear-gradient(160deg, rgba(4, 9, 19, 0.96), rgba(6, 10, 20, 0.95)),
        radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.22), transparent 55%);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 11px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.06);
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.22), 0 0 18px rgba(212, 175, 55, 0.22);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0.5rem;
        right: 0.5rem;
        background: linear-gradient(150deg, rgba(5, 8, 16, 0.96), rgba(10, 16, 30, 0.95));
        border: 1px solid rgba(212, 175, 55, 0.34);
        border-radius: 14px;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(212, 175, 55, 0.12);
        padding: 0.6rem;
        gap: 0;
        animation: slideDown 0.3s ease;
        overflow: hidden;
    }

    .nav-links.active {
        display: flex;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 10px;
        border: 0;
        display: block;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(212, 175, 55, 0.1);
        padding-left: 1rem;
        transform: none;
    }

    .mobile-menu-btn {
        display: block;
        width: 40px;
        height: 40px;
        border-radius: 11px;
        border: 1px solid rgba(212, 175, 55, 0.4);
        background: rgba(212, 175, 55, 0.11);
    }

    .mobile-menu-btn.active {
        color: #221704;
        background: linear-gradient(135deg, #d4af37, #f4cf57);
        border-color: rgba(212, 175, 55, 0.85);
    }

    .news-slide {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .news-slide-media {
        min-height: 220px;
    }

    .news-slide-content {
        padding: 1.5rem;
    }

    .carousel-control {
        top: 180px;
        width: 40px;
        height: 40px;
        transform: none;
    }

    .carousel-control:hover {
        transform: scale(1.05);
    }

    .carousel-control-prev {
        left: 0.75rem;
    }

    .carousel-control-next {
        right: 0.75rem;
    }

    .news-carousel-dots {
        bottom: 0.9rem;
    }
}

/* News Card Specific Styles */
.news-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .news-image {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-gold);
    color: var(--color-black);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-content {
    padding: 1.5rem;
}

.news-carousel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #101010, #2d2d2d 50%, #b9952d 130%);
    box-shadow: var(--shadow-lg);
}

.news-carousel-viewport {
    overflow: hidden;
}

.news-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.news-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 380px;
    background: transparent;
}

.news-slide-empty {
    grid-template-columns: 1fr;
    min-height: 240px;
    background: transparent;
}

.news-slide-media {
    position: relative;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-black);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.news-date {
    font-size: 0.875rem;
    color: #6B7280;
    display: block;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.news-summary {
    color: #E5E7EB;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Homepage & list latest news under carousel */
.news-latest-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-list-item {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.news-list-thumb {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 0.65rem;
}

.news-list-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-bottom: 0.25rem;
}

.news-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: #F9FAFB;
}

.news-list-title:hover {
    color: var(--color-gold);
}

.news-list-summary {
    font-size: 0.9rem;
    color: #9CA3AF;
    margin-top: 0.15rem;
}

/* Homepage Text-Only News Grid */
.home-news-section {
    padding: 3rem 0;
    background: #050505;
    border-top: 1px solid #1a1a1a;
}
.home-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.home-news-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin: 0;
}
.home-news-header h2 span {
    color: var(--color-gold, #D4AF37);
}
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.news-text-card {
    background: linear-gradient(145deg, #0a0a0a, #111111);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.news-text-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-gold, #D4AF37);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}
.news-text-card:hover {
    transform: translateY(-5px);
    border-color: #444;
    box-shadow: 0 10px 25px -5px rgba(212, 175, 55, 0.1);
}
.news-text-card:hover::before {
    transform: scaleY(1);
}
.news-text-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.news-text-category {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold, #D4AF37);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.news-text-date {
    color: #6b7280;
    font-size: 0.8rem;
}
.news-text-title {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.news-text-excerpt {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-text-footer {
    color: var(--color-gold, #D4AF37);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease;
}
.news-text-card:hover .news-text-footer {
    gap: 0.6rem;
}
.btn-view-all-news {
    background: transparent;
    color: var(--color-gold, #D4AF37);
    border: 1px solid var(--color-gold, #D4AF37);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.btn-view-all-news:hover {
    background: var(--color-gold, #D4AF37);
    color: #000;
}

/* Full news list page */
.news-list {
    margin-top: 1rem;
}

.news-pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #9CA3AF;
}

.news-page-link {
    color: #F9FAFB;
    text-decoration: none;
}

.news-page-link:hover {
    color: var(--color-gold);
}

.news-page-current {
    margin: 0 0.5rem;
}

.read-more {
    color: #FFFFFF;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--color-gold);
}

.carousel-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.82);
    color: var(--color-white);
    cursor: pointer;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-50%) scale(1.05);
}

.carousel-control-prev {
    left: 1rem;
}

.carousel-control-next {
    right: 1rem;
}

.news-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    z-index: 2;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
}

.news-carousel-dot {
    width: 11px;
    height: 11px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.news-carousel-dot.is-active {
    background: var(--color-white);
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 20% 8%, rgba(212, 175, 55, 0.24), transparent 45%),
        radial-gradient(circle at 80% 12%, rgba(212, 175, 55, 0.2), transparent 42%),
        linear-gradient(160deg, #060c18, #02040a 55%, #070d18);
    color: white;
    padding: 3.2rem 1.5rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 5%, rgba(212, 175, 55, 0.1) 42%, transparent 72%),
        linear-gradient(-115deg, transparent 8%, rgba(212, 175, 55, 0.1) 45%, transparent 76%);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 0;
    color: var(--color-white);
    text-shadow: 0 8px 26px rgba(2, 6, 23, 0.55);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

.home-news-section {
    background:
        linear-gradient(160deg, rgba(3, 7, 15, 0.95), rgba(6, 10, 20, 0.94));
    border-top: 1px solid rgba(212, 175, 55, 0.24);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.news-carousel {
    border: 1px solid rgba(212, 175, 55, 0.32);
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.42);
}

.news-text-card {
    background: linear-gradient(150deg, rgba(10, 16, 30, 0.9), rgba(9, 14, 25, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.news-text-card:hover {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.22);
}

.sidebar-card h3,
.home-news-header h2,
.hero-title,
.section-title,
.news-title {
    letter-spacing: -0.01em;
}

.stats-table-wrap,
.att-comp-table-wrap,
.ranking-list-wrap,
.streak-card,
.home-match-card,
.mini-performance-card,
.player-card-lite,
.ranking-item,
.coach-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.24);
}

input,
select,
textarea {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.33);
    color: #f8fafc;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.72);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

.stats-table thead tr,
.mini-table th,
.att-comp-table th {
    background: linear-gradient(160deg, rgba(13, 24, 44, 0.95), rgba(15, 23, 42, 0.95));
}

.stats-table td,
.mini-table td,
.att-comp-table td {
    border-color: rgba(71, 85, 105, 0.42);
}

@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.25);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
    }
}

.news-carousel-dot.is-active {
    animation: pulseGlow 1.8s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero {
        border-radius: 14px;
        padding: 4.2rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

.article-cover-image {
    width: 100%;
    max-width: 800px;
    max-height: 420px;
    object-fit: cover;
    display: block;
    margin: 0 auto 2rem;
    border-radius: 18px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.card,
.timeline-item {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Table rows: fade only — no translate to avoid layout instability on mobile */
tr {
    animation: fadeInOpacity 0.4s ease-out forwards;
}

@keyframes fadeInOpacity {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6) {
    animation-delay: 0.6s;
}

tr:nth-child(1) {
    animation-delay: 0.05s;
}

tr:nth-child(2) {
    animation-delay: 0.1s;
}

tr:nth-child(3) {
    animation-delay: 0.15s;
}

/* ... and so on for table rows, but let's keep it simple */

/* Sidebar Layout */
.main-content {
    min-width: 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .grid-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* Sidebar Widgets */
.sidebar-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(148, 163, 184, 0.6);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

/* Home sidebar cards: dark widget style */
.card.sidebar-card {
    background: #000000;
    color: #FFFFFF;
    border: 1px solid #4B5563;
}

/* Próximos Jogos widget (js/upcoming-matches.js) */
.upcoming-matches-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #FFFFFF;
    border-bottom: 2px solid rgba(148, 163, 184, 0.6);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.upcoming-matches-title i {
    color: #D4AF37;
}

.upcoming-matches-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.upcoming-match-card {
    position: relative;
    background: linear-gradient(160deg, rgba(15, 20, 30, 0.9), rgba(5, 7, 12, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.upcoming-match-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
}

.upcoming-match-card.is-next {
    border-color: rgba(212, 175, 55, 0.55);
    background: linear-gradient(160deg, rgba(41, 33, 6, 0.55), rgba(5, 7, 12, 0.95));
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.12);
}

.upcoming-match-tag {
    position: absolute;
    top: -9px;
    right: 12px;
    background: linear-gradient(140deg, #d4af37, #f4cf57);
    color: #1b1404;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.upcoming-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: #94A3B8;
    margin-bottom: 0.65rem;
}

.upcoming-match-competition {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    color: #cbd5e1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upcoming-match-competition i {
    color: #D4AF37;
}

.upcoming-match-date {
    flex-shrink: 0;
    text-transform: capitalize;
}

.upcoming-match-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: #E5E7EB;
}

.upcoming-match-team {
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upcoming-match-team.is-santos {
    color: #FCD34D;
}

.upcoming-match-vs {
    color: #64748B;
    font-size: 0.78rem;
    font-weight: 500;
    flex-shrink: 0;
}

.upcoming-match-venue {
    text-align: center;
    font-size: 0.72rem;
    color: #64748B;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.upcoming-match-venue i {
    color: #D4AF37;
    margin-right: 0.25rem;
}

/* Responsible-gambling highlight banner */
.responsible-gaming-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 1rem 1.4rem;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(127, 29, 29, 0.35), rgba(15, 10, 5, 0.9));
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.responsible-gaming-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    font-size: 1.2rem;
}

.responsible-gaming-text strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.responsible-gaming-text span {
    display: block;
    font-size: 0.85rem;
    color: #D4AF37;
    font-weight: 600;
    margin-top: 0.15rem;
}

@media (max-width: 640px) {
    .responsible-gaming-banner {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .responsible-gaming-text strong {
        font-size: 0.92rem;
    }

    .responsible-gaming-text span {
        font-size: 0.78rem;
    }
}

/* President Widget */
.president-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.president-avatar {
    width: 50px;
    height: 50px;
    background: #020617;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #E5E7EB;
}

/* Stats Widget */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 700;
    color: var(--color-gold);
}

.last-results {
    display: flex;
    gap: 0.25rem;
}

.result {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF;
}

.result.win {
    background-color: #9CA3AF;
}

.result.draw {
    background-color: #6B7280;
}

.result.loss {
    background-color: #374151;
}

.mini-match {
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-gray-100);
    display: flex;
    justify-content: space-between;
}

/* Mini Table */
.mini-table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
}

.mini-table th {
    text-align: left;
    padding: 0.5rem;
    background: #111827;
    color: #FFFFFF;
}

.mini-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.mini-table .highlight {
    background-color: #fffbeb;
    /* Gold light */
    font-weight: 700;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Titles Widget */
.titles-list {
    list-style: none;
}

.titles-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.text-gold {
    color: var(--color-gold);
}

.days-counter {
    margin-top: 1rem;
    text-align: center;
    background: #020617;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #E5E7EB;
}

.days-counter strong {
    display: block;
    font-size: 1.5rem;
    color: var(--color-gold);
}

/* Home season panel */
.season-panel {
    padding: 2.5rem 2rem;
    background: #09090b;
    color: #ffffff;
    border: 1px solid #1f2937;
    border-top: 3px solid var(--color-gold, #D4AF37);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.season-heading {
    margin-bottom: 1rem;
    color: #ffffff;
}

.season-summary-text {
    margin-bottom: 1.2rem;
    color: #9ca3af;
    line-height: 1.7;
}

.retro-scoreboard {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.flip-stat-card {
    background: linear-gradient(180deg, #0f0f0f 0%, #1f1f1f 52%, #0d0d0d 100%);
    border: 1px solid #272727;
    border-radius: 12px;
    padding: 0.85rem 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.flip-stat-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.flip-stat-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    color: #DBDBDB;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flip-stat-value {
    display: block;
    font-family: 'Teko', sans-serif;
    /* Capped well below the card width so 4-5 digit century totals never overflow into the next card */
    font-size: clamp(1.6rem, 2.4vw, 2.8rem);
    line-height: 0.92;
    color: #F4E34D;
    letter-spacing: 0.03em;
    text-align: center;
    text-shadow: 0 0 12px rgba(244, 227, 77, 0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.aproveitamento-card .flip-stat-value {
    font-size: clamp(1.5rem, 2vw, 2.4rem);
}

.season-analytics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.1rem;
}

.season-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.season-card-link:hover,
.season-card-link:focus-visible {
    transform: translateY(-2px);
}

.analytics-card {
    background: linear-gradient(160deg, rgba(9, 12, 20, 0.92), rgba(12, 16, 26, 0.96));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.season-card-link:hover .analytics-card,
.season-card-link:focus-visible .analytics-card {
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.12);
}

.analytics-card h3 {
    margin: 0 0 0.75rem;
    color: #f8fafc;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.analytics-card h3 i {
    color: var(--color-gold);
}

.donut-chart {
    --slice-a: 0deg;
    --slice-b: 0deg;
    --slice-c: 0deg;
    width: min(170px, 100%);
    aspect-ratio: 1 / 1;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    position: relative;
    background:
        conic-gradient(
            #34d399 0deg var(--slice-a),
            #60a5fa var(--slice-a) calc(var(--slice-a) + var(--slice-b)),
            #f87171 calc(var(--slice-a) + var(--slice-b)) calc(var(--slice-a) + var(--slice-b) + var(--slice-c)),
            rgba(71, 85, 105, 0.35) calc(var(--slice-a) + var(--slice-b) + var(--slice-c)) 360deg
        );
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(212, 175, 55, 0.12);
}

#season-goals-chart {
    background:
        conic-gradient(
            #f4cf57 0deg var(--slice-a),
            #f87171 var(--slice-a) calc(var(--slice-a) + var(--slice-b)),
            rgba(71, 85, 105, 0.35) calc(var(--slice-a) + var(--slice-b)) 360deg
        );
}

.donut-chart::before {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: linear-gradient(145deg, #090d18, #03060f);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.donut-center {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.donut-center strong {
    font-family: 'Teko', sans-serif;
    font-size: 2.4rem;
    line-height: 0.9;
    color: #f8fafc;
}

.donut-center span {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.06em;
}

.analytics-legend {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.analytics-legend li {
    display: grid;
    align-items: center;
    gap: 0.45rem;
    grid-template-columns: auto 1fr auto;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    color: #e2e8f0;
    font-size: 0.82rem;
}

.legend-label {
    font-weight: 600;
    color: #f1f5f9;
}

.legend-values {
    text-align: right;
    display: grid;
    gap: 0.06rem;
}

.analytics-legend li strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    color: #1c1302;
    background: linear-gradient(145deg, #d4af37, #f4cf57);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.12rem 0.48rem;
    display: inline-flex;
    justify-self: end;
    box-shadow: 0 5px 14px rgba(212, 175, 55, 0.26);
}

.analytics-legend li small {
    color: #94a3b8;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
}

.legend-dot.wins { background: #34d399; }
.legend-dot.draws { background: #60a5fa; }
.legend-dot.losses { background: #f87171; }
.legend-dot.goals-for { background: #f4cf57; }
.legend-dot.goals-against { background: #f87171; }

.season-kpis {
    margin: 0.15rem 0 1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.season-kpi-item {
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 10px;
    padding: 0.65rem;
    text-align: center;
}

.season-kpi-item span {
    display: block;
    font-size: 0.7rem;
    color: #93a4be;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.18rem;
}

.season-kpi-item strong {
    display: block;
    font-family: 'Teko', sans-serif;
    color: #f8fafc;
    font-size: 1.95rem;
    line-height: 0.9;
}

.result-context-section {
    margin-bottom: 1.1rem;
}

.result-context-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.result-context-card {
    background: #0E1116;
    border: 1px solid #202633;
    border-radius: 10px;
    padding: 0.65rem;
    text-align: center;
}

.result-context-card span {
    display: block;
    color: #AFC1DA;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.result-context-card strong {
    display: block;
    font-family: 'Teko', sans-serif;
    color: #F4E34D;
    font-size: 2.1rem;
    line-height: 0.9;
}

.home-away-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}

.mini-performance-card {
    background: #070707;
    border: 1px solid #272727;
    border-radius: 12px;
    padding: 0.9rem;
}

.mini-performance-card h3 {
    color: #FFFFFF;
    margin-bottom: 0.6rem;
    font-size: 0.98rem;
    text-transform: uppercase;
}

.mini-performance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.mini-performance-grid div {
    background: #121212;
    border: 1px solid #202020;
    border-radius: 8px;
    padding: 0.45rem;
    text-align: center;
}

.mini-performance-grid span {
    display: block;
    color: #B9B9B9;
    font-size: 0.72rem;
    margin-bottom: 0.1rem;
}

.mini-performance-grid strong {
    display: block;
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    line-height: 0.9;
    color: #F4E34D;
}

.mini-performance-rate {
    margin-top: 0.6rem;
    color: #D0D0D0;
    font-size: 0.85rem;
}

.mini-performance-rate strong {
    color: #F4E34D;
}

.season-scorers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}
@media (max-width: 700px) {
    .season-scorers-grid {
        grid-template-columns: 1fr;
    }
}

.ranking-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ranking-feedback {
    color: #9CA3AF;
    font-size: 0.88rem;
    grid-column: 1 / -1;
    text-align: center;
    padding: 1.5rem;
    background: #0c0c10;
    border: 1px dashed #222;
    border-radius: 12px;
}

.ranking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    background: #0d0d12;
    transition: all .2s ease;
}
.ranking-row:hover {
    border-color: rgba(212, 175, 55, 0.35);
    background: #14141c;
    transform: translateY(-2px);
}

.ranking-row strong {
    color: #FFFFFF;
    font-size: 0.92rem;
}

.ranking-row span {
    color: #F4E34D;
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    line-height: 1;
}

.ranking-row-left {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.ranking-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-family: 'Teko', sans-serif;
    font-size: 1.3rem;
    line-height: 1;
    background: #16161f;
    color: #9CA3AF;
    border: 1px solid #232330;
    flex-shrink: 0;
}
.ranking-row-podium-1 .ranking-rank {
    background: linear-gradient(135deg, #FFE259 0%, #D4AF37 100%);
    color: #000;
    border-color: #D4AF37;
    font-weight: 700;
}
.ranking-row-podium-2 .ranking-rank {
    background: linear-gradient(135deg, #FFFFFF 0%, #9CA3AF 100%);
    color: #000;
    border-color: #CBD5E1;
    font-weight: 700;
}
.ranking-row-podium-3 .ranking-rank {
    background: linear-gradient(135deg, #F39C12 0%, #B85B14 100%);
    color: #fff;
    border-color: #D6A07A;
    font-weight: 700;
}

.ranking-row-podium-1 {
    border-color: #8B6E1D;
    background: linear-gradient(90deg, #2A2108 0%, #111111 90%);
}

.ranking-row-podium-2 {
    border-color: #6B7280;
    background: linear-gradient(90deg, #1F2430 0%, #111111 90%);
}

.ranking-row-podium-3 {
    border-color: #7C4A1C;
    background: linear-gradient(90deg, #2A160B 0%, #111111 90%);
}

.ranking-row-podium-1 .ranking-rank {
    background: #F4E34D;
    color: #161616;
    border-color: #F4E34D;
}

.ranking-row-podium-2 .ranking-rank {
    background: #CBD5E1;
    color: #111827;
    border-color: #CBD5E1;
}

.ranking-row-podium-3 .ranking-rank {
    background: #D6A07A;
    color: #2B1206;
    border-color: #D6A07A;
}

.ranking-row-podium-4 .ranking-rank,
.ranking-row-podium-5 .ranking-rank {
    background: #1E293B;
    color: #94A3B8;
    border-color: rgba(148,163,184,.4);
}

.goal-type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.goal-type-badge {
    display: inline-block;
    background: rgba(252,211,77,.15);
    border: 1px solid rgba(252,211,77,.4);
    color: #FCD34D;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 600;
}

.scorer-by-comp {
    font-size: 0.72rem;
    color: #94A3B8;
    margin-top: 2px;
}

.scoreboard-cell {
    font-family: monospace;
    white-space: nowrap;
    font-size: 0.88rem;
}

.attendance-summary-wrap {
    margin-top: 0.5rem;
}

.att-general-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.att-stat-card {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.att-stat-card span {
    font-size: 0.78rem;
    color: #64748b;
}

.att-stat-card strong {
    font-size: 1.1rem;
    color: #0f172a;
}

.att-stat-card small {
    font-size: 0.72rem;
    color: #64748b;
}

.att-best { border-color: #22c55e; }
.att-worst { border-color: #f97316; }

.att-comp-heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.5rem 0;
}

.att-comp-table-wrap {
    overflow-x: auto;
}

.att-comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.att-comp-table th,
.att-comp-table td {
    border: 1px solid #e2e8f0;
    padding: 0.45rem 0.7rem;
    text-align: left;
}

.att-comp-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #0f172a;
}

.panel-subheading {
    margin: 0 0 0.75rem;
    color: #ffffff;
}

.stats-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.2rem;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.stats-table thead tr {
    background: #000000;
}

.stats-table th,
.stats-table td {
    padding: 0.7rem;
    border: 1px solid #000000;
}

.stats-table th {
    color: #FFFFFF;
    text-align: center;
}

.stats-table th:first-child,
.stats-table td:first-child {
    text-align: left;
}

.stats-table td {
    color: #000000;
    text-align: center;
}

.stats-table td:nth-child(3),
.stats-table td:nth-child(4),
.stats-table td:nth-child(5) {
    color: #A07D12;
    font-weight: 700;
}

.stats-table-scorers {
    min-width: 360px;
}

.coaches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.coach-card {
    background: #000000;
    border: 1px solid #000000;
    border-radius: 10px;
    padding: 0.9rem;
}

.coach-card strong {
    display: block;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
}

.coach-card span {
    color: #D4AF37;
    font-size: 0.9rem;
}

.top-scorer-highlight {
    background: #000000;
    border: 1px solid #000000;
    border-radius: 10px;
    padding: 0.9rem;
    margin-bottom: 0.75rem;
}

.top-scorer-highlight strong {
    display: block;
    color: #FFFFFF;
}

.top-scorer-highlight span {
    color: #D4AF37;
}

.home-matches-section {
    margin-top: 1rem;
}

.home-matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.home-matches-count {
    color: #4B5563;
    font-size: 0.9rem;
    font-weight: 600;
}

.competition-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.competition-filter-btn {
    border: 1px solid #000000;
    background: #FFFFFF;
    color: #000000;
    border-radius: 999px;
    padding: 0.4rem 0.78rem;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.competition-filter-btn:hover,
.competition-filter-btn.is-active {
    background: #000000;
    color: #F4E34D;
}

.home-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.home-matches-feedback {
    color: #374151;
}

.home-match-card {
    background: #070707;
    border: 1px solid #1E1E1E;
    border-radius: 12px;
    padding: 0.9rem;
    color: #FFFFFF;
}

.home-match-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.home-match-top strong {
    color: #D4AF37;
}

.home-match-top span {
    font-size: 0.84rem;
}

.home-match-score {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.home-match-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
}

.home-match-bottom {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
}

.match-context-text {
    color: #D1D5DB;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-result-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
}

.match-result-chip.result-win {
    background: #14532D;
    color: #D1FAE5;
}

.match-result-chip.result-draw {
    background: #3F3F46;
    color: #E4E4E7;
}

.match-result-chip.result-loss {
    background: #7F1D1D;
    color: #FEE2E2;
}

@media (max-width: 1100px) {
    .retro-scoreboard {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .season-panel {
        padding: 1.2rem;
    }

    .retro-scoreboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .season-analytics {
        grid-template-columns: 1fr;
    }

    .season-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-away-stats,
    .coaches-grid {
        grid-template-columns: 1fr;
    }

    .result-context-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mini-performance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-matches-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-match-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.7rem;
}

.player-card-lite {
    background: #050505;
    color: #FFFFFF;
    border: 1px solid #1E1E1E;
    border-radius: 10px;
    padding: 0.8rem;
}

.player-card-lite h3 {
    color: #F4E34D;
    font-size: 0.98rem;
    margin-bottom: 0.45rem;
}

.player-card-lite.is-idle {
    opacity: 0.82;
}

.player-card-status {
    display: inline-flex;
    margin-bottom: 0.55rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    background: #1F2937;
    color: #E5E7EB;
}

.player-card-lite.is-played .player-card-status {
    background: #14532D;
    color: #D1FAE5;
}

.player-card-lite.is-idle .player-card-status {
    background: #7C2D12;
    color: #FFEDD5;
}

.player-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    font-size: 0.84rem;
}

.player-card-stats span {
    color: #D1D5DB;
}

.player-card-stats strong {
    color: #FFFFFF;
}

/* Rankings & Century Stats */
.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #FFFFFF;
}

.ranking-pos {
    font-weight: 700;
    color: var(--color-gold);
    width: 32px;
}

.ranking-name {
    flex: 1;
    color: #E5E7EB;
}

.ranking-value {
    font-weight: 700;
    color: #FFFFFF;
}

.ranking-feedback {
    color: #9CA3AF;
    font-size: 0.9rem;
    font-style: italic;
}

/* --- HISTORICAL STATS STYLES --- */
.streaks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.streak-card {
    background: #070707;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.streak-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.streak-card.highlight-win::before {
    background: var(--color-gold, #D4AF37);
}

.streak-card.highlight-unbeaten::before {
    background: #9ca3af;
}

.streak-card:hover {
    transform: translateY(-3px);
    border-color: #374151;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

.streak-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.streak-card.highlight-win .streak-icon {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold, #D4AF37);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.streak-card.highlight-unbeaten .streak-icon {
    background: rgba(156, 163, 175, 0.1);
    color: #e5e7eb;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.streak-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.streak-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.streak-value {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem;
    line-height: 1;
    color: #ffffff;
}

.streak-card.highlight-win .streak-value {
    color: #fcf076;
    text-shadow: 0 0 10px rgba(244, 227, 77, 0.15);
}

.streak-card.highlight-unbeaten .streak-value {
    color: #ffffff;
}

.streak-details {
    font-size: 0.8rem;
    color: #9ca3af;
}

.ranking-columns-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .ranking-columns-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* --- FOOTER QUICK LINKS --- */
.footer-quick-links {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #4b5563;
}

.footer-link {
    color: #9ca3af !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease !important;
}

.footer-link:hover {
    color: var(--gold, #D4AF37) !important;
}

.footer-divider {
    color: #4b5563;
}

/* --- DROPDOWN NAVIGATION --- */
.nav-dropdown {
    position: relative;
    padding-bottom: 4px; /* small hover-bridge so menu doesn't blink on mouse-over gap */
}

.nav-dropdown-trigger {
    gap: 0.3rem;
    cursor: pointer;
}

.nav-chevron {
    font-size: 0.65rem;
    transition: transform 0.22s ease;
    vertical-align: middle;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown-trigger[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(150deg, rgba(4, 7, 15, 0.98), rgba(8, 13, 26, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 12px;
    padding: 8px 0.45rem 0.45rem;
    list-style: none;
    min-width: 195px;
    z-index: 500;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(212, 175, 55, 0.1);
    animation: dropNavFade 0.16s ease;
}

@keyframes dropNavFade {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0);    }
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 0.85rem;
    color: #cbd5e1;
    font-size: 0.86rem;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
    text-decoration: none;
}

.nav-dropdown-menu li a i {
    color: #D4AF37;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a.active {
    background: rgba(212, 175, 55, 0.13);
    color: #D4AF37;
}

/* Mobile accordion for hamburger dropdown */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        display: none;
        animation: none;
        background: rgba(212, 175, 55, 0.05);
        border: 1px solid rgba(212, 175, 55, 0.15);
        border-radius: 10px;
        margin: 0.25rem 0 0.25rem 0.6rem;
        box-shadow: none;
        min-width: 0;
    }

    .nav-dropdown-menu.open {
        display: block;
    }

    .nav-dropdown-trigger {
        justify-content: space-between;
        width: 100%;
    }
}

/* --- HEADER SOCIAL ICONS --- */
.header-social-icons {
    display: none;
    align-items: center;
    gap: 0.38rem;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .header-social-icons {
        display: flex;
    }
}

.header-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    color: #9ca3af;
    font-size: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.3);
    transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.header-social-icon:hover {
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

/* --- MOBILE FIXED BOTTOM NAVIGATION BAR --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 64px;
    background: linear-gradient(145deg, rgba(6, 10, 20, 0.94), rgba(8, 14, 28, 0.94));
    border: 1px solid rgba(212, 175, 55, 0.36);
    border-radius: 16px;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.1rem;
    gap: 0.15rem;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(212, 175, 55, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    /* GPU layer — prevents repaint-caused jitter on scroll */
    will-change: transform;
    transform: translateZ(0);
}

.mobile-bottom-nav::-webkit-scrollbar {
    display: none;
}

.mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    color: #b8bdc6;
    text-decoration: none;
    gap: 4px;
    border-radius: 12px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    padding: 0 0.2rem;
}

.mobile-bottom-item i {
    font-size: 1.2rem;
}

.mobile-bottom-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

.mobile-bottom-item:hover,
.mobile-bottom-item.active {
    color: #f8fafc;
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.18), rgba(244, 207, 87, 0.2));
    transform: translateY(-1px);
}

.mobile-bottom-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    gap: 4px;
    color: #b8bdc6;
    border: none;
    background: transparent;
    border-radius: 12px;
    font: inherit;
    cursor: pointer;
}

.mobile-bottom-more i {
    font-size: 1.2rem;
}

.mobile-bottom-more span {
    font-size: 0.7rem;
    font-weight: 600;
}

.mobile-bottom-more:hover,
.mobile-bottom-more.active {
    color: #f8fafc;
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.18), rgba(244, 207, 87, 0.2));
}

.mobile-more-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 14, 0.54);
    backdrop-filter: blur(3px);
    z-index: 9995;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.mobile-more-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-more-sheet {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 82px;
    z-index: 9996;
    background: linear-gradient(160deg, rgba(6, 11, 22, 0.96), rgba(8, 14, 30, 0.96));
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 14px;
    padding: 0.45rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.32rem;
    transform: translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.mobile-more-sheet.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-more-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.7rem;
    border-radius: 10px;
    color: #d1d5db;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.mobile-more-item i {
    color: #D4AF37;
    width: 18px;
    text-align: center;
}

.mobile-more-item:hover,
.mobile-more-item.active {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.33);
    color: #f8fafc;
}

.no-copy-data,
.no-copy-data * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- RESPONSIVE MOBILE ADJUSTMENTS FOR STREAKS AND CARDS --- */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 92px; /* prevent mobile-bottom-nav from overlaying footer content */
    }
}

@media (max-width: 460px) {
    .mobile-more-sheet {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .streaks-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .streak-card {
        padding: 0.85rem 1rem !important;
        gap: 0.85rem !important;
    }
    .streak-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        border-radius: 8px !important;
    }
    .streak-value {
        font-size: 1.8rem !important;
    }
    .streak-details {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
}

/* --- CUSTOM SCROLLBAR --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #0f0f0f;
    border-radius: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #272727;
    border-radius: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #3f3f3f;
}

/* --- VISITOR COUNTER STYLES --- */
.visitor-counter-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.8rem;
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.visitor-counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.visitor-counter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.visitor-counter-value {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--color-gold, #D4AF37);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.visitor-counter-divider {
    width: 1px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.15);
}

.highlight-yellow {
    color: var(--color-gold, #D4AF37) !important;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

@media (max-width: 480px) {
    .visitor-counter-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 2rem;
        width: 100%;
        max-width: 280px;
    }
    .visitor-counter-divider {
        width: 80%;
        height: 1px;
    }
}

@media (max-width: 640px) {
    .home-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .home-news-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CUSTOM STANDINGS TABLE --- */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: #F9FAFB;
    white-space: nowrap;
}
.standings-table th {
    text-align: center;
    padding: 0.75rem 0.5rem;
    color: #9CA3AF;
    font-weight: 600;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.standings-table th:nth-child(2) {
    text-align: left;
    width: 100%;
}
.standings-table td {
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.standings-table td:nth-child(2) {
    text-align: left;
    font-weight: 600;
}
.standings-table tr:hover {
    background: rgba(252, 211, 77, 0.05);
}

/* =========================================================
   MOBILE STABILITY — touch device polish
   ========================================================= */

/* Fast-tap: eliminate 300ms delay on all interactive elements */
a, button, [role="button"], input, select, textarea, label {
    touch-action: manipulation;
}

/*
 * On touch-only devices (phones/tablets), :hover states fire on tap and
 * the translateY() jumps cause the famous "balança" / shake effect.
 * Strip all transform-based hover lifts when true hover is unavailable.
 */
@media (hover: none) {
    .card:hover,
    .news-text-card:hover,
    .streak-card:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-gold:hover {
        transform: none;
    }

    .nav-link:hover {
        transform: none;
    }

    .mobile-bottom-item:hover,
    .mobile-more-item:hover {
        transform: none;
    }

    .header-social-icon:hover {
        transform: none;
    }

    .mobile-menu-btn:hover {
        transform: none;
    }

    /* Keep visual feedback (color/bg) but remove position shift */
    .card:hover,
    .news-text-card:hover,
    .streak-card:hover {
        box-shadow: none;
    }
}

/*
 * Prevent the viewport from shifting sideways when absolutely-positioned
 * overlays (hamburger nav, dropdowns) have elements near the edge.
 */
@media (max-width: 768px) {
    .site-header {
        /* contain the hamburger dropdown within the viewport stack */
        overflow: visible;
    }

    /* Disable card entrance animations on mobile — reduces CLS */
    .card,
    .timeline-item {
        animation: fadeInOpacity 0.35s ease-out forwards;
    }

    /* Prevent overscroll chain from mobile-bottom-nav area */
    .mobile-bottom-nav {
        overscroll-behavior: contain;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM GATE — conteúdo bloqueado para não-membros
   ═══════════════════════════════════════════════════════════════ */

/* Wrapper da seção bloqueada */
.premium-gated {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

/* Filhos que ficam borrados quando data-premium-after é usado */
.premium-blurred-child {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    opacity: 0.4;
}

/* Gradiente + overlay sobre toda a seção */
.premium-gate-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(3, 6, 14, 0.65) 25%,
        rgba(3, 6, 14, 0.96) 55%,
        rgba(3, 6, 14, 1) 100%
    );
    z-index: 10;
}

/* Caixa central do gate */
.premium-gate-box {
    text-align: center;
    max-width: 340px;
    padding: 1.8rem 1.5rem;
    background: linear-gradient(150deg, rgba(5, 9, 18, 0.97), rgba(10, 16, 30, 0.96));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.premium-gate-icon {
    font-size: 2rem;
    color: #D4AF37;
    margin-bottom: 0.8rem;
}

.premium-gate-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.premium-gate-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.2rem;
    line-height: 1.45;
}

.premium-gate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.4rem;
    background: linear-gradient(135deg, #D4AF37, #F4CF57);
    color: #0a0e1a;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    margin-bottom: 0.8rem;
}
.premium-gate-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #0a0e1a;
}

.premium-gate-price {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.5rem;
}
.premium-gate-price strong { color: #94a3b8; }

/* Badge do membro no header */
.member-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.4);
    color: #94a3b8;
    font-size: 1rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.member-badge:hover {
    border-color: rgba(212, 175, 55, 0.5);
    color: #D4AF37;
}
.member-badge.is-premium {
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(212, 175, 55, 0.12);
    color: #D4AF37;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.1), 0 0 14px rgba(212, 175, 55, 0.2);
}

/* ── Membro sem anúncios ──────────────────────────────────────── */
body.is-premium .ads-banner,
body.is-premium [data-ad],
body.is-premium .google-ads {
    display: none !important;
}

/* ── Cards de Patrocinador na Sidebar ─────────────────────────────── */
.sidebar-sponsor-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #0d0d18 60%, #18150a 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    padding: 0 !important;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-sponsor-card:hover {
    border-color: rgba(212, 175, 55, 0.7) !important;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.sidebar-sponsor-tag {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #D4AF37;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sidebar-sponsor-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 1.25rem 1rem;
    color: #fff;
    transition: background 0.2s;
}

.sidebar-sponsor-link:hover {
    background: rgba(212, 175, 55, 0.05);
}

.sidebar-sponsor-logo-wrap {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    padding: 4px;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-sponsor-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.sidebar-sponsor-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.3rem;
}

.sidebar-sponsor-desc {
    color: #9CA3AF;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0 0 1rem;
}

.sidebar-sponsor-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #1ea952 100%);
    color: #04140a;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
    transition: all 0.2s ease;
}

.sidebar-sponsor-link:hover .sidebar-sponsor-cta {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
}

/* ── Patrocinadores no Footer (todas as páginas) ─────────────────── */
.footer-sponsors {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #0d0d18 60%, #18150a 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.footer-sponsors-title {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #D4AF37;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.footer-sponsors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.footer-sponsor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: #F9FAFB;
    transition: background 0.2s;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-sponsor-item:last-child {
    border-right: none;
}

.footer-sponsor-item:hover {
    background: rgba(212, 175, 55, 0.06);
}

.footer-sponsor-logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-sponsor-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 9px;
}

.footer-sponsor-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.footer-sponsor-info strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-sponsor-info span {
    font-size: 0.7rem;
    color: #9CA3AF;
    line-height: 1.25;
}

.footer-sponsor-cta {
    color: #25D366 !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

@media (max-width: 540px) {
    .footer-sponsors-grid {
        grid-template-columns: 1fr;
    }
    .footer-sponsor-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .footer-sponsor-item:last-child {
        border-bottom: none;
    }
}

/* ── Patrocínio: logo compartilhado (widget fixo + banner) ─────────── */
.sponsor-logo-wrap {
    position: relative;
    display: inline-block;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.sponsor-logo-wrap--sm {
    width: 54px;
    height: 54px;
}

.sponsor-logo-wrap--lg {
    width: 90px;
    height: 90px;
    margin: 0 auto 0.9rem;
    border-radius: 18px;
    background: #ffffff;
    padding: 4px;
}

.sponsor-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    border-radius: 12px;
}

.sponsor-logo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 1.5rem;
    z-index: 1;
}

/* ── Widget de patrocínio (fixo, canto da tela) ─────────────────────── */
.sponsor-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9990;
    width: 360px;
    max-width: calc(100vw - 24px);
    background: linear-gradient(160deg, rgba(8, 8, 12, 0.98), rgba(16, 16, 24, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    animation: sponsorWidgetIn 0.5s ease;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
}

.sponsor-widget:hover {
    border-color: rgba(212, 175, 55, 0.85);
    transform: translateY(-2px);
}

.sponsor-widget.sponsor-widget-hidden {
    opacity: 0;
    transform: translateY(14px) scale(0.95);
    pointer-events: none;
}

@keyframes sponsorWidgetIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sponsor-widget-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.sponsor-widget-close:hover {
    background: rgba(212, 175, 55, 0.3);
    color: #D4AF37;
}

.sponsor-widget-header {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #D4AF37;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sponsor-widget-list {
    display: flex;
    flex-direction: column;
}

.sponsor-widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #F9FAFB;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}
.sponsor-widget-item:last-child {
    border-bottom: none;
}
.sponsor-widget-item:hover {
    background: rgba(212, 175, 55, 0.08);
}

.sponsor-widget-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}
.sponsor-widget-item-desc {
    font-size: 0.72rem;
    color: #9CA3AF;
    line-height: 1.2;
}
.sponsor-widget-item-cta {
    font-size: 0.74rem;
    color: #25D366;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .sponsor-widget {
        left: 10px;
        right: 10px;
        bottom: 86px;
        width: auto;
    }
}

/* ── Banner / Modal Duplo de Patrocínio (Grande ao abrir) ────────── */
.sponsor-banner {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 4, 10, 0);
    backdrop-filter: blur(0px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    pointer-events: none;
}

.sponsor-banner.sponsor-banner-open {
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.sponsor-banner-card {
    position: relative;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(165deg, #09090e 0%, #11111a 60%, #18150a 100%);
    border: 2px solid rgba(212, 175, 55, 0.65);
    border-radius: 24px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.2);
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.sponsor-banner-open .sponsor-banner-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sponsor-banner-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.sponsor-banner-close:hover {
    background: rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    transform: rotate(90deg);
}

.sponsor-banner-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.15);
    color: #FFE259;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    padding: 0.35rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.sponsor-banner-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.3rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.sponsor-banner-main-title span {
    color: #D4AF37;
}

.sponsor-banner-main-sub {
    color: #9CA3AF;
    font-size: 0.88rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Grade Dupla de Banners */
.sponsor-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.sponsor-card-box {
    background: #0e0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.sponsor-card-box:hover {
    border-color: #D4AF37;
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.2);
}

.sponsor-card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.sponsor-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.35rem;
}

.sponsor-card-desc {
    color: #9CA3AF;
    font-size: 0.84rem;
    line-height: 1.45;
    margin: 0 0 1rem;
    flex: 1;
}

.sponsor-card-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #D1D5DB;
    background: #161622;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #282838;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sponsor-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #1ea952 100%);
    color: #04140a;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
}

.sponsor-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
    color: #000;
}

@media (max-width: 768px) {
    .sponsor-dual-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .sponsor-banner-card {
        padding: 1.5rem 1.2rem 1.2rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE — Seção de Notícias estilo Portal (UOL)
   ═══════════════════════════════════════════════════════════════ */

.uol-news-section {
    padding: 2.5rem 0 1.5rem;
}

.uol-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.uol-news-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.uol-news-header h2 span {
    color: #D4AF37;
}

/* ── Grid principal: destaque + laterais ── */
.uol-news-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.2rem;
    align-items: stretch;
}

/* ── Card de Destaque (esquerda, imagem grande) ── */
.uol-featured-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    min-height: 420px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.uol-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(212, 175, 55, 0.15);
}

.uol-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.4s ease;
}

.uol-featured-card:hover .uol-featured-img {
    transform: scale(1.04);
}

.uol-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    z-index: 2;
}

.uol-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.uol-featured-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uol-featured-excerpt {
    font-size: 0.88rem;
    color: #CBD5E1;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uol-featured-date {
    font-size: 0.78rem;
    color: #9CA3AF;
}

.uol-featured-date i {
    color: #D4AF37;
    margin-right: 0.25rem;
}

/* ── Cards Laterais (direita) ── */
.uol-side-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.uol-side-card {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    flex: 1;
    min-height: 0;
}

.uol-side-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1);
}

.uol-side-thumb-wrap {
    width: 140px;
    min-width: 140px;
    overflow: hidden;
    flex-shrink: 0;
}

.uol-side-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.uol-side-card:hover .uol-side-thumb {
    transform: scale(1.06);
}

.uol-side-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 1rem 0.8rem 0;
    gap: 0.35rem;
    min-width: 0;
}

.uol-side-badge {
    display: inline-block;
    color: #D4AF37;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.uol-side-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #F9FAFB;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.uol-side-card:hover .uol-side-title {
    color: #D4AF37;
}

.uol-side-date {
    font-size: 0.72rem;
    color: #6B7280;
}

.uol-side-date i {
    color: #D4AF37;
    margin-right: 0.2rem;
}

/* ── Responsivo: Mobile ── */
@media (max-width: 900px) {
    .uol-news-grid {
        grid-template-columns: 1fr;
    }

    .uol-featured-card {
        min-height: 300px;
    }

    .uol-side-cards {
        gap: 0.8rem;
    }
}

@media (max-width: 520px) {
    .uol-featured-card {
        min-height: 240px;
        border-radius: 10px;
    }

    .uol-featured-overlay {
        padding: 1.2rem 1rem 1rem;
    }

    .uol-featured-title {
        font-size: 1.1rem;
    }

    .uol-side-card {
        border-radius: 10px;
    }

    .uol-side-thumb-wrap {
        width: 110px;
        min-width: 110px;
    }

    .uol-side-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .uol-news-header h2 {
        font-size: 1.3rem;
    }
}

/* ── Shopee Store Card & Banner ── */
.shopee-card {
    background: linear-gradient(135deg, #1f0b07 0%, #150604 50%, #0d0302 100%) !important;
    border: 1.5px solid rgba(238, 77, 45, 0.45) !important;
    border-radius: 14px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(238, 77, 45, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.shopee-card:hover {
    transform: translateY(-3px);
    border-color: #EE4D2D !important;
    box-shadow: 0 14px 40px rgba(238, 77, 45, 0.35);
}

.shopee-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(90deg, #EE4D2D, #FF6A00);
    color: #FFF;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
}

.shopee-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #FFF;
    margin-bottom: 0.35rem;
    line-height: 1.25;
}

.shopee-desc {
    font-size: 0.82rem;
    color: #D1D5DB;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.shopee-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #EE4D2D 0%, #FF5722 100%);
    color: #FFF !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1.1rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(238, 77, 45, 0.4);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.shopee-btn:hover {
    filter: brightness(1.12);
    transform: scale(1.02);
    color: #FFF !important;
}

/* ── Product Grid inside Shopee Card ── */
.shopee-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin: 0.85rem 0 1rem 0;
}

.shopee-prod-item {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(238, 77, 45, 0.3);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.shopee-prod-item:hover {
    transform: translateY(-2px);
    border-color: #EE4D2D;
}

.shopee-prod-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #000;
    overflow: hidden;
}

.shopee-prod-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shopee-badge-discount {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #EE4D2D;
    color: #FFF;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.shopee-prod-info {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.shopee-prod-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #E2E8F0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shopee-prod-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: #FF5722;
}