:root {
    --page-bg: #fff7ed;
    --panel-bg: #ffffff;
    --panel-soft: #fffaf2;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --brand-a: #f59e0b;
    --brand-b: #f97316;
    --brand-c: #fb7185;
    --line: #fed7aa;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 34rem),
        radial-gradient(circle at top right, rgba(251, 113, 133, 0.24), transparent 32rem),
        linear-gradient(135deg, #fff7ed 0%, #fff1f2 55%, #fff7ed 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(251, 146, 60, 0.25);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(146, 64, 14, 0.08);
}

.header-inner,
.footer-inner,
.main-wrap,
.hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr minmax(260px, 330px) auto;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

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

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.logo-text strong {
    display: block;
    font-size: 23px;
    letter-spacing: -0.04em;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, #d97706, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-text span {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.desktop-nav a,
.mobile-nav a {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.desktop-nav a.is-active {
    color: #ea580c;
}

.header-search {
    position: relative;
}

.search-field {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(251, 146, 60, 0.32);
    border-radius: 999px;
    padding: 0 44px 0 18px;
    background: rgba(255, 247, 237, 0.86);
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-field:focus {
    border-color: var(--brand-b);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #ea580c;
    pointer-events: none;
}

.search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    max-height: 420px;
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(251, 146, 60, 0.26);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

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

.search-results a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: #1f2937;
}

.search-results a:hover {
    background: #fff7ed;
}

.search-results strong {
    display: block;
    font-size: 14px;
}

.search-results span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: #9a3412;
    background: #ffedd5;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid rgba(251, 146, 60, 0.25);
    border-radius: 18px;
    background: #ffffff;
}

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

.page-main {
    min-height: calc(100vh - 270px);
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: #ffffff;
    background: linear-gradient(135deg, #92400e, #f97316, #fb7185);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    transition: opacity 0.65s ease, transform 0.8s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.62) 48%, rgba(17, 24, 39, 0.22) 100%),
        radial-gradient(circle at 78% 18%, rgba(251, 191, 36, 0.42), transparent 28rem);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
    align-items: center;
    gap: 52px;
    padding: 96px 0 86px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-summary {
    max-width: 700px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
}

.hero-meta .pill {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-b), var(--brand-c));
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.28);
}

.btn-light {
    color: #9a3412;
    background: rgba(255, 255, 255, 0.93);
}

.btn-ghost {
    color: #9a3412;
    border: 1px solid rgba(251, 146, 60, 0.35);
    background: #ffffff;
}

.hero-poster-card {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.38);
    backdrop-filter: blur(16px);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 22px 40px rgba(17, 24, 39, 0.34);
}

.hero-poster-info {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.main-wrap {
    padding: 54px 0 0;
}

.section-block {
    margin-top: 62px;
}

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

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

.section-lead {
    max-width: 780px;
    margin: 10px 0 0;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 26px rgba(146, 64, 14, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 20px 40px rgba(146, 64, 14, 0.16);
}

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

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

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

.card-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-b), var(--brand-c));
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 14px;
}

.card-title {
    margin: 0;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    min-height: 170px;
    padding: 22px;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(251, 113, 133, 0.20), transparent 8rem),
        linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 14px 30px rgba(146, 64, 14, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-card p {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.ranking-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 78px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.07);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(5px);
    border-color: rgba(249, 115, 22, 0.44);
}

.rank-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-c));
    font-weight: 950;
}

.rank-thumb {
    width: 78px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #ffedd5;
}

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

.rank-title {
    margin: 0;
    font-size: 17px;
    font-weight: 950;
}

.rank-desc {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.rank-score {
    color: #ea580c;
    font-size: 18px;
    font-weight: 950;
}

.page-hero {
    padding: 66px 0 34px;
    background:
        radial-gradient(circle at 80% 10%, rgba(251, 113, 133, 0.24), transparent 22rem),
        linear-gradient(135deg, rgba(255, 237, 213, 0.8), rgba(255, 255, 255, 0.4));
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 800px;
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.8;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 26px rgba(146, 64, 14, 0.08);
}

.filter-input {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 16px;
    padding: 0 16px;
    background: #fffaf2;
    outline: none;
}

.filter-input:focus {
    border-color: var(--brand-b);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.detail-poster {
    position: sticky;
    top: 100px;
    overflow: hidden;
    border-radius: 28px;
    background: #ffedd5;
    box-shadow: var(--shadow);
}

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

.detail-panel,
.player-card,
.text-card {
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(146, 64, 14, 0.1);
}

.detail-panel {
    padding: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 800;
}

.detail-title {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-subtitle {
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

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

.meta-item {
    padding: 14px;
    border-radius: 16px;
    background: #fff7ed;
}

.meta-item span {
    display: block;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
}

.meta-item strong {
    display: block;
    margin-top: 6px;
    color: #111827;
    font-size: 15px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.player-card,
.text-card {
    margin-top: 28px;
    padding: 24px;
}

.player-card h2,
.text-card h2 {
    margin: 0 0 18px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 24px 46px rgba(17, 24, 39, 0.24);
    cursor: pointer;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.64), rgba(146, 64, 14, 0.42));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-b), var(--brand-c));
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.34);
    font-size: 30px;
}

.text-card p {
    margin: 0;
    color: #374151;
    line-height: 1.95;
    font-size: 16px;
}

.text-card p + p {
    margin-top: 16px;
}

.site-footer {
    margin-top: 76px;
    border-top: 1px solid rgba(251, 146, 60, 0.24);
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.72), rgba(255, 247, 237, 0.95));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 34px;
    padding: 44px 0;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 14px;
}

.footer-inner p,
.footer-inner li {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.copy-line {
    border-top: 1px solid rgba(251, 146, 60, 0.24);
    padding: 18px 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 13px;
}

.hidden-card {
    display: none !important;
}

@media (max-width: 1120px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .desktop-nav {
        display: none;
    }

    .header-search {
        justify-self: end;
        width: min(330px, 100%);
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

@media (max-width: 860px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 12px 0;
    }

    .header-search {
        grid-column: 1 / -1;
        width: 100%;
        justify-self: stretch;
    }

    .hero-carousel {
        min-height: 760px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 64px 0 90px;
    }

    .hero-poster-card {
        max-width: 330px;
        margin: 0 auto;
    }

    .ranking-panel,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        position: relative;
        top: auto;
        max-width: 330px;
    }

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

    .rank-row {
        grid-template-columns: 44px 64px 1fr;
    }

    .rank-score {
        grid-column: 3;
    }
}

@media (max-width: 640px) {
    .logo-text strong {
        font-size: 20px;
    }

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

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

    .section-head,
    .filter-bar {
        display: block;
    }

    .section-actions {
        margin-top: 16px;
    }

    .filter-input {
        margin-bottom: 12px;
    }

    .detail-panel,
    .player-card,
    .text-card {
        padding: 18px;
        border-radius: 22px;
    }

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