:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(180, 83, 9, 0.18);
    --shadow: 0 20px 45px rgba(120, 53, 15, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--amber-50), #ffffff 34%, var(--orange-50));
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 247, 237, 0.95));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
    font-weight: 800;
    font-size: 22px;
}

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

.brand-text strong {
    color: var(--amber-900);
    font-size: 21px;
    letter-spacing: 0.02em;
}

.brand-text small {
    color: var(--amber-600);
    margin-top: 4px;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.nav-link {
    color: var(--amber-800);
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.header-search,
.mobile-search,
.wide-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--amber-200);
    background: rgba(255, 255, 255, 0.86);
    color: var(--amber-900);
    outline: none;
    border-radius: 999px;
    padding: 12px 16px;
    min-width: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search input {
    width: 220px;
}

.header-search button,
.mobile-search button,
.wide-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    color: #ffffff;
    background: var(--amber-500);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover {
    background: var(--amber-600);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--amber-100);
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    margin: 4px auto;
    display: block;
    background: var(--amber-900);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 16px 24px 22px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
}

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

.mobile-links,
.mobile-cats {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mobile-links a,
.mobile-cats a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--amber-800);
    background: var(--amber-50);
}

.hero {
    position: relative;
    height: 72vh;
    min-height: 540px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 76px;
    width: min(1180px, calc(100% - 48px));
    transform: translateX(-50%);
    color: #ffffff;
}

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

.hero-kicker span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.88);
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.7;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

.primary-btn {
    color: #ffffff;
    background: var(--amber-500);
}

.primary-btn:hover {
    background: var(--amber-600);
    transform: translateY(-2px);
}

.ghost-btn,
.page-actions a {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.ghost-btn:hover,
.page-actions a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.38);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.home-search-panel,
.section-wrap,
.page-main,
.footer-inner {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.home-search-panel {
    margin-top: -44px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.home-search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-article h1,
.watch-side h2,
.detail-article h2 {
    color: var(--amber-900);
}

.home-search-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.home-search-panel p {
    margin: 0;
    color: var(--muted);
}

.wide-search input {
    flex: 1;
}

.section-wrap {
    padding: 70px 0 0;
}

.soft-section {
    padding-top: 72px;
}

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

.section-heading span,
.feature-copy span,
.page-hero span {
    color: var(--amber-600);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    font-size: 12px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
}

.section-heading a {
    color: var(--amber-700);
    font-weight: 750;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(253, 230, 138, 0.95);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(120, 53, 15, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--amber-100);
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.feature-poster:hover img,
.rank-link:hover img,
.category-overview-card:hover .category-cover img {
    transform: scale(1.08);
}

.poster-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.card-content {
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 52px;
    color: var(--amber-900);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.card-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.card-tags,
.detail-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-50);
    font-size: 12px;
    font-weight: 650;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.1));
}

.category-tile span,
.category-tile small {
    position: absolute;
    left: 20px;
    right: 20px;
    z-index: 1;
}

.category-tile span {
    bottom: 64px;
    font-size: 24px;
    font-weight: 850;
}

.category-tile small {
    bottom: 22px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

.feature-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
    padding: 54px;
    margin-top: 76px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(135deg, var(--amber-50), #ffffff, var(--orange-50));
    box-shadow: var(--shadow);
}

.feature-copy h2 {
    margin: 10px 0 18px;
    color: var(--amber-900);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
}

.feature-copy p {
    margin: 0 0 26px;
    color: var(--muted);
    line-height: 1.9;
}

.feature-poster {
    display: block;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 10;
    box-shadow: 0 24px 60px rgba(120, 53, 15, 0.2);
}

.ranking-preview {
    padding-bottom: 72px;
}

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.full-rank {
    display: grid;
    gap: 14px;
    padding-bottom: 72px;
}

.rank-item {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
}

.rank-link {
    display: grid;
    grid-template-columns: 72px 132px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    color: var(--amber-500);
    font-size: 30px;
    font-weight: 900;
    text-align: center;
}

.rank-link img {
    width: 132px;
    height: 82px;
    border-radius: 14px;
    background: var(--amber-100);
}

.rank-info strong {
    display: block;
    color: var(--amber-900);
    font-size: 18px;
    line-height: 1.4;
}

.rank-info em {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0;
    color: var(--muted);
    font-style: normal;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-info small {
    color: #9ca3af;
}

.page-main {
    padding: 40px 0 86px;
}

.page-hero {
    overflow: hidden;
    margin-bottom: 32px;
    padding: 58px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.92), rgba(217, 119, 6, 0.82)), url('../1.jpg') center / cover;
    box-shadow: var(--shadow);
}

