:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --red-500: #ef4444;
    --white: #ffffff;
    --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 24px 80px rgba(15, 23, 42, 0.32);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--slate-100);
    color: var(--slate-800);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", 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;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.86;
}

.brand__icon,
.footer-brand span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--slate-900);
    background: var(--amber-400);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.32);
    font-size: 14px;
}

.brand__text {
    display: grid;
    line-height: 1.15;
}

.brand__text strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand__text small {
    color: var(--slate-300);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
}

.site-nav a,
.mobile-panel a {
    color: var(--slate-200);
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
    color: var(--amber-400);
}

.site-search,
.mobile-search,
.filter-box {
    display: flex;
    align-items: center;
    background: rgba(71, 85, 105, 0.92);
    border-radius: 999px;
    padding: 7px 8px 7px 18px;
    min-width: 260px;
}

.site-search input,
.mobile-search input,
.filter-box input {
    flex: 1;
    min-width: 0;
    color: var(--white);
    background: transparent;
    border: 0;
    outline: 0;
}

.site-search input::placeholder,
.mobile-search input::placeholder,
.filter-box input::placeholder {
    color: var(--slate-300);
}

.site-search button,
.mobile-search button {
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 6px 11px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 20px;
    border-top: 1px solid rgba(203, 213, 225, 0.18);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav,
.mobile-cats {
    display: grid;
    gap: 12px;
}

.mobile-search {
    margin: 16px 0;
    min-width: 0;
}

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

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-800), var(--slate-700), #78350f);
}

.hero-track {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.58fr);
    align-items: center;
    gap: 52px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0 88px;
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide__bg,
.detail-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(26px);
    transform: scale(1.08);
    opacity: 0.34;
}

.hero-slide::before,
.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 76% 20%, rgba(245, 158, 11, 0.38), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72), rgba(120, 53, 15, 0.78));
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--amber-400);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 700;
}

.hero-slide h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-slide h2 {
    margin: 18px 0 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
}

.hero-slide p,
.page-hero p,
.detail-one-line {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--slate-200);
    font-size: 18px;
}

.hero-tags,
.detail-tags,
.movie-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.movie-card__tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--slate-100);
    background: rgba(255, 255, 255, 0.13);
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
}

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

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

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

.btn-primary {
    color: var(--white);
    background: var(--amber-500);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.26);
}

.btn-primary:hover {
    background: var(--amber-600);
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow-strong);
    isolation: isolate;
}

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

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-poster span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(2, 6, 23, 0.22);
    font-size: 58px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hero-poster:hover span {
    opacity: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: var(--amber-400);
}

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

.content-section--tight {
    padding: 30px 0 0;
}

.section-head {
    margin-bottom: 26px;
}

.section-head h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--slate-500);
}

.section-head--compact h2 {
    font-size: 24px;
}

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

.category-card {
    display: grid;
    min-height: 160px;
    padding: 22px;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-800), var(--slate-700));
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
    font-size: 20px;
}

.category-card span {
    color: var(--slate-300);
    font-size: 13px;
}

.category-card em {
    color: var(--amber-400);
    font-size: 12px;
    font-style: normal;
}

