:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #f59e0b;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #fed7aa;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f9fafb;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #fffbeb, #fff7ed);
    border-bottom: 1px solid rgba(251, 146, 60, 0.25);
    box-shadow: 0 8px 26px rgba(31, 41, 55, 0.08);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--ink);
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
}

.logo-text {
    font-size: 21px;
    letter-spacing: 0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 650;
    transition: all 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
    color: #fff;
    background: var(--orange);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 237, 213, 0.9);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.hero-section {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fffbeb 48%, #fef3c7);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(56px);
    opacity: 0.35;
}

.hero-glow-one {
    width: 190px;
    height: 190px;
    left: 7%;
    top: 50px;
    background: #fb923c;
}

.hero-glow-two {
    width: 240px;
    height: 240px;
    right: 8%;
    bottom: 30px;
    background: #f59e0b;
}

.hero-glow-three {
    width: 180px;
    height: 180px;
    left: 48%;
    top: 44%;
    background: #fde047;
}

.hero-container {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-slider {
    width: 100%;
    min-height: 470px;
    position: relative;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 30px 0 20px;
    border-radius: 34px;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.93), rgba(255, 247, 237, 0.72)), var(--hero-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    box-shadow: var(--shadow);
}

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

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

.hero-copy {
    padding: 60px 0 60px 52px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--orange-dark);
    background: #ffedd5;
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 720px;
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 19px;
}

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

.hero-tags span,
.tag-row span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--orange-dark);
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 13px;
    font-weight: 650;
}

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

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

.primary-button {
    color: #fff;
    background: linear-gradient(90deg, #f97316, #d97706);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.secondary-button {
    color: #374151;
    background: #fff;
    border: 2px solid #fed7aa;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hero-poster {
    width: min(360px, 90%);
    justify-self: center;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    box-shadow: 0 32px 70px rgba(31, 41, 55, 0.25);
    transform: rotate(2deg);
}

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

.hero-poster span,
.poster-play,
.detail-cover span {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

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

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--orange-dark);
    background: rgba(255, 255, 255, 0.85);
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.32);
}

.hero-dot.active {
    width: 28px;
    background: var(--orange);
}

.site-section {
    padding: 72px 0;
}

.white-section {
    background: #fff;
}

.soft-section {
    background: linear-gradient(135deg, #f9fafb, #fff7ed);
}

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

.section-heading h2,
.category-preview h2,
.content-card h2,
.side-card h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading p,
.category-preview p {
    margin: 0;
    color: var(--muted);
}

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

.search-panel {
    margin: 0 0 30px;
    padding: 18px;
    border-radius: 22px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.search-label {
    display: block;
    margin-bottom: 10px;
    color: #9a3412;
    font-weight: 800;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #fdba74;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.18);
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fde68a);
}

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

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

.poster-play {
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-weight: 900;
}

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

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

.movie-card h3 a:hover,
.ranking-info h3 a:hover {
    color: var(--orange-dark);
}

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

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.tag-row {
    margin-top: 12px;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    padding: 24px;
    overflow: hidden;
    border-radius: 26px;
    color: #fff;
    box-shadow: var(--shadow);
}

.category-tile img,
.category-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-tile img {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-shade {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.78));
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 1;
    display: block;
}

.category-tile strong {
    margin-top: 88px;
    font-size: 24px;
}

.category-tile em {
    margin-top: 8px;
    font-style: normal;
    opacity: 0.9;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 54px 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}

.ranking-rank {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-weight: 900;
}

.ranking-poster {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
}

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

.ranking-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-info p {
    margin: 0 0 10px;
    color: var(--muted);
}

.page-hero {
    position: relative;
    padding: 76px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fffbeb 55%, #fde68a);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    color: #7c2d12;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--orange-dark);
}

.preview-stack {
    display: grid;
    gap: 34px;
    padding: 48px 0 72px;
}

.category-preview {
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(31, 41, 55, 0.07);
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58)), var(--detail-bg);
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(0deg, #fff, rgba(255, 255, 255, 0));
}

.detail-hero-grid {
    position: relative;
    z-index: 1;
    min-height: 560px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-cover {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.4);
    aspect-ratio: 2 / 3;
}

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

.detail-copy .breadcrumb,
.detail-copy .eyebrow,
.detail-copy .detail-one-line,
.detail-copy .detail-meta {
    color: rgba(255, 255, 255, 0.86);
}

.detail-copy .eyebrow {
    background: rgba(249, 115, 22, 0.24);
    color: #fed7aa;
}

.detail-copy h1 {
    color: #fff;
}

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

.main-column,
.side-column {
    display: grid;
    gap: 22px;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    background: #111827;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.72));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--orange);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
    font-size: 26px;
}

.content-card,
.side-card {
    padding: 28px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: 0 12px 34px rgba(31, 41, 55, 0.07);
}

.content-card p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
}

.empty-result {
    display: none;
    margin: 28px 0 0;
    padding: 22px;
    border-radius: 20px;
    color: #9a3412;
    background: #fff7ed;
    text-align: center;
    font-weight: 800;
}

.empty-result.is-visible {
    display: block;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-logo {
    color: #fff;
    font-size: 22px;
}

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

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

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li {
    margin-top: 8px;
}

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

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

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

    .menu-button {
        display: block;
    }

    .hero-slide,
    .detail-hero-grid,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 54px 26px 20px;
    }

    .hero-poster {
        width: min(260px, 70vw);
    }

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

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

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

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

    .logo-text {
        font-size: 18px;
    }

    .hero-section,
    .hero-container,
    .hero-slider {
        min-height: 720px;
    }

    .hero-slide {
        gap: 18px;
    }

    .hero-slide::before {
        inset: 18px 0;
    }

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

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .section-heading,
    .category-preview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-item {
        grid-template-columns: 42px 78px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-info p {
        display: none;
    }

    .detail-hero-grid {
        padding: 34px 0;
    }

    .detail-cover {
        width: min(230px, 70vw);
    }

    .content-card,
    .side-card,
    .category-preview {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .compact-grid,
    .category-grid,
    .side-column {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

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