/* =============================================
   TV NUPEP — StreamTV Design System
   Dark theme, red accent (#E50914)
   ============================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* NUPEP Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222;
    --surface: #1e1e1e;
    --border: rgb(255 255 255 / 8%);
    --border-light: rgb(255 255 255 / 15%);

    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-muted: #6b6b6b;

    /* NUPEP Blue Palette */
    --accent: #1A6BB3;
    --accent-hover: #3282B8;
    --accent-glow: rgb(26 107 179 / 40%);

    --rating-color: #fbbf24;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 180ms ease;
    --transition-base: 280ms ease;
    --transition-slow: 400ms ease;

    --header-height: 68px;
    --content-max: 1440px;
    --content-padding: 56px;

    --shadow-card: 0 12px 40px rgb(0 0 0 / 50%);

    /* Theme Specific Gradients */
    --header-bg: rgb(10 10 10 / 95%);
    --header-scrolled: rgb(10 10 10 / 98%);
    --hero-gradient: linear-gradient(0deg, var(--bg-primary) 0%, rgb(10 10 10 / 80%) 40%, transparent 100%);
    --hero-overlay: radial-gradient(ellipse 80% 60% at 60% 30%, rgb(229 9 20 / 12%) 0%, transparent 70%);

    --btn-secondary-bg: rgb(255 255 255 / 8%);
    --btn-secondary-hover: rgb(255 255 255 / 14%);
}

[data-theme="light"] {
    /* NUPEP Light Theme */
    --bg-primary: #F5F5F5;
    --bg-secondary: #FFF;
    --bg-card: #FFF;
    --bg-card-hover: #F0F4F8;
    --surface: #FFF;
    --border: rgb(0 0 0 / 8%);
    --border-light: rgb(0 0 0 / 12%);

    --text-primary: #1A1A1A;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    --accent: #0F3460;
    --accent-hover: #1A6BB3;
    --accent-glow: rgb(15 52 96 / 25%);

    --shadow-card: 0 8px 24px rgb(0 0 0 / 8%);

    /* Light Theme Gradients */
    --header-bg: rgb(255 255 255 / 95%);
    --header-scrolled: rgb(255 255 255 / 98%);
    --hero-gradient: linear-gradient(0deg, var(--bg-primary) 0%, rgb(255 255 255 / 80%) 40%, transparent 100%);
    --hero-overlay: radial-gradient(ellipse 80% 60% at 60% 30%, rgb(15 52 96 / 8%) 0%, transparent 70%);

    --btn-secondary-bg: rgb(0 0 0 / 5%);
    --btn-secondary-hover: rgb(0 0 0 / 10%);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / 12%);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(255 255 255 / 20%);
}

/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-base), border-color 0.3s ease;
}

.header--scrolled {
    background: var(--header-scrolled);
    border-bottom-color: var(--border);
}

.header__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header__logo-icon {
    width: 32px;
    height: 32px;
}

.header__logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.header__logo-text strong {
    font-weight: 800;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.header__nav-link:hover,
.header__nav-link--active {
    color: var(--text-primary);
}

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

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.header__search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgb(255 255 255 / 6%);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    transition: all var(--transition-base);
    width: 220px;
}

.header__search:focus-within {
    background: rgb(255 255 255 / 10%);
    border-color: var(--border-light);
    width: 300px;
}

.header__search-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.header__search-input {
    border: none;
    background: none;
    outline: none;
    font-size: 13px;
    color: var(--text-primary);
    width: 100%;
    font-family: var(--font-body);
}

.header__search-input::placeholder {
    color: var(--text-muted);
}

