:root {
    --bg: #f9fafb;
    --panel: #ffffff;
    --panel-soft: #fffbeb;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: #d97706;
    --primary-dark: #b45309;
    --accent: #f97316;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

.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);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.navbar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 25px rgba(217, 119, 6, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    position: relative;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    background: var(--primary);
    transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button {
    width: 40px;
    height: 40px;
    border: 0;
    color: #374151;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
    color: var(--primary);
    background: #fff7ed;
}

.mobile-toggle {
    display: none;
}

.search-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
    padding: 14px 0 16px;
}

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

.search-box {
    position: relative;
}

.search-box input,
.filter-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 13px 16px;
    color: #111827;
    background: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.filter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
    padding: 8px 0 18px;
}

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

.mobile-menu a {
    display: block;
    padding: 11px 0;
    color: #374151;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #fef3c7 100%);
}

.hero::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -170px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.24), rgba(251, 191, 36, 0.04) 62%, transparent 70%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.1));
    pointer-events: none;
}

.hero-stage {
    position: relative;
    z-index: 2;
    min-height: 72vh;
}

.hero-slide {
    display: none;
    min-height: 72vh;
    align-items: center;
    gap: 56px;
    padding: 58px 0 76px;
}

.hero-slide.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
}

.hero-copy {
    max-width: 690px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.12);
}

.hero h1 {
    margin: 0 0 18px;
    color: #111827;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero h1 span {
    display: block;
    color: var(--primary-dark);
}

.hero-text {
    margin: 0 0 28px;
    color: #4b5563;
    font-size: 19px;
    max-width: 660px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-meta span,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
    color: #92400e;
    background: #ffffff;
    border: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: var(--shadow-soft);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.hero-poster {
    position: relative;
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.82);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(146, 64, 14, 0.24);
    transform: rotate(1deg);
}

.hero-poster-card img {
    width: 100%;
    height: 590px;
    object-fit: cover;
}

.hero-poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 46%);
}

.hero-poster-title {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    color: #ffffff;
}

.hero-poster-title strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
}

.hero-poster-title small {
    color: rgba(255, 255, 255, 0.82);
}

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

.hero-dot {
    width: 28px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(146, 64, 14, 0.25);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 48px;
    background: var(--primary);
}

.section {
    padding: 70px 0;
}

.section-white {
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
}

.section-desc {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.78);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(217, 119, 6, 0.28);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5.3;
    background: #f3f4f6;
}

.movie-grid.compact .poster-wrap {
    aspect-ratio: 1 / 1;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.56), transparent 55%);
    transition: opacity 0.25s ease;
}

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

.card-year,
.card-region,
.rank-label {
    position: absolute;
    z-index: 2;
    top: 12px;
    color: #ffffff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
}

.card-year {
    right: 12px;
    background: var(--primary);
}

.card-region {
    left: 12px;
    background: rgba(17, 24, 39, 0.72);
}

.rank-label {
    left: 12px;
    background: linear-gradient(135deg, #111827, #92400e);
}

.movie-body {
    padding: 16px;
}

.movie-title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
    color: var(--primary-dark);
}

.movie-desc {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span:last-child {
    color: var(--primary);
    font-weight: 800;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-pill {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.22);
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-pill:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.feature-list {
    display: grid;
    gap: 28px;
}

.feature-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    background: #ffffff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.feature-item:nth-child(even) .feature-image {
    order: 2;
}

.feature-image {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 16 / 9;
}

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

.feature-copy h3 {
    margin: 0 0 12px;
    font-size: 28px;
}

.feature-copy p {
    color: var(--muted);
}

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

.rank-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 140px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-poster {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
}

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

.rank-info h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 66px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.12;
}

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

.toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.filter-summary {
    color: var(--muted);
    font-weight: 700;
}

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

.category-card {
    display: block;
    min-height: 190px;
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.88);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

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

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

.breadcrumb a {
    color: var(--primary-dark);
    font-weight: 800;
}

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

.detail-panel,
.side-panel {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.detail-panel {
    overflow: hidden;
}

.detail-main {
    padding: 28px;
}

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

.detail-title {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: #4b5563;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 800;
}

.watch-player {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    border-radius: 22px;
    background: #111827;
    aspect-ratio: 16 / 9;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
}

.watch-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111827;
}

.player-poster {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #111827;
    transition: opacity 0.25s ease;
}

.player-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.player-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12));
}

.player-start {
    position: relative;
    z-index: 5;
    width: 88px;
    height: 88px;
    border: 0;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 45px rgba(217, 119, 6, 0.35);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-start:hover {
    transform: scale(1.06);
    box-shadow: 0 24px 55px rgba(217, 119, 6, 0.42);
}

.watch-player.is-playing .player-poster {
    opacity: 0;
    pointer-events: none;
}

.article-body h2 {
    margin: 28px 0 12px;
    font-size: 24px;
}

.article-body p {
    margin: 0 0 18px;
    color: #374151;
    font-size: 17px;
}

.side-panel {
    padding: 18px;
}

.side-panel h2 {
    margin: 4px 0 16px;
    font-size: 22px;
}

.side-movie {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.side-movie:first-of-type {
    border-top: 0;
}

.side-movie img {
    width: 82px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
}

.side-movie h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.side-movie p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
    padding: 46px 0 28px;
}

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

.site-footer h2,
.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.site-footer p {
    margin: 0;
    color: #9ca3af;
}

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

.footer-links a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.hidden-by-filter {
    display: none !important;
}

@media (max-width: 1024px) {
    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-slide.is-active,
    .feature-item,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster-card img {
        height: 480px;
    }

    .feature-item:nth-child(even) .feature-image {
        order: initial;
    }
}

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

    .nav-links,
    .nav-actions .search-toggle {
        display: none;
    }

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

    .logo {
        font-size: 19px;
    }

    .hero,
    .hero-stage,
    .hero-slide {
        min-height: auto;
    }

    .hero-slide {
        padding: 42px 0 72px;
    }

    .hero-slide.is-active {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-poster-card {
        border-width: 5px;
        border-radius: 22px;
        transform: none;
    }

    .hero-poster-card img {
        height: 380px;
    }

    .section {
        padding: 46px 0;
    }

    .section-header,
    .toolbar {
        display: block;
    }

    .filter-summary {
        margin-top: 12px;
    }

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

    .movie-body {
        padding: 13px;
    }

    .movie-title {
        font-size: 16px;
    }

    .ranking-list,
    .category-overview,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .detail-main {
        padding: 18px;
    }

    .player-start {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
