:root {
    --brand: #f59e0b;
    --brand-dark: #ea580c;
    --brand-soft: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --dark: #0f172a;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 38%, #fff7ed 100%);
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #f59e0b, #f97316, #d97706);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.28);
}

.site-nav {
    max-width: 1280px;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    font-size: 14px;
}

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

.nav-links a,
.mobile-panel a {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
    color: #fff7ed;
    transform: translateY(-1px);
}

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

.nav-search input,
.mobile-search input,
.search-page-form input,
.filter-box input {
    border: 0;
    outline: none;
    border-radius: 999px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    min-width: 230px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nav-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #b45309;
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 14px 22px 22px;
    background: linear-gradient(180deg, #d97706, #ea580c);
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

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

.mobile-search {
    display: flex;
    gap: 8px;
}

.hero-carousel {
    position: relative;
    height: min(760px, 72vh);
    min-height: 560px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 430px);
    align-items: center;
    gap: 52px;
    padding: 100px max(24px, calc((100vw - 1280px) / 2 + 24px)) 72px;
    background-image: linear-gradient(110deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.76) 42%, rgba(245, 158, 11, 0.25) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
    transition: opacity 0.55s ease, transform 0.55s ease;
    transform: scale(1.02);
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.34), transparent 28%), radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.28), transparent 30%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.62));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
}

.hero-content h1 {
    margin: 18px 0 20px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.1vw, 25px);
}

.hero-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-cloud a,
.detail-facts span,
.type-badge,
.rank-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.hero-tags span,
.tag-cloud a,
.detail-facts span {
    padding: 7px 12px;
    color: #78350f;
    background: #fef3c7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: #b45309;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(8px);
}

.hero-poster {
    align-self: center;
    justify-self: end;
    width: min(430px, 100%);
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.46);
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(1deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 3;
    padding: 10px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(12px);
}

.hero-controls button {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    cursor: pointer;
}

.hero-controls > button {
    width: 38px;
    height: 38px;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    opacity: 0.55;
}

.hero-dots button.is-active {
    width: 28px;
    opacity: 1;
    background: #fbbf24;
}

.content-section,
.page-main,
.detail-main {
    max-width: 1280px;
    margin: 0 auto;
}

.content-section {
    padding: 72px 24px;
}

.tinted-section {
    max-width: none;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.9), rgba(254, 243, 199, 0.82));
}

.tinted-section > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-heading h2,
.category-overview-head h2,
.movie-article h2,
.detail-side-card h2 {
    margin: 6px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-heading p,
.category-overview-head p {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}

.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 10px 16px;
    border-radius: 999px;
    color: #b45309;
    background: #fff7ed;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b, #0f172a);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.02);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.78));
    opacity: 0.85;
}

.type-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
}

.type-badge {
    left: 12px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.rank-badge {
    right: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.play-badge {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
    padding: 16px;
}

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body h3 a:hover {
    color: var(--brand-dark);
}

.movie-card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line,
.card-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #64748b;
    font-size: 13px;
}

.meta-line span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #f8fafc;
}

.card-bottom {
    justify-content: space-between;
    margin-top: 12px;
}

.card-bottom a {
    color: #b45309;
    font-weight: 900;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 24px;
    border-radius: 28px;
    color: #ffffff;
    background-image: linear-gradient(140deg, rgba(15, 23, 42, 0.84), rgba(217, 119, 6, 0.62)), var(--cat-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

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

.category-card span {
    display: block;
    font-size: 26px;
    font-weight: 900;
}

.category-card strong {
    display: inline-flex;
    margin: 10px 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.page-main {
    padding: 28px 24px 80px;
}

.page-hero {
    margin: 36px 0;
    padding: clamp(36px, 6vw, 72px);
    border-radius: 34px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.38), transparent 34%), linear-gradient(135deg, #0f172a, #92400e 55%, #f97316);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

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

.filter-box,
.search-page-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.filter-box input,
.search-page-form input {
    min-width: min(100%, 520px);
}

.filter-box span,
.search-summary {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
}

.category-overview-block {
    padding: 34px 0 50px;
    border-bottom: 1px solid var(--line);
}

.detail-main {
    max-width: none;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: end;
    padding: 110px max(24px, calc((100vw - 1280px) / 2 + 24px)) 68px;
    color: #ffffff;
    background-image: linear-gradient(110deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62), rgba(245, 158, 11, 0.28)), var(--detail-image);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 18%, rgba(251, 191, 36, 0.26), transparent 30%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.breadcrumb a:hover {
    color: #fbbf24;
}

.detail-copy h1 {
    margin: 10px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 880px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 28px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.26), rgba(15, 23, 42, 0.56));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
    font-size: 30px;
}

.player-overlay strong {
    font-size: 20px;
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-side-card,
.movie-article {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.09);
}

.detail-side-card {
    padding: 24px;
}

.detail-side-card h2 {
    font-size: 26px;
}

.detail-side-card dl {
    margin: 0;
}

.detail-side-card div {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.detail-side-card dt {
    color: var(--muted);
    font-size: 13px;
}

.detail-side-card dd {
    margin: 3px 0 0;
    font-weight: 900;
}

.detail-side-card a {
    color: #b45309;
}

.article-section {
    padding-top: 24px;
}

.movie-article {
    padding: clamp(24px, 5vw, 54px);
}

.movie-article h2 {
    font-size: 30px;
}

.movie-article p {
    color: #334155;
    font-size: 18px;
    white-space: pre-line;
}

.search-summary {
    margin-bottom: 22px;
    color: var(--muted);
}

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

.site-footer {
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
}

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

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer a {
    display: block;
    margin: 6px 0;
    color: rgba(255, 255, 255, 0.82);
}

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

.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    color: rgba(255, 255, 255, 0.56);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

    .nav-toggle {
        display: block;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
    }

    .hero-poster {
        display: none;
    }

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

    .player-layout,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(280px, 70vw);
    }

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

@media (max-width: 720px) {
    .site-nav {
        min-height: 62px;
        padding: 0 16px;
    }

    .logo {
        font-size: 20px;
    }

    .mobile-search {
        flex-direction: column;
    }

    .mobile-search input,
    .mobile-search button {
        width: 100%;
    }

    .hero-carousel {
        min-height: 620px;
        height: 74vh;
    }

    .hero-slide {
        padding: 92px 20px 90px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p,
    .detail-copy p {
        font-size: 17px;
    }

    .content-section,
    .page-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading,
    .category-overview-head {
        display: block;
    }

    .section-more {
        margin-top: 14px;
    }

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

    .movie-card-body {
        padding: 12px;
    }

    .movie-card-body h3 {
        font-size: 16px;
    }

    .movie-card-body p {
        font-size: 14px;
    }

    .page-hero {
        margin-top: 20px;
        padding: 30px 20px;
    }

    .detail-hero {
        min-height: auto;
        padding: 88px 18px 44px;
    }

    .detail-copy h1 {
        font-size: 38px;
    }

    .detail-facts span {
        font-size: 13px;
    }

    .player-overlay span {
        width: 64px;
        height: 64px;
    }

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

@media (max-width: 460px) {
    .movie-grid-5,
    .movie-grid-6,
    .movie-grid-4,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
