:root {
    --page: #fafafa;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #d97706;
    --brand-dark: #b45309;
    --brand-soft: #fef3c7;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
    --shadow-soft: 0 12px 28px rgba(17, 24, 39, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 48%, #fff7ed 100%);
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #f59e0b);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.28);
    font-size: 15px;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

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

.logo-sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    font-weight: 650;
    color: #374151;
}

.desktop-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--brand-dark);
}

.site-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.site-search-form input {
    width: 210px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.site-search-form button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form button,
.primary-button {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.24);
}

.site-search-form button:hover,
.primary-button:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    width: 42px;
    height: 42px;
    font-size: 20px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
}

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

.hero-slider {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.54));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 720px;
    padding: 98px 0 92px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.92);
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

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

.hero-content p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.75;
    max-width: 640px;
    margin: 0 0 22px;
}

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

.hero-meta span {
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

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

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

.hero-dots button {
    width: 40px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
}

.hero-dots button.is-active {
    width: 58px;
    background: #f59e0b;
}

.quick-cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    transform: translateY(-38px);
    position: relative;
    z-index: 5;
}

.quick-cat {
    border-radius: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.quick-cat strong {
    display: block;
    color: #111827;
    font-size: 18px;
    margin-bottom: 8px;
}

.quick-cat span {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

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

.content-section.alt {
    background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

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

.section-heading h2,
.page-heading h1 {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 42px);
    letter-spacing: -0.03em;
}

.section-heading p,
.page-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-heading a {
    color: var(--brand-dark);
    font-weight: 800;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.82);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111827;
}

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

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

.card-badge,
.rank-mark {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    left: 12px;
    background: rgba(17, 24, 39, 0.74);
    color: #ffffff;
}

.rank-mark {
    right: 12px;
    background: rgba(217, 119, 6, 0.92);
    color: #ffffff;
}

.card-content {
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-content h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.64;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

.card-meta span {
    border-radius: 999px;
    background: #f9fafb;
    padding: 4px 8px;
}

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

.tag-row span {
    border-radius: 999px;
    background: var(--brand-soft);
    color: #92400e;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.rank-list {
    display: grid;
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px 200px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.88);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    font-size: 28px;
    font-weight: 900;
    color: rgba(217, 119, 6, 0.40);
    text-align: center;
}

.rank-item img {
    width: 200px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-item p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
}

.page-hero {
    padding: 64px 0 40px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

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

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

.category-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.82);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
}

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

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-top: 16px;
}

.category-preview img {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-bar a,
.filter-bar button {
    border: 1px solid var(--line);
    background: #ffffff;
    color: #374151;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 750;
    cursor: pointer;
}

.filter-bar a.is-active,
.filter-bar button.is-active {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.detail-shell {
    background: #111827;
    color: #ffffff;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: grid;
    align-items: end;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.04);
    transform: scale(1.03);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.90), rgba(17, 24, 39, 0.56), rgba(17, 24, 39, 0.24)), linear-gradient(180deg, rgba(17, 24, 39, 0.10), rgba(17, 24, 39, 1));
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 92px 0 48px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 38px;
    align-items: end;
}

.detail-poster {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.35);
    aspect-ratio: 2 / 3;
    background: #000000;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumb a {
    color: #fbbf24;
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.detail-copy p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.78;
    font-size: 17px;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.player-section {
    background: #111827;
    padding: 0 0 60px;
}

.player-wrap {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
    color: #ffffff;
    display: grid;
    place-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 900;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.94);
    box-shadow: 0 18px 50px rgba(217, 119, 6, 0.35);
    font-size: 34px;
}

.play-text {
    font-size: 18px;
    letter-spacing: 0.04em;
}

.article-section {
    background: #ffffff;
    padding: 64px 0;
}

.article-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 38px;
}

.article-card,
.side-card {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.82);
    padding: 28px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.article-card p {
    color: #374151;
    line-height: 1.88;
    margin: 0 0 18px;
    font-size: 16px;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
}

.info-list strong {
    color: #6b7280;
}

.related-list {
    display: grid;
    gap: 12px;
}

.related-list a {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #f9fafb;
}

.related-list img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.related-list h3 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.38;
}

.related-list span {
    color: var(--muted);
    font-size: 12px;
}

.search-panel {
    padding: 34px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(229, 231, 235, 0.82);
    margin-bottom: 34px;
}

.search-panel form {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 12px;
}

.search-panel input {
    width: 100%;
    padding: 15px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    outline: none;
    font-size: 16px;
}

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

.search-panel button {
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 850;
    cursor: pointer;
}

.search-status {
    color: var(--muted);
    margin-bottom: 20px;
}

@media (max-width: 1060px) {
    .desktop-nav,
    .header-inner > .site-search-form {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-panel .site-search-form {
        display: grid;
        grid-template-columns: 1fr auto;
        margin-left: 0;
    }

    .mobile-panel .site-search-form input {
        width: 100%;
    }

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

    .detail-inner,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 300px;
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: 66px;
        width: min(100% - 24px, 1180px);
    }

    .logo-main {
        font-size: 18px;
    }

    .logo-sub {
        display: none;
    }

    .hero-slider {
        min-height: 560px;
    }

    .hero-content {
        padding: 82px 0 86px;
    }

    .quick-cats,
    .movie-grid,
    .movie-grid.wide,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 44px 112px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-item img {
        width: 112px;
    }

    .rank-item h3 {
        font-size: 16px;
    }

    .rank-item p {
        display: none;
    }

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

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

    .detail-inner {
        padding-top: 64px;
    }

    .detail-poster {
        display: none;
    }

    .search-panel {
        padding: 22px;
    }

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

    .search-panel button {
        min-height: 46px;
    }
}
