:root {
    --bg: #f9fafb;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --red: #dc2626;
    --amber: #f59e0b;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --soft-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

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

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 26px;
    color: var(--orange);
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.3);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.main-nav a,
.mobile-panel a {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
    color: var(--orange);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-search input,
.search-input {
    border: 1px solid #d1d5db;
    border-radius: 999px 0 0 999px;
    padding: 11px 16px;
    min-width: 230px;
    outline: none;
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: var(--orange);
    border-radius: 0 999px 999px 0;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--orange);
    background: #fff7ed;
    cursor: pointer;
    font-size: 22px;
}

.mobile-panel {
    border-top: 1px solid var(--line);
    padding: 16px;
    background: #ffffff;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mobile-panel nav a {
    padding: 10px 12px;
    border-radius: 10px;
}

.mobile-panel nav a:hover {
    background: #fff7ed;
}

.hero-section {
    position: relative;
    min-height: 570px;
    color: #ffffff;
    overflow: hidden;
    background: linear-gradient(115deg, var(--orange), var(--red));
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.24), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.28), transparent 32%),
        linear-gradient(0deg, rgba(249, 250, 251, 0) 76%, rgba(255, 255, 255, 0.08));
}

.hero-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(180deg, rgba(249, 250, 251, 0), var(--bg));
}

.hero-inner {
    position: relative;
    padding: 84px 0 135px;
}

.hero-track {
    min-height: 390px;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr);
    align-items: center;
    gap: 56px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 720px;
    margin: 22px 0 24px;
    font-size: clamp(18px, 2vw, 25px);
    color: #ffedd5;
}

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags span,
.tag-row span,
.detail-tags span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 13px;
    font-style: normal;
}

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

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

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

.btn.primary {
    color: var(--orange);
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18);
}

.btn.ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.12);
}

.hero-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 247, 237, 0.16);
    box-shadow: 0 28px 80px rgba(127, 29, 29, 0.42);
    transform: rotate(2deg);
}

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

.hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.72));
}

.hero-cover span {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 1;
    font-size: 24px;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    left: 0;
    bottom: 78px;
    display: flex;
    gap: 10px;
}

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

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

.feature-overlap {
    position: relative;
    z-index: 3;
    margin-top: -92px;
    margin-bottom: 54px;
}

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

.section {
    padding: 58px 0;
}

.white-section {
    background: #ffffff;
}

.section-head {
    margin-bottom: 28px;
}

.section-head p,
.page-hero p,
.detail-copy > p {
    margin: 0 0 8px;
    color: var(--orange);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-head h2,
.page-hero h1,
.player-container h2,
.content-card h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
}

.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-link {
    color: var(--orange);
    font-weight: 800;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(229, 231, 235, 0.86);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(234, 88, 12, 0.26);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(234, 88, 12, 0.18), rgba(220, 38, 38, 0.18)),
        #f3f4f6;
}

.movie-card .poster-frame {
    aspect-ratio: 3 / 4;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-frame img.image-missing {
    opacity: 0;
}

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

.poster-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 1;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.92);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
}

.movie-card strong {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card em {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span:first-child {
    color: var(--orange);
    font-weight: 800;
}

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

.movie-card.compact .movie-card-body {
    padding: 15px;
}

.movie-card.compact strong {
    font-size: 16px;
}

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

.category-tile,
.category-panel-main {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    padding: 28px;
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-panel-main:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: var(--shadow);
}

.category-tile strong,
.category-panel-main strong {
    font-size: 25px;
}

.category-tile span,
.category-panel-main span {
    opacity: 0.92;
}

.category-tile em {
    font-style: normal;
    font-size: 13px;
    opacity: 0.86;
}

.tone-1 { background: linear-gradient(135deg, #ef4444, #f97316); }
.tone-2 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.tone-3 { background: linear-gradient(135deg, #16a34a, #14b8a6); }
.tone-4 { background: linear-gradient(135deg, #f59e0b, #eab308); }
.tone-5 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.tone-6 { background: linear-gradient(135deg, #0f766e, #0891b2); }

.category-panel {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--line);
}

.category-samples {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.category-samples a {
    color: #374151;
    font-weight: 650;
}

.category-samples a:hover {
    color: var(--orange);
}

.ranking-band {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 58px 72px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    box-shadow: var(--soft-shadow);
}

.rank-no {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    font-weight: 900;
}

.rank-poster {
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

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

.rank-copy {
    display: grid;
    gap: 4px;
}

.rank-copy strong {
    font-size: 18px;
}

.rank-copy em {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--muted);
    font-style: normal;
}

.rank-copy span {
    color: #9ca3af;
    font-size: 13px;
}

.page-hero {
    padding: 88px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 15%, rgba(251, 191, 36, 0.32), transparent 30%),
        linear-gradient(115deg, var(--orange), var(--red));
}

.page-hero.compact-hero {
    padding: 64px 0;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(40px, 6vw, 60px);
}

.page-hero span {
    display: block;
    max-width: 780px;
    margin-top: 14px;
    color: #ffedd5;
    font-size: 18px;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.filter-bar .search-input {
    flex: 1;
    border-radius: 999px;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.quick-filters button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #9a3412;
    background: #ffedd5;
    cursor: pointer;
    font-weight: 800;
}

.quick-filters button.is-active,
.quick-filters button:hover {
    color: #ffffff;
    background: var(--orange);
}

.filter-card.is-hidden {
    display: none;
}

.detail-hero {
    position: relative;
    color: #ffffff;
    overflow: hidden;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    filter: blur(8px);
    transform: scale(1.06);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.66));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 42px 0 64px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    color: #fed7aa;
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.detail-one-line {
    max-width: 850px;
    color: #f3f4f6;
    font-size: 19px;
    margin-bottom: 28px;
}

.player-container h2 {
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #030712;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #030712;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.28), rgba(3, 7, 18, 0.68));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--orange);
    background: #ffffff;
    font-size: 32px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

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

.detail-content {
    display: grid;
    gap: 20px;
}

.content-card {
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--line);
}

.content-card p {
    margin: 18px 0 0;
    color: #374151;
    font-size: 17px;
    white-space: pre-line;
}

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

.detail-tags {
    margin-top: 18px;
}

.detail-tags span,
.detail-tags a {
    color: #9a3412;
    background: #ffedd5;
}

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

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding: 52px 0;
}

.site-footer p {
    max-width: 430px;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

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

.footer-links a:hover {
    color: #fb923c;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 18px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .main-nav {
        display: none;
    }

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

    .header-search {
        margin-left: auto;
    }

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

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

@media (max-width: 820px) {
    .header-search {
        display: none;
    }

    .hero-inner {
        padding-top: 54px;
    }

    .hero-track {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-cover {
        width: min(330px, 100%);
        margin: 0 auto;
    }

    .hero-controls {
        bottom: 60px;
    }

    .featured-grid,
    .movie-grid,
    .category-grid,
    .category-panels,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar,
    .split {
        align-items: stretch;
        flex-direction: column;
    }

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

    .detail-poster {
        width: min(260px, 100%);
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 62px;
    }

    .logo,
    .footer-logo {
        font-size: 22px;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-track {
        min-height: 670px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

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

    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-panels,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 44px 58px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-no {
        width: 34px;
        height: 34px;
    }

    .rank-copy em {
        -webkit-line-clamp: 2;
    }

    .page-hero,
    .page-hero.compact-hero {
        padding: 48px 0;
    }

    .content-card {
        padding: 22px;
    }
}
