:root {
    --site-bg: #fff7ed;
    --site-card: rgba(255, 255, 255, 0.9);
    --site-text: #111827;
    --site-muted: #6b7280;
    --site-line: rgba(148, 163, 184, 0.28);
    --site-amber: #d97706;
    --site-orange: #ea580c;
    --site-slate: #0f172a;
    --site-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--site-text);
    background:
        radial-gradient(circle at 12% 4%, rgba(251, 191, 36, 0.32), transparent 28rem),
        radial-gradient(circle at 88% 10%, rgba(249, 115, 22, 0.18), transparent 32rem),
        linear-gradient(135deg, #f8fafc 0%, #fff7ed 45%, #ffedd5 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: white;
    background: linear-gradient(135deg, var(--site-amber), var(--site-orange));
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.brand-text {
    background: linear-gradient(90deg, var(--site-amber), var(--site-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #374151;
    font-weight: 700;
}

.nav-menu a,
.dropdown-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #374151;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.dropdown-button:hover,
.nav-menu .active {
    color: var(--site-amber);
}

.dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--site-line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--site-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    min-height: auto;
    padding: 10px 12px;
    border-radius: 11px;
    color: #374151;
    font-size: 14px;
}

.dropdown-panel a:hover {
    background: #fff7ed;
    color: var(--site-amber);
}

.nav-search {
    position: relative;
    width: min(280px, 28vw);
}

.nav-search input {
    width: 100%;
    height: 42px;
    padding: 0 44px 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    outline: none;
    background: white;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.nav-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--site-amber), var(--site-orange));
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    font-size: 24px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border-top: 1px solid var(--site-line);
}

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

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

.mobile-panel a:hover {
    background: #fff7ed;
    color: var(--site-amber);
}

.mobile-panel .nav-search {
    display: block;
    width: 100%;
}

.page-main {
    min-height: 60vh;
}

.hero-section {
    padding: 32px 0 48px;
}

.hero-shell {
    position: relative;
    height: 560px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--site-shadow);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: clamp(24px, 5vw, 58px);
    right: clamp(24px, 5vw, 58px);
    bottom: clamp(28px, 6vw, 68px);
    z-index: 2;
    max-width: 780px;
    color: white;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fbbf24;
    font-weight: 800;
}

.hero-title {
    margin: 0 0 14px;
    font-size: clamp(38px, 7vw, 64px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.hero-copy {
    max-width: 700px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.75;
}

.button-primary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--site-amber), var(--site-orange));
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

.button-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 18px 32px rgba(217, 119, 6, 0.34);
}

.button-ghost {
    color: var(--site-amber);
    background: #fff7ed;
}

.hero-controls {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-controls button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.hero-dots {
    position: absolute;
    left: clamp(24px, 5vw, 58px);
    bottom: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 28px;
    background: #fbbf24;
}

.section {
    padding: 54px 0;
}

.section-muted {
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(12px);
}

.section-gradient {
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.9), rgba(255, 237, 213, 0.78));
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-subtitle {
    max-width: 780px;
    margin: 8px 0 0;
    color: var(--site-muted);
    line-height: 1.75;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 20px;
}

.movie-grid.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.72);
    border-radius: 20px;
    background: var(--site-card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1f2937;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 58%);
    transition: opacity 0.24s ease;
}

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: var(--site-amber);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: all 0.24s ease;
}

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

.card-body {
    padding: 15px;
}

.card-title {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

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

.card-meta {
    margin: 0 0 9px;
    color: #6b7280;
    font-size: 13px;
}

.card-copy {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

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

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

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

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

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.category-card {
    padding: 24px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.13);
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.list-card {
    display: flex;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.72);
    border-radius: 18px;
    background: white;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.11);
}

.list-card img {
    width: 82px;
    height: 110px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.list-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 900;
}

.list-card p {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}

.page-hero {
    padding: 50px 0 32px;
}

.page-hero-card {
    padding: clamp(28px, 5vw, 54px);
    border-radius: 28px;
    color: white;
    background:
        radial-gradient(circle at 15% 18%, rgba(251, 191, 36, 0.34), transparent 24rem),
        linear-gradient(135deg, #111827, #7c2d12 58%, #ea580c);
    box-shadow: var(--site-shadow);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--site-amber);
    font-weight: 700;
}

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

.detail-panel,
.side-panel {
    border: 1px solid rgba(226, 232, 240, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.detail-panel {
    overflow: hidden;
}

.player-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-stage video {
    display: block;
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.22));
    cursor: pointer;
}

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

.player-center {
    display: grid;
    place-items: center;
    gap: 14px;
    text-align: center;
}

.player-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-amber), var(--site-orange));
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.36);
    font-size: 34px;
}

.player-title {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 950;
}

.player-status {
    min-height: 24px;
    padding: 10px 18px 0;
    color: #92400e;
    font-size: 14px;
}

.detail-content {
    padding: clamp(22px, 4vw, 34px);
}

.detail-content h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.meta-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 14px 0 20px;
}

.pill,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.pill {
    color: #92400e;
    background: #fffbeb;
}

.tag {
    color: #374151;
    background: #f3f4f6;
}

.prose-block h2 {
    margin: 28px 0 10px;
    font-size: 24px;
    font-weight: 950;
}

.prose-block p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

.side-panel {
    position: sticky;
    top: 88px;
    padding: 18px;
}

.side-poster {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    background: #111827;
}

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

.side-panel h2 {
    margin: 18px 0 10px;
    font-size: 22px;
    font-weight: 950;
}

.side-panel p {
    margin: 0 0 18px;
    color: #6b7280;
    line-height: 1.7;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 82px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
    color: var(--site-amber);
    font-size: 30px;
    font-weight: 950;
    text-align: center;
}

.rank-item img {
    width: 82px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-item h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 950;
}

.rank-item p {
    margin: 0;
    color: #6b7280;
    line-height: 1.65;
}

.search-empty {
    padding: 32px;
    border-radius: 22px;
    background: white;
    color: #6b7280;
    text-align: center;
}

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

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    padding: 44px 0;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 12px;
    color: white;
    font-weight: 900;
}

.footer-inner p,
.footer-inner a {
    color: #94a3b8;
    line-height: 1.75;
}

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

.footer-bottom {
    padding: 18px 0 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 14px;
}

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-shell {
        height: 500px;
    }

    .hero-controls {
        right: 18px;
        bottom: 18px;
    }

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

    .side-panel {
        position: static;
    }

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

@media (max-width: 640px) {
    .hero-section {
        padding-top: 18px;
    }

    .hero-shell {
        height: 460px;
        border-radius: 22px;
    }

    .hero-copy {
        font-size: 15px;
    }

    .hero-dots {
        display: none;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 15px;
    }

    .rank-item {
        grid-template-columns: 48px 70px minmax(0, 1fr);
    }

    .rank-item .button-primary {
        grid-column: 2 / -1;
        width: fit-content;
    }
}
