:root {
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.10);
    --shadow-xl: 0 22px 55px rgba(15, 23, 42, 0.20);
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-900);
    background: var(--slate-50);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--slate-700), var(--slate-950, #020617));
    box-shadow: var(--shadow-md);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 20px;
}

.brand-text small {
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 10px 14px;
    color: var(--slate-700);
    border-radius: 999px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--slate-900);
    background: var(--slate-100);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    color: var(--slate-900);
    border-radius: 12px;
    background: var(--slate-100);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.12));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 78px;
    width: min(1280px, calc(100% - 48px));
    transform: translateX(-50%);
    color: var(--white);
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-kicker span,
.hero-kicker a,
.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-kicker span,
.hero-kicker a,
.hero-tags span {
    padding: 7px 13px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-content h1,
.hero-content h2 {
    max-width: 880px;
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 780px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
    color: var(--slate-900);
    background: var(--white);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    border: 0;
    color: var(--white);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
    font-size: 34px;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.30);
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
    width: 32px;
    background: var(--white);
}

.content-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
}

.section-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-600);
    border-radius: 12px;
    background: #fff7ed;
    font-weight: 900;
}

.section-more {
    color: var(--slate-700);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.movie-card > a {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-600));
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.09);
}

.year-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.year-badge {
    left: 12px;
    top: 12px;
    min-width: 58px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.play-chip {
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: rgba(255, 255, 255, 0.92);
    color: var(--slate-900);
}

.movie-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2,
.small-card h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.25;
}

.movie-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 10px 0 14px;
    color: var(--slate-600);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.tag-row span {
    padding: 5px 10px;
    color: var(--slate-700);
    background: var(--slate-100);
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
}

.feature-card .poster-frame {
    aspect-ratio: 21 / 9;
}

.side-list,
.related-list {
    display: grid;
    gap: 14px;
}

.small-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.small-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.small-card a {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.small-thumb {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-600));
}

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

.small-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 0;
    color: var(--slate-500);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-num {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 9px;
    background: rgba(217, 119, 6, 0.92);
    font-weight: 900;
}

.dark-panel {
    width: min(1280px, calc(100% - 32px));
    margin-top: 20px;
    padding: 42px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.dark-panel .section-heading h2,
.dark-panel .section-more,
.dark-panel .movie-card h2 {
    color: var(--white);
}

.dark-panel .movie-card {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.dark-panel .movie-card p,
.dark-panel .movie-meta-line {
    color: var(--slate-300);
}

.category-grid,
.category-overview-grid,
.support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-tile,
.category-overview-card a {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 190px;
    padding: 26px;
    color: var(--white);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--slate-800), var(--slate-600));
    box-shadow: var(--shadow-md);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    transition: transform 0.45s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span,
.category-tile small {
    position: relative;
    z-index: 1;
    display: block;
}

.category-tile span {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile small {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

.page-shell,
.detail-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.compact-hero {
    margin: 34px 0 10px;
    padding: 52px;
    color: var(--white);
    border-radius: 28px;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
    box-shadow: var(--shadow-xl);
}

.compact-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
}

.compact-hero p {
    max-width: 800px;
    margin: 0;
    color: var(--slate-300);
    font-size: 18px;
}

.category-overview-card a {
    min-height: 260px;
    padding: 0;
    background: var(--white);
    color: var(--slate-900);
}

.category-cover-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 138px;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-600));
}

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

.category-overview-card h2,
.category-overview-card p {
    margin-left: 22px;
    margin-right: 22px;
}

.category-overview-card h2 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 24px;
}

.category-overview-card p {
    margin-bottom: 22px;
    color: var(--slate-600);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 42px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--slate-700);
    font-weight: 800;
}

.pagination a.current {
    color: var(--white);
    background: var(--slate-900);
}

.search-box {
    max-width: 680px;
    margin-top: 26px;
}

.search-box input {
    width: 100%;
    height: 58px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    outline: none;
    color: var(--white);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.text-panel {
    margin: 38px auto 70px;
    padding: 44px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.text-panel h1 {
    margin: 0 0 24px;
    font-size: clamp(34px, 4vw, 48px);
}

.text-panel h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.text-panel p {
    color: var(--slate-700);
    font-size: 17px;
}

.support-grid article {
    padding: 24px;
    border-radius: 18px;
    background: var(--slate-50);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 26px 0;
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--slate-700);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 24px;
    align-items: stretch;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 26px;
    background: #020617;
    box-shadow: var(--shadow-xl);
}

.player-wrap video {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    background: #020617;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--slate-900);
    background: linear-gradient(to top, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.08));
}

.player-start span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-xl);
    font-size: 28px;
}

.player-wrap.is-playing .player-start {
    display: none;
}

.detail-info {
    overflow: hidden;
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.detail-poster {
    height: 240px;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-600));
}

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

.detail-copy {
    padding: 24px;
}

.detail-kicker span,
.detail-kicker a {
    color: var(--slate-700);
    background: var(--slate-100);
}

.detail-copy h1 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.detail-one-line {
    margin: 0 0 20px;
    color: var(--slate-600);
    font-size: 17px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 18px;
}

.detail-meta div {
    padding: 12px;
    border-radius: 14px;
    background: var(--slate-50);
}

.detail-meta dt {
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 4px 0 0;
    color: var(--slate-900);
    font-weight: 800;
}

.detail-tags span {
    color: var(--slate-700);
    background: var(--slate-100);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    margin: 28px 0 10px;
}

.detail-main-card,
.related-panel {
    padding: 28px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.detail-main-card h2,
.related-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-main-card p {
    margin: 0 0 26px;
    color: var(--slate-700);
    font-size: 17px;
    text-align: justify;
}

.related-section {
    width: 100%;
}

.site-footer {
    margin-top: 70px;
    color: var(--slate-300);
    background: var(--slate-900);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 34px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    color: var(--white);
    font-size: 19px;
}

.site-footer p {
    color: var(--slate-400);
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
}

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

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
}

.footer-bottom p {
    margin: 6px 0;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .four-cols,
    .three-cols,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feature-layout,
    .detail-hero,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .related-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .header-inner {
        min-height: 66px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow-xl);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        border-radius: 12px;
    }

    .hero {
        min-height: 560px;
        height: 76vh;
    }

    .hero-content {
        bottom: 70px;
        width: calc(100% - 32px);
    }

    .hero-control {
        display: none;
    }

    .content-section {
        padding: 42px 0;
    }

    .four-cols,
    .three-cols,
    .category-grid,
    .category-overview-grid,
    .support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dark-panel,
    .compact-hero,
    .text-panel {
        padding: 28px;
    }

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

@media (max-width: 560px) {
    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .hero-kicker,
    .hero-tags,
    .hero-actions {
        gap: 8px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 38px;
    }

    .hero-content p,
    .compact-hero p {
        font-size: 16px;
    }

    .four-cols,
    .three-cols,
    .category-grid,
    .category-overview-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .small-card a {
        grid-template-columns: 96px 1fr;
    }

    .detail-meta {
        grid-template-columns: 1fr;
    }

    .player-wrap,
    .player-wrap video {
        min-height: 260px;
    }
}