.small-hero,
.category-hero {
    min-height: 260px;
}

.page-hero h1 {
    margin: 12px 0 16px;
    color: #ffffff;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.04;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 22px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.category-cover {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 3;
}

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

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-50);
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 180px));
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 26px rgba(120, 53, 15, 0.08);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--amber-700);
    font-weight: 650;
}

.breadcrumb strong {
    color: var(--muted);
    font-weight: 650;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    background: #0f172a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--amber-500);
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.35);
    font-size: 34px;
    text-indent: 5px;
}

.play-cover strong {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.detail-article {
    margin-top: 28px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-tags a,
.detail-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-50);
    font-size: 13px;
    font-weight: 700;
}

.detail-article h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
}

.lead-text {
    margin: 0 0 26px;
    color: var(--amber-800);
    font-size: 20px;
    line-height: 1.75;
    font-weight: 700;
}

.detail-article section {
    margin-top: 26px;
}

.detail-article h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.detail-article p {
    margin: 0;
    color: #4b5563;
    line-height: 1.95;
}

.watch-side {
    position: sticky;
    top: 98px;
}

.watch-side h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.side-list {
    display: grid;
    gap: 18px;
}

.side-list .movie-card .poster-link {
    aspect-ratio: 16 / 9;
}

.side-list .movie-card .card-title {
    min-height: auto;
    font-size: 16px;
}

.side-list .movie-card .card-line {
    min-height: auto;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--amber-50), var(--amber-100));
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 38px 0;
}

.footer-inner strong {
    color: var(--amber-900);
    font-size: 22px;
}

.footer-inner p {
    margin: 8px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: var(--amber-800);
    font-weight: 700;
}

.footer-bottom {
    padding: 18px 20px;
    color: var(--amber-800);
    text-align: center;
    border-top: 1px solid var(--line);
}

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

@media (max-width: 1120px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

    .watch-layout {
        grid-template-columns: 1fr;
    }

    .watch-side {
        position: static;
    }

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

@media (max-width: 860px) {
    .hero {
        min-height: 620px;
        height: 78vh;
    }

    .home-search-panel,
    .feature-row,
    .category-overview-card,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .home-search-panel {
        align-items: stretch;
    }

    .movie-grid,
    .page-grid,
    .category-grid,
    .category-overview-grid,
    .compact-rank,
    .side-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-link {
        grid-template-columns: 52px 96px 1fr;
        gap: 12px;
    }

    .rank-link img {
        width: 96px;
        height: 68px;
    }
}

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

    .brand-text small {
        display: none;
    }

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

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

    .hero-arrow {
        display: none;
    }

    .home-search-panel,
    .section-wrap,
    .page-main,
    .footer-inner {
        width: min(100% - 28px, 1240px);
    }

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

    .movie-grid,
    .page-grid,
    .category-grid,
    .side-list,
    .category-overview-grid,
    .compact-rank {
        grid-template-columns: 1fr;
    }

    .feature-row,
    .detail-article,
    .page-hero {
        padding: 26px;
        border-radius: 24px;
    }

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

    .rank-link {
        grid-template-columns: 46px 88px 1fr;
    }

    .rank-info em {
        display: none;
    }
}
