:root {
    --color-bg: #fff7ed;
    --color-bg-soft: #fffbeb;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-primary: #b45309;
    --color-primary-dark: #92400e;
    --color-primary-soft: #fef3c7;
    --color-card: #ffffff;
    --shadow-card: 0 10px 35px rgba(17, 24, 39, 0.10);
    --shadow-soft: 0 8px 24px rgba(180, 83, 9, 0.14);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background: linear-gradient(180deg, var(--color-bg-soft), #ffffff 420px);
}

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: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(14px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #ea580c);
    box-shadow: var(--shadow-soft);
    font-size: 14px;
}

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

.nav-link,
.mobile-nav-link {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover {
    color: var(--color-primary);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
}

.header-search input,
.mobile-search input,
.large-search-form input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 11px 14px;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.12);
}

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

.header-search button:hover,
.mobile-search button:hover,
.large-search-form button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: #374151;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--color-border);
    padding: 14px 24px 20px;
    background: #ffffff;
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 8px;
}

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

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 40%, rgba(251, 191, 36, 0.22), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
    color: #ffffff;
    padding: 96px 0;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 14px;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.92);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.section-kicker {
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 690px;
    margin: 0;
    color: #e5e7eb;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.detail-tags,
.genre-tags,
.rank-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-tags {
    margin: 24px 0 34px;
}

.hero-tags span,
.detail-tags span,
.genre-tags span,
.rank-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.text-link,
.light-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    min-height: 46px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

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

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.small-button {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #f59e0b;
}

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

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

.section-heading h2,
.page-hero h1,
.detail-title-block h1 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.category-panel p,
.footer-brand p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.text-link {
    color: var(--color-primary);
    background: #fff7ed;
}

.text-link:hover {
    color: #ffffff;
    background: var(--color-primary);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-md);
    background: var(--color-card);
    box-shadow: 0 4px 18px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.movie-card-large .card-cover {
    aspect-ratio: 16 / 9;
}

.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;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
    transition: opacity 0.3s ease;
}

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

.card-year {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    border-radius: 9px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
}

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

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

.card-meta {
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--color-muted);
    font-size: 13px;
}

.card-meta span:first-child {
    border-radius: 8px;
    padding: 4px 8px;
    color: var(--color-primary-dark);
    background: #fffbeb;
    font-weight: 700;
}

.card-category {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    font-size: 12px;
    font-weight: 800;
}

.highlight-band {
    background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

.highlight-inner {
    padding-top: 70px;
    padding-bottom: 70px;
}

.light-link {
    color: #ffffff;
    background: var(--color-primary);
}

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

.slim-hero,
.category-hero,
.ranking-hero,
.search-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
}

.page-hero > div {
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 36px;
    background:
        radial-gradient(circle at right top, rgba(251, 191, 36, 0.3), transparent 40%),
        linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 12px 42px rgba(180, 83, 9, 0.12);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #78716c;
    font-size: 14px;
}

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

.slash {
    color: #d6d3d1;
}

.search-panel-card,
.category-panel,
.detail-card,
.info-card,
.watch-tip,
.filter-panel {
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 7px 28px rgba(17, 24, 39, 0.06);
}

.search-panel-card {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 470px);
    align-items: center;
    gap: 32px;
    padding: 34px;
}

.search-panel-card h2 {
    margin: 12px 0 8px;
    font-size: clamp(26px, 4vw, 38px);
}

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

.category-overview {
    display: grid;
    gap: 28px;
}

.category-panel {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    padding: 26px;
}

.category-panel-head span {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 12px;
    color: #ffffff;
    background: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
}

.category-panel-head h2 {
    margin: 14px 0 10px;
    font-size: 30px;
}

.category-panel-head .primary-button {
    margin-top: 18px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 220px auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-count {
    justify-self: end;
    border-radius: 999px;
    padding: 9px 12px;
    color: var(--color-primary-dark);
    background: #fffbeb;
    font-weight: 800;
    white-space: nowrap;
}

.empty-state {
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    color: var(--color-muted);
    background: #ffffff;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 92px 70px 1fr auto;
    align-items: center;
    gap: 20px;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-lg);
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
}