.header__bell {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.header__bell svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.header__bell:hover {
    background: rgb(255 255 255 / 8%);
}

.header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.header__avatar:hover {
    transform: scale(1.1);
}

.header__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Theme Toggle */
.header__theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.header__theme-toggle:hover {
    background: rgb(255 255 255 / 10%);
    color: var(--text-primary);
}

[data-theme="light"] .header__theme-toggle:hover {
    background: rgb(0 0 0 / 6%);
}

.header__theme-toggle svg {
    width: 20px;
    height: 20px;
}

.header__theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .header__theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .header__theme-toggle .icon-moon {
    display: block;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    height: 85vh;
    min-height: 560px;
    max-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: var(--header-height);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        var(--hero-overlay),
        radial-gradient(ellipse 40% 50% at 20% 60%, rgb(229 9 20 / 6%) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 800"><defs><radialGradient id="g" cx="50%" cy="40%"><stop offset="0%" stop-color="%231A6BB3" stop-opacity="0.08"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><rect fill="url(%23g)" width="1440" height="800"/></svg>') center/cover no-repeat;
    opacity: 0.5;
}

.hero__gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: var(--hero-gradient);
}

.hero__thumbnail {
    position: absolute;
    /* Align to the right edge of the content container */
    right: max(var(--content-padding), calc((100% - var(--content-max)) / 2 + var(--content-padding)));
    /* Center vertically within the visible hero area (below the fixed header) */
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    max-width: 660px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgb(0 0 0 / 60%);
    border: 1px solid var(--border-light);
    z-index: 1;
    overflow: hidden;
}

.hero__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero__thumbnail:hover img {
    transform: scale(1.03);
}

@media (width <= 1200px) {
    .hero__thumbnail {
        width: 44%;
        right: var(--content-padding);
    }
}

@media (width <= 992px) {
    .hero__thumbnail {
        opacity: 0.3;
        width: 80%;
        right: -10%;
        mask-image: linear-gradient(to left, black 30%, transparent 100%);
        pointer-events: none;
    }
}


.hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 40px var(--content-padding);
    width: 100%;
    animation: heroSlideUp 0.8s ease-out;
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.hero__badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero__badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
}

.hero__badge--exclusive {
    background: var(--accent);
}

.hero__meta {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 20px;
    text-shadow: 0 4px 40px rgb(0 0 0 / 50%);
}

.hero__title--accent {
    color: var(--accent);
    font-style: italic;
}

.hero__desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--secondary {
    background: var(--btn-secondary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    background: var(--btn-secondary-hover);
    transform: translateY(-2px);
}

/* --- Hero Player State --- */
.hero--playing .hero__content,
.hero--playing .hero__bg {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hero--playing {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.hero__player {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: #000;
    animation: playerFadeIn 0.5s ease-out;
}

@keyframes playerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero__player-wrapper {
    position: relative;
    width: 90%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 80px rgb(229 9 20 / 20%), 0 0 0 1px rgb(255 255 255 / 6%);
}

.hero__player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hero__player-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 15%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 300;
    transition: all var(--transition-fast);
    z-index: 11;
    backdrop-filter: blur(8px);
}

.hero__player-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

/* --- Hero Live Stream (Foreground Player) --- */
.hero__live-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.hero__live-container--active {
    opacity: 1;
    pointer-events: auto;
}

#hero-live-player {
    position: relative;
    width: 90%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 80px rgb(229 9 20 / 20%), 0 0 0 1px rgb(255 255 255 / 6%);
    border: none;
}

/* Badge AO VIVO */
.hero__badge--live {
    background: #E50914;
    color: white;
    animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.hero__badge--hidden {
    display: none;
}

.btn--unmute {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background: rgb(229 9 20 / 90%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgb(229 9 20 / 40%);
}

.btn--unmute-hidden {
    display: none;
}

.btn--unmute:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(229 9 20 / 60%) !important;
}

/* =============================================
   CATEGORIES
   ============================================= */
.categories {
    position: relative;
    z-index: 10;
    padding: 0 0 24px;
    margin-top: -20px;
}

.categories__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.categories__inner::-webkit-scrollbar {
    display: none;
}

.categories__btn {
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: rgb(255 255 255 / 4%);
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition-base);
    scroll-snap-align: start;
    flex-shrink: 0;
}

.categories__btn:hover {
    background: rgb(255 255 255 / 10%);
    color: var(--text-primary);
    border-color: rgb(255 255 255 / 20%);
}

.categories__btn--active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 16px var(--accent-glow);
}

/* =============================================
   SHOWCASE (Video Sections)
   ============================================= */
.showcase {
    padding: 32px 0 48px;
    position: relative;
    animation: fadeInUp 0.6s ease-out both;
}

.showcase__header {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.showcase__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.showcase__see-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: opacity var(--transition-fast);
}

.showcase__see-all:hover {
    opacity: 0.8;
}

.showcase__carousel {
    position: relative;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.showcase__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.showcase__track::-webkit-scrollbar {
    display: none;
}

.showcase__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.showcase__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(20 20 20 / 85%);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    opacity: 0;
}

.showcase__carousel:hover .showcase__arrow {
    opacity: 1;
}

.showcase__arrow:hover {
    background: rgb(40 40 40 / 95%);
    transform: translateY(-50%) scale(1.1);
}

.showcase__arrow svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.showcase__arrow--left {
    left: 20px;
}

.showcase__arrow--right {
    right: 20px;
}

