:root {
    color-scheme: light;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --white: #ffffff;
    --shadow-soft: 0 16px 40px rgba(28, 25, 23, 0.08);
    --shadow-card: 0 10px 26px rgba(28, 25, 23, 0.10);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--stone-50);
    color: var(--stone-800);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--stone-200);
    box-shadow: 0 2px 18px rgba(28, 25, 23, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

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

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

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

.brand-text strong {
    font-size: 1.12rem;
}

.brand-text small {
    color: var(--stone-500);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    color: var(--stone-700);
    font-weight: 700;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--amber-600);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-600);
}

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

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--stone-300);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}

.top-search input,
.mobile-search input {
    width: 230px;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    background: transparent;
}

.top-search button,
.mobile-search button {
    border: 0;
    padding: 10px 16px;
    color: var(--white);
    background: var(--amber-600);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: var(--stone-100);
    color: var(--stone-800);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 14px 16px 18px;
    border-top: 1px solid var(--stone-200);
}

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

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-nav .nav-link {
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    background: var(--amber-50);
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: var(--stone-900);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.46) 52%, rgba(0, 0, 0, 0.16));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.hero-copy {
    max-width: 760px;
    color: var(--white);
}

.hero-kicker {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--amber-500);
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

.hero h1 {
    margin: 20px 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.15rem;
}

.hero-tags,
.detail-tags,
.detail-genres,
.tag-row,
.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.detail-genres span,
.tag-row span,
.footer-badges span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    font-size: 0.84rem;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.category-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

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

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.category-card a:hover span {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.category-strip {
    position: relative;
    z-index: 5;
    margin-top: -32px;
}

.strip-inner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.strip-inner a {
    white-space: nowrap;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--stone-100);
    color: var(--stone-700);
    font-weight: 800;
}

.strip-inner a:hover {
    color: var(--white);
    background: var(--amber-600);
}

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

.section-white {
    background: var(--white);
}

.section-soft {
    background: linear-gradient(180deg, var(--stone-50), var(--white));
}

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

.section-heading h2 {
    margin: 0;
    color: var(--stone-800);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.section-more {
    min-height: 38px;
    color: var(--amber-700);
    background: var(--amber-50);
}

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

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(28, 25, 23, 0.16);
}

.card-cover {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background: var(--stone-200);
}

.movie-card.large .card-cover {
    height: 330px;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68));
    opacity: 0;
    transition: opacity 0.28s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.card-type,
.card-year,
.rank-mark,
.play-pill {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
}

.card-type {
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    background: rgba(28, 25, 23, 0.78);
    backdrop-filter: blur(8px);
}

.card-year {
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    background: rgba(28, 25, 23, 0.78);
}

.rank-mark {
    right: 12px;
    top: 12px;
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--amber-500);
    box-shadow: 0 10px 18px rgba(245, 158, 11, 0.35);
}

.play-pill {
    left: 50%;
    top: 50%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--amber-700);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-pill {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: var(--stone-800);
    font-size: 1.05rem;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--amber-600);
}

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--stone-500);
    font-size: 0.8rem;
}

.tag-row span {
    background: var(--stone-100);
    color: var(--stone-600);
    font-size: 0.75rem;
}

.page-hero,
.detail-head {
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.35), transparent 34%), linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

.page-hero {
    padding: 62px 0;
}

.page-hero.small {
    padding: 52px 0;
}

.page-hero h1,
.detail-main h1 {
    margin: 12px 0 12px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.95rem;
}

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

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

.category-card a {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 22px;
    padding: 24px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card a:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(28, 25, 23, 0.15);
}

.category-card h2 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.category-card p {
    margin: 0 0 16px;
    color: var(--stone-600);
}

.category-preview {
    display: grid;
    gap: 6px;
    margin: 8px 0 18px;
    color: var(--stone-700);
    font-size: 0.9rem;
}

.category-card span {
    align-self: flex-start;
    min-height: 38px;
    color: var(--white);
    background: var(--amber-600);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--stone-200);
    border-radius: 22px;
    background: var(--stone-50);
}

.search-filter {
    grid-template-columns: minmax(220px, 1fr) repeat(3, 180px);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--stone-300);
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    background: var(--white);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.no-result {
    display: none;
    padding: 60px 20px;
    color: var(--stone-500);
    text-align: center;
    font-size: 1.1rem;
}

.no-result.show {
    display: block;
}

.detail-head {
    padding: 36px 0 58px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 0.8fr);
    gap: 30px;
    align-items: start;
    margin-top: 28px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.48));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    padding-left: 6px;
    color: var(--amber-600);
    background: rgba(255, 255, 255, 0.94);
    font-size: 2.7rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.lead-text {
    max-width: 860px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.detail-tags span,
.detail-genres span {
    color: var(--stone-700);
    background: var(--amber-50);
}

.detail-main .detail-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.detail-side {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

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

.detail-side dl {
    margin: 0;
    padding: 20px;
}

.detail-side div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-side div:last-child {
    border-bottom: 0;
}

.detail-side dt {
    color: rgba(255, 255, 255, 0.56);
}

.detail-side dd {
    margin: 0;
    color: var(--white);
    font-weight: 800;
}

.detail-side a {
    color: var(--amber-400);
}

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

.text-card {
    border-radius: 22px;
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.text-card h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
}

.text-card p {
    margin: 0;
    color: var(--stone-700);
    white-space: pre-line;
}

.amber-card {
    background: linear-gradient(135deg, var(--amber-50), var(--white));
}

.full-card {
    grid-column: 1 / -1;
}

.site-footer {
    color: var(--stone-300);
    background: linear-gradient(180deg, var(--stone-800), var(--stone-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding: 54px 0 38px;
}

.footer-brand {
    margin-bottom: 16px;
    color: var(--white);
    font-size: 1.1rem;
}

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

.site-footer p {
    margin: 0;
    color: var(--stone-400, #a8a29e);
}

.footer-links {
    display: grid;
    gap: 9px;
}

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

.footer-badges {
    margin-top: 14px;
}

.footer-badges span {
    color: var(--stone-200);
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 16px;
    color: var(--stone-400, #a8a29e);
    text-align: center;
}

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

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

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

@media (max-width: 860px) {
    .main-nav,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero,
    .hero-content {
        min-height: 500px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        padding-bottom: 64px;
    }

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

    .movie-card.large .card-cover,
    .card-cover {
        height: 220px;
    }

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

    .detail-side {
        display: none;
    }

    .filter-bar,
    .search-filter {
        grid-template-columns: 1fr;
    }

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

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

    .brand-text small {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: 470px;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .movie-card.large .card-cover,
    .card-cover {
        height: 280px;
    }

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