:root {
    color-scheme: light;
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --amber-100: #fef3c7;
    --orange-50: #fff7ed;
    --white: #ffffff;
    --shadow-sm: 0 10px 25px rgba(28, 25, 23, 0.08);
    --shadow-md: 0 18px 55px rgba(28, 25, 23, 0.16);
    --shadow-lg: 0 24px 80px rgba(28, 25, 23, 0.28);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    font-family: Inter, 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;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--stone-100), rgba(254, 243, 199, 0.34));
    color: var(--stone-800);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(28, 25, 23, 0.92);
    color: var(--amber-100);
    border-bottom: 1px solid rgba(252, 211, 77, 0.12);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber-100);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: var(--stone-900);
    background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: rgba(254, 243, 199, 0.82);
    font-weight: 650;
    font-size: 15px;
    transition: color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-300);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 8px 11px;
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 20px 16px;
    background: rgba(28, 25, 23, 0.98);
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--amber-100);
}

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

.hero-carousel {
    position: relative;
    min-height: 72vh;
    height: 760px;
    max-height: 88vh;
    overflow: hidden;
    background: var(--stone-950);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 800ms ease;
    background-image: linear-gradient(0deg, rgba(28, 25, 23, 0.96) 0%, rgba(28, 25, 23, 0.66) 43%, rgba(28, 25, 23, 0.1) 100%), var(--hero-image), radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.38), transparent 28%), linear-gradient(135deg, var(--stone-900), var(--amber-900));
    background-size: cover;
    background-position: center;
}

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

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1240px) / 2 + 20px));
    right: max(32px, calc((100vw - 1240px) / 2 + 20px));
    bottom: 76px;
    max-width: 780px;
    color: var(--white);
}

.hero-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(217, 119, 6, 0.92);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 14px;
    font-size: clamp(36px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}

.hero-content h2 + h2 {
    margin-top: -4px;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.03em;
    color: var(--amber-100);
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 20px;
    color: rgba(245, 245, 244, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.65;
}

.hero-meta,
.detail-meta,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.hero-meta span,
.detail-meta span,
.meta-line span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

.detail-meta span,
.meta-line span {
    background: rgba(120, 113, 108, 0.12);
    color: var(--stone-700);
}

.hero-actions,
.detail-info .primary-button {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.primary-button,
.ghost-button,
.section-more,
.quick-search button,
.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button,
.quick-search button,
.search-form button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 14px 32px rgba(217, 119, 6, 0.28);
}

.primary-button:hover,
.quick-search button:hover,
.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.34);
}

.ghost-button,
.section-more {
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.section-more {
    color: var(--amber-800);
    background: var(--amber-100);
    border-color: rgba(245, 158, 11, 0.18);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.32);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.5);
}

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

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

.hero-dots {
    position: absolute;
    z-index: 5;
    right: max(32px, calc((100vw - 1240px) / 2 + 20px));
    bottom: 44px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--amber-300);
}

.quick-search-panel,
.category-strip,
.content-section,
.page-shell,
.detail-shell,
.site-footer {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.quick-search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    margin-top: -34px;
    position: relative;
    z-index: 10;
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
}

.quick-search-panel h2,
.content-section h2,
.page-hero h1,
.detail-info h1,
.detail-content h2 {
    margin: 0;
    color: var(--stone-800);
    letter-spacing: -0.03em;
}

.quick-search-panel p,
.section-heading p,
.page-hero p,
.category-overview-card p,
.detail-one-line,
.detail-content p,
.wide-body p,
.card-text p,
.footer-grid p {
    color: var(--stone-600);
    line-height: 1.7;
}

.quick-search {
    display: flex;
    gap: 10px;
}

.quick-search input,
.filter-search input,
.filter-search select,
.search-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(120, 113, 108, 0.2);
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.94);
    color: var(--stone-800);
}

.quick-search input:focus,
.filter-search input:focus,
.filter-search select:focus,
.search-form input:focus {
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

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

.category-card,
.category-overview-card,
.filter-panel,
.search-app,
.detail-content {
    border: 1px solid rgba(120, 113, 108, 0.13);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-sm);
}

.category-card {
    min-height: 150px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover,
.category-overview-card:hover,
.poster-card:hover,
.wide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-card::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -30% -52% 36%;
    height: 120px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 66%);
}

.category-card span {
    position: relative;
    z-index: 1;
    color: var(--amber-700);
    font-weight: 800;
}

.category-card strong {
    position: relative;
    z-index: 1;
    color: var(--stone-800);
    line-height: 1.36;
}

.category-card small {
    position: relative;
    z-index: 1;
    color: var(--stone-500);
    line-height: 1.55;
}

.content-section {
    padding-top: 56px;
    padding-bottom: 10px;
}

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

.section-heading.single {
    display: block;
}

.section-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
}

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

.poster-card {
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.poster,
.wide-cover,
.detail-cover {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(41, 37, 36, 0.96), rgba(146, 64, 14, 0.82));
    box-shadow: var(--shadow-sm);
}

