:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --text: #172033;
    --muted: #64748b;
    --orange: #f97316;
    --amber: #f59e0b;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --card: #ffffff;
    --page: #f8fafc;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--page);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.45);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, #fb923c, #fcd34d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 15px;
    border-radius: 12px;
    color: #e2e8f0;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(249, 115, 22, 0.95);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.45), transparent 32%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #020617 100%);
}

.hero-layer {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 1.1fr 0.72fr;
    gap: 28px;
    align-items: stretch;
    width: min(1200px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    padding: 72px 0;
}

.hero-heading,
.hero-carousel,
.hero-side {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(18px);
}

.hero-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
}

.hero-heading > span,
.hero-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.35);
    font-size: 14px;
    font-weight: 700;
}

.hero-heading h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.hero-heading p,
.hero-content p {
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-category-links a {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-category-links a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.86fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-image {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(15,23,42,0.4), rgba(249,115,22,0.2));
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.36);
}

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

.hero-content h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 800;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), #ea580c);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
}

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

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.26);
    background: rgba(255,255,255,0.14);
}

.hero-dots {
    position: absolute;
    right: 26px;
    bottom: 22px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.42);
    cursor: pointer;
}

.hero-dots button.active {
    width: 34px;
    background: #f97316;
}

.hero-side {
    padding: 26px;
}

.hero-side h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.hero-mini-list {
    display: grid;
    gap: 14px;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-mini-card:hover {
    transform: translateX(3px);
    background: rgba(255,255,255,0.22);
}

.hero-mini-card img {
    width: 72px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
}

.page-main {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 70px;
}

.content-section {
    margin-top: 44px;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-title h1,
.section-title h2 {
    margin: 0 0 6px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
}

.section-title h1::before,
.section-title h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 32px;
    margin-right: 12px;
    border-radius: 99px;
    vertical-align: -6px;
    background: linear-gradient(180deg, var(--cyan), #0891b2);
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.section-title a {
    flex: 0 0 auto;
    color: #0891b2;
    font-weight: 800;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #e2e8f0;
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.07);
}

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-card-body {
    padding: 16px;
}

.movie-card-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.movie-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-tags span,
.tag-list span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #0e7490;
    background: #cffafe;
    font-size: 12px;
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,23,42,0.06);
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.search-box input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.filter-buttons button {
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    color: #334155;
    background: #f1f5f9;
    cursor: pointer;
    font-weight: 800;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

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

.category-card-link {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 220px;
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    padding: 10px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.category-thumbs img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

.category-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
}

.category-info h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-info p {
    margin: 0 0 18px;
    color: var(--muted);
}

.category-info span {
    width: fit-content;
    padding: 9px 13px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--cyan), #0891b2);
    font-weight: 800;
}

.ranking-list {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: 60px 60px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15,23,42,0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 30px rgba(15,23,42,0.12);
}

.rank-no {
    color: #f97316;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 60px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-title {
    font-size: 18px;
    font-weight: 900;
}

.rank-meta {
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: #0891b2;
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: center;
    padding: 32px;
    border-radius: 30px;
    color: #fff;
    background: radial-gradient(circle at 20% 10%, rgba(249,115,22,0.36), transparent 28%), linear-gradient(135deg, #0f172a, #1e3a8a 48%, #020617);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 48px rgba(2,6,23,0.32);
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
}

.detail-one {
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 19px;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.meta-list li {
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
}

.meta-list span {
    display: block;
    color: #bfdbfe;
    font-size: 13px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
}

.player-section,
.prose-block,
.related-section {
    margin-top: 38px;
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}

.player-section h2,
.prose-block h2,
.related-section h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2,6,23,0.22), rgba(2,6,23,0.58));
    cursor: pointer;
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 36px rgba(249,115,22,0.4);
    font-size: 30px;
}

.play-layer strong {
    display: block;
    font-size: 20px;
}

.prose-block p {
    margin: 0;
    color: #334155;
    font-size: 17px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 20px;
}

.footer-grid p,
.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-grid a:hover {
    color: #fb923c;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(148,163,184,0.24);
    color: #94a3b8;
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1080px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 520px;
    }

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

@media (max-width: 840px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .hero-image {
        max-width: 260px;
    }

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

    .filter-panel,
    .category-card-link,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        justify-content: flex-start;
    }

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

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

    .rank-row {
        grid-template-columns: 48px 54px 1fr;
    }

    .rank-meta {
        grid-column: 3;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .header-inner,
    .page-main,
    .hero-inner,
    .footer-inner {
        width: min(100% - 22px, 1200px);
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-inner {
        padding: 34px 0;
    }

    .hero-heading,
    .hero-slide,
    .hero-side,
    .detail-hero,
    .player-section,
    .prose-block,
    .related-section {
        padding: 20px;
        border-radius: 22px;
    }

    .hero-carousel {
        min-height: 650px;
    }

    .movie-grid {
        gap: 14px;
    }

    .movie-card-body {
        padding: 13px;
    }

    .movie-card h3 {
        font-size: 16px;
    }
}