.rank-item.gold {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.rank-cover {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #fef3c7;
}

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

.rank-number {
    color: var(--color-primary);
    font-size: 30px;
    font-weight: 900;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

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

.rank-score {
    border-radius: 18px;
    padding: 12px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #ea580c);
    font-size: 22px;
    font-weight: 900;
}

.player-hero {
    background: radial-gradient(circle at center top, rgba(180, 83, 9, 0.24), transparent 44%), #111827;
    padding: 38px 0 46px;
}

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

.player-wrap .breadcrumb {
    color: #d1d5db;
}

.player-wrap .breadcrumb a {
    color: #fbbf24;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.video-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.92);
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, background 0.22s ease;
}

.video-play-button span {
    margin-left: 6px;
    font-size: 36px;
}

.video-play-button:hover {
    background: var(--color-primary-dark);
    transform: translate(-50%, -50%) scale(1.08);
}

.video-frame.is-playing .video-play-button {
    opacity: 0;
    pointer-events: none;
}

.player-status {
    position: absolute;
    left: 20px;
    bottom: 16px;
    z-index: 4;
    margin: 0;
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    font-size: 13px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 34px;
}

.detail-main,
.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 22px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
    color: var(--color-muted);
    font-weight: 700;
}

.detail-card,
.info-card,
.watch-tip {
    padding: 26px;
}

.detail-card h2,
.info-card h2,
.watch-tip h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.detail-card p,
.watch-tip p {
    margin: 0;
    color: #4b5563;
    line-height: 1.86;
}

.detail-card p + p {
    margin-top: 14px;
}

.lead-text {
    color: #111827 !important;
    font-weight: 700;
}

.info-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 10px;
}

.info-card dt {
    color: var(--color-muted);
}

.info-card dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
}

.info-card a {
    color: var(--color-primary-dark);
}

.watch-tip {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #ea580c);
}

.watch-tip p {
    color: #fffbeb;
}

.site-footer {
    margin-top: 54px;
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 28px;
}

.footer-brand {
    max-width: 660px;
    margin-bottom: 34px;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 12px;
}

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

.footer-grid h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.footer-grid a,
.footer-grid p {
    display: block;
    margin: 8px 0;
    color: #9ca3af;
    line-height: 1.7;
}

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

.footer-bottom {
    margin-top: 34px;
    border-top: 1px solid #374151;
    padding-top: 20px;
    color: #9ca3af;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

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

    .mobile-menu-button {
        display: block;
    }

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

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

    .detail-layout,
    .category-panel,
    .search-panel-card {
        grid-template-columns: 1fr;
    }

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

    .filter-count {
        justify-self: start;
    }
}

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

    .site-logo span:last-child {
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero {
        min-height: 76vh;
    }

    .hero-content {
        width: min(100% - 30px, 1180px);
        padding: 74px 0 90px;
    }

    .hero-control {
        display: none;
    }

    .content-section {
        width: min(100% - 24px, 1180px);
        padding: 44px 0;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-desc {
        display: none;
    }

    .page-hero {
        width: min(100% - 24px, 1180px);
        padding: 34px 0 18px;
    }

    .page-hero > div,
    .search-panel-card,
    .category-panel,
    .detail-card,
    .info-card,
    .watch-tip,
    .filter-panel {
        border-radius: 18px;
        padding: 20px;
    }

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

    .rank-item {
        grid-template-columns: 74px 1fr;
        align-items: start;
    }

    .rank-number,
    .rank-score {
        grid-column: span 1;
    }

    .rank-score {
        width: fit-content;
        font-size: 18px;
    }

    .player-wrap {
        width: min(100% - 24px, 1180px);
    }

    .video-frame {
        border-radius: 18px;
    }

    .video-play-button {
        width: 68px;
        height: 68px;
    }

    .detail-layout {
        gap: 22px;
    }

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

@media (max-width: 420px) {
    .movie-grid,
    .compact-grid,
    .feature-grid,
    .category-panel-grid {
        grid-template-columns: 1fr;
    }

    .hero-tags span:nth-child(n + 4) {
        display: none;
    }
}