/* --- Video Card --- */
.card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--accent);
    box-shadow: var(--shadow-card), 0 0 0 1px var(--accent-glow);
}

.card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-secondary);
}

.card__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__thumb-img {
    transform: scale(1.08);
}

.card__rating {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgb(0 0 0 / 70%);
    backdrop-filter: blur(6px);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: var(--rating-color);
}

.card__rating::before {
    content: '★';
    font-size: 11px;
}

.card__play-overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 40%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover .card__play-overlay {
    opacity: 1;
}

.card__play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--accent-glow);
    transform: scale(0.8);
    transition: transform var(--transition-base);
}

.card:hover .card__play-btn {
    transform: scale(1);
}

.card__play-btn svg {
    width: 18px;
    height: 18px;
    color: #fff;
    margin-left: 2px;
}

.card__info {
    padding: 14px;
}

.card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.card__meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Featured Cards (Novos Programas) --- */
.showcase__track--featured {
    gap: 20px;
}

.card--featured {
    flex: 0 0 320px;
    border-radius: var(--radius-lg);
}

.card--featured .card__thumb {
    aspect-ratio: 16 / 9;
}

.card--featured .card__badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    color: #fff;
    z-index: 2;
}

.card__badge--new {
    background: var(--accent);
}

.card__badge--live {
    background: #10b981;
}

.card__badge--popular {
    background: #3b82f6;
}

.card--featured .card__info {
    padding: 16px;
}

.card--featured .card__title {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-display);
    white-space: normal;
    line-height: 1.3;
}

.card--featured .card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.card__meta-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
}

.card__meta-rating::before {
    content: '★';
    color: var(--rating-color);
}

/* --- Continuar Assistindo (Progress bar) --- */
.card--progress .card__thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 0 2px 0 0;
    z-index: 2;
}

.card--progress[data-progress="30"] .card__thumb::after {
    width: 30%;
}

.card--progress[data-progress="50"] .card__thumb::after {
    width: 50%;
}

.card--progress[data-progress="70"] .card__thumb::after {
    width: 70%;
}

.card--progress[data-progress="85"] .card__thumb::after {
    width: 85%;
}

.card__duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgb(0 0 0 / 75%);
    border-radius: 3px;
    color: var(--text-primary);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    margin-top: 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 56px 0 0;
}

.footer__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer__brand-desc {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 280px;
}

.footer__col-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer__link {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    padding: 5px 0;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--text-primary);
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(255 255 255 / 6%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.footer__social:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer__social svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.footer__social:hover svg {
    color: #fff;
}

.footer__bottom {
    max-width: var(--content-max);
    margin: 40px auto 0;
    padding: 20px var(--content-padding);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer__pagination {
    display: flex;
    gap: 8px;
}

.footer__page {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer__page--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.footer__page:hover:not(.footer__page--active) {
    border-color: rgb(255 255 255 / 20%);
}

/* =============================================
   ANIMATIONS & EFFECTS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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


#populares {
    animation-delay: 0.1s;
}

#novos {
    animation-delay: 0.2s;
}

#continuar {
    animation-delay: 0.3s;
}

/* =============================================
   SPONSORS
   ============================================= */
.sponsors {
    padding: 60px 0 80px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.sponsors__container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    text-align: center;
}

.sponsors__title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sponsors__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px 60px;
}

.sponsors__item {
    transition: all 0.4s ease;
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: pointer;
}

.sponsors__item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.sponsors__item img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (width <= 1200px) {
    :root {
        --content-padding: 32px;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (width <= 768px) {
    :root {
        --content-padding: 20px;
        --header-height: 60px;
    }

    .header__inner {
        gap: 16px;
    }

    .header__nav {
        display: none;
    }

    .header__search {
        width: 140px;
    }

    .header__search:focus-within {
        width: 200px;
    }

    .hero {
        height: 70vh;
        min-height: 440px;
    }

    .hero__title {
        font-size: clamp(36px, 10vw, 56px);
    }

    .hero__desc {
        font-size: 14px;
    }

    .btn {
        padding: 12px 22px;
        font-size: 14px;
    }

    .showcase__title {
        font-size: 20px;
    }

    .showcase__grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 16px;
    }

    .card {
        flex: 0 0 170px;
    }

    .card--featured {
        flex: 0 0 260px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (width <= 480px) {
    .header__search {
        display: none;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .showcase__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .card {
        flex: 0 0 150px;
    }

    .card--featured {
        flex: 0 0 240px;
    }

    .categories__btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}