.layout-with-rank {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: start;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.movie-card__link,
.movie-card__body,
.movie-card__poster {
    display: block;
}

.movie-card__poster {
    position: relative;
    overflow: hidden;
    background: var(--slate-800);
}

.movie-card__poster img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.movie-card--small .movie-card__poster img,
.movie-grid--side .movie-card__poster img {
    height: 172px;
}

.movie-card:hover .movie-card__poster img {
    transform: scale(1.06);
}

.movie-card__shade {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(2, 6, 23, 0);
    transition: background 0.25s ease;
}

.movie-card__play {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(245, 158, 11, 0.92);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-card__shade {
    background: rgba(2, 6, 23, 0.34);
}

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

.movie-card__year {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(2, 6, 23, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.movie-card__body {
    padding: 17px;
}

.movie-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3em;
    margin-bottom: 8px;
    color: var(--slate-900);
    font-size: 17px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-card__title {
    color: var(--amber-600);
}

.movie-card__desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.1em;
    color: var(--slate-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: var(--slate-500);
    font-size: 12px;
}

.movie-card__tags {
    margin-top: 12px;
}

.movie-card__tags span {
    color: var(--slate-600);
    background: var(--slate-100);
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item a {
    display: grid;
    grid-template-columns: 34px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: var(--slate-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item a:hover {
    background: #fff7ed;
    transform: translateX(3px);
}

.rank-item__num {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: var(--white);
    background: var(--slate-800);
    font-size: 12px;
    font-weight: 800;
}

.rank-item:nth-child(-n + 3) .rank-item__num {
    background: var(--amber-500);
}

.rank-item__poster {
    overflow: hidden;
    border-radius: 10px;
}

.rank-item__poster img {
    width: 58px;
    height: 72px;
    object-fit: cover;
}

.rank-item__text {
    display: grid;
    min-width: 0;
}

.rank-item__text strong {
    overflow: hidden;
    color: var(--slate-900);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item__text em {
    overflow: hidden;
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-more {
    display: block;
    margin-top: 18px;
    padding: 12px;
    border-radius: 12px;
    color: var(--white);
    background: var(--slate-800);
    text-align: center;
    font-weight: 800;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-800), var(--slate-700), #78350f);
}

.page-hero--compact {
    padding: 70px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--slate-300);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--amber-400);
}

.filter-box {
    width: min(560px, 100%);
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.filter-box--large {
    min-height: 54px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    overflow: hidden;
    padding: 18px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-overview-card__cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.category-overview-card__cover img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.category-overview-card__cover span {
    position: absolute;
    inset: auto 12px 12px 12px;
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--white);
    background: rgba(2, 6, 23, 0.68);
    text-align: center;
    font-weight: 800;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    color: var(--slate-900);
}

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

.category-overview-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-overview-card__links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--amber-600);
    background: #fff7ed;
    font-size: 12px;
    font-weight: 700;
}

.rank-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

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

.detail-hero {
    min-height: 520px;
    padding: 54px 0 68px;
}

.detail-hero__inner {
    position: relative;
    z-index: 1;
}

.detail-main {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow-strong);
}

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

.detail-info {
    max-width: 760px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--slate-100);
    background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
    margin-bottom: 28px;
}

.detail-tags--plain {
    margin: 14px 0 0;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.detail-content,
.text-panel,
.detail-sidebar {
    min-width: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--slate-950);
    box-shadow: var(--shadow-strong);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--slate-950);
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.46));
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 6px;
    border-radius: 999px;
    background: var(--amber-500);
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.38);
    font-size: 34px;
}

.player-overlay.is-hidden {
    display: none;
}

.text-panel,
.detail-sidebar {
    margin-top: 26px;
    padding: 28px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.text-panel h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: 24px;
}

.text-panel h2:not(:first-child) {
    margin-top: 28px;
}

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

.empty-state {
    margin: 28px 0 0;
    padding: 20px;
    border-radius: 16px;
    color: var(--slate-500);
    background: var(--white);
    text-align: center;
}

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

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 32px;
    padding: 50px 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--white);
    font-size: 19px;
}

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

.site-footer p,
.site-footer li {
    color: var(--slate-400);
    font-size: 14px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.site-footer__bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    color: var(--slate-400);
    text-align: center;
}

.site-footer__bottom p {
    margin: 0;
}

@media (max-width: 1080px) {
    .site-nav,
    .site-search {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-slide,
    .detail-main,
    .layout-with-rank,
    .rank-page-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-carousel,
    .hero-track {
        min-height: 820px;
    }

    .hero-poster img {
        height: 360px;
    }

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

    .rank-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand__text strong {
        font-size: 17px;
    }

    .brand__text small {
        display: none;
    }

    .hero-slide {
        gap: 24px;
        padding: 46px 0 80px;
    }

    .hero-slide h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .hero-slide p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-carousel,
    .hero-track {
        min-height: 770px;
    }

    .hero-poster img {
        height: 310px;
    }

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

    .category-strip,
    .movie-grid,
    .movie-grid--category,
    .rank-list--wide,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .category-overview-card__cover img {
        height: 240px;
    }

    .detail-poster img {
        height: 360px;
    }

    .text-panel,
    .detail-sidebar {
        padding: 22px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        padding: 38px 0;
    }
}