.poster {
    display: block;
    aspect-ratio: 2 / 3;
}

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

.poster-card:hover .poster img,
.wide-card:hover .wide-cover img {
    transform: scale(1.07);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.1) 56%, rgba(0, 0, 0, 0.1));
}

.type-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 9px;
    color: var(--white);
    background: rgba(217, 119, 6, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 10px;
    right: auto;
    background: rgba(12, 10, 9, 0.68);
}

.poster-info {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    color: var(--white);
}

.poster-info strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.38;
}

.poster-info small {
    display: block;
    margin-top: 5px;
    color: rgba(245, 245, 244, 0.78);
}

.card-text h3 {
    margin: 11px 0 5px;
    font-size: 16px;
    line-height: 1.42;
}

.card-text h3 a:hover,
.wide-body h3 a:hover,
.mini-links a:hover {
    color: var(--amber-700);
}

.card-text p {
    margin: 0;
    font-size: 13px;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 18px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wide-cover {
    aspect-ratio: 1 / 1;
    min-height: 132px;
}

.play-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 34px;
    background: rgba(0, 0, 0, 0.1);
}

.wide-body h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.wide-body p {
    margin: 0 0 12px;
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.filter-chips button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--amber-900);
    background: rgba(254, 243, 199, 0.88);
    font-size: 12px;
    font-weight: 700;
}

.page-shell,
.detail-shell {
    padding-top: 32px;
    padding-bottom: 42px;
}

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

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

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 26px;
    padding: clamp(28px, 5vw, 52px);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(254, 243, 199, 0.82));
    box-shadow: var(--shadow-sm);
}

.page-hero h1 {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    font-size: clamp(32px, 5vw, 56px);
}

.page-hero p,
.page-hero span {
    position: relative;
    z-index: 1;
}

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

.category-overview-card {
    padding: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-title {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--stone-800);
    font-size: 24px;
    font-weight: 850;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.mini-links a {
    color: var(--amber-800);
    font-size: 14px;
    font-weight: 700;
}

.filter-panel {
    margin-bottom: 24px;
    padding: 18px;
}

.filter-search {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.filter-chips button {
    border: 0;
    cursor: pointer;
}

.filter-chips button.active {
    color: var(--white);
    background: var(--amber-700);
}

.movie-card.hidden {
    display: none;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: clamp(24px, 5vw, 54px);
    align-items: center;
    margin-bottom: 34px;
    padding: clamp(20px, 4vw, 34px);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(254, 243, 199, 0.76));
    box-shadow: var(--shadow-md);
}

.detail-cover {
    aspect-ratio: 2 / 3;
}

.detail-info h1 {
    margin: 16px 0 14px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
}

.detail-one-line {
    margin: 0 0 18px;
    font-size: 18px;
}

.player-section {
    margin-bottom: 32px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--stone-950);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.24));
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    color: var(--stone-900);
    background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
    box-shadow: 0 18px 52px rgba(245, 158, 11, 0.36);
    font-size: 34px;
    padding-left: 5px;
}

.player-shell.playing .player-overlay {
    display: none;
}

.detail-content {
    padding: clamp(22px, 4vw, 34px);
    margin-bottom: 16px;
}

.detail-content h2 {
    margin-top: 0;
    font-size: 26px;
}

.detail-content p {
    margin: 10px 0 24px;
    font-size: 16px;
}

.search-app {
    padding: clamp(18px, 4vw, 28px);
}

.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

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

.search-result-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(245, 245, 244, 0.82);
}

.search-result-item .thumb {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--stone-800), var(--amber-800));
}

.search-result-item h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.search-result-item p {
    margin: 0;
    color: var(--stone-600);
    font-size: 14px;
    line-height: 1.55;
}

.site-footer {
    margin-top: 52px;
    padding-top: 34px;
    padding-bottom: 28px;
    color: rgba(254, 243, 199, 0.74);
    background: var(--stone-900);
    max-width: none;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 0 20px;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: var(--amber-100);
    font-size: 18px;
}

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

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

.footer-bottom {
    max-width: 1240px;
    margin: 28px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(231, 229, 228, 0.56);
    font-size: 14px;
}

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

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

@media (max-width: 860px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

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

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 72px;
    }

    .hero-control {
        display: none;
    }

    .quick-search-panel,
    .detail-hero,
    .footer-grid,
    .overview-grid,
    .wide-list,
    .search-results {
        grid-template-columns: 1fr;
    }

    .quick-search,
    .search-form {
        flex-direction: column;
    }

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

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

@media (max-width: 560px) {
    .header-inner {
        padding: 12px 16px;
    }

    .brand {
        font-size: 19px;
    }

    .hero-carousel {
        height: 620px;
    }

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

    .hero-content h2 + h2 {
        font-size: 26px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-search-panel,
    .category-strip,
    .content-section,
    .page-shell,
    .detail-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .wide-card,
    .search-result-item {
        grid-template-columns: 96px 1fr;
        gap: 12px;
    }

    .poster-grid {
        gap: 16px;
    }

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