:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #f59e0b;
    --blue: #3b82f6;
    --teal: #14b8a6;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--soft);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.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.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35);
}

.brand-text,
.footer-brand {
    font-size: 1.45rem;
    line-height: 1;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 650;
    color: #374151;
}

.desktop-nav a,
.mobile-panel a,
.site-footer a {
    transition: color 0.2s ease;
}

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

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.search-form input,
.mobile-search input,
.search-page-form input,
.list-toolbar input {
    width: 250px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.list-toolbar input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.search-form button,
.mobile-search button,
.search-page-form button {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    color: #fff;
    background: var(--orange);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-form button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    color: #374151;
    cursor: pointer;
}

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

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

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

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

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    transform: scale(1.015);
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.44) 48%, rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 48px;
    max-width: 760px;
    color: #fff;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 8px 15px;
    color: #fff;
    background: var(--orange);
    font-size: 0.88rem;
    font-weight: 700;
}

.eyebrow {
    padding: 0;
    color: var(--orange);
    background: transparent;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.05;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 1.12rem;
    line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
    border-radius: 999px;
    padding: 6px 10px;
    color: #f97316;
    background: #fff7ed;
    font-size: 0.82rem;
    font-weight: 650;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

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

.primary-button {
    color: #fff;
    background: var(--orange);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
}

.primary-button:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.ghost-button.dark {
    color: #374151;
    background: #f3f4f6;
}

.ghost-button.dark:hover {
    color: var(--orange);
    background: #fff7ed;
}

.hero-controls {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.hero-controls button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

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

.hero-dot {
    width: 9px !important;
    height: 9px !important;
    padding: 0 !important;
    opacity: 0.72;
}

.hero-dot.is-active {
    width: 28px !important;
    background: var(--orange) !important;
    opacity: 1;
}

.section-block,
.split-section,
.player-section,
.detail-content-grid {
    padding: 36px 0;
}

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

.section-heading.compact {
    margin-bottom: 18px;
}

.section-heading h2,
.player-section h2,
.detail-article h2 {
    margin: 6px 0 0;
    color: #1f2937;
    font-size: 1.75rem;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

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

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(249, 115, 22, 0.92);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, var(--orange));
    font-size: 0.72rem;
    font-weight: 800;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.78rem;
}

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

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

.movie-card p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #6b7280;
    font-size: 0.86rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 0.74rem;
}

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

.category-tile,
.category-overview-card,
.section-card {
    border: 1px solid #eef2f7;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.category-tile {
    padding: 22px;
}

.category-tile > a {
    display: grid;
    gap: 10px;
}

.category-tile span {
    color: var(--orange);
    font-weight: 900;
    font-size: 1.2rem;
}

.category-tile strong {
    min-height: 52px;
    color: #4b5563;
    font-weight: 500;
    line-height: 1.6;
}

.tile-links,
.mini-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.mini-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 10px;
    color: #4b5563;
    background: #f9fafb;
    transition: background 0.2s ease, color 0.2s ease;
}

.mini-link:hover {
    color: var(--orange);
    background: #fff7ed;
}

.mini-rank {
    display: grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-size: 0.8rem;
    font-weight: 900;
}

.mini-link em {
    color: #9ca3af;
    font-style: normal;
    font-size: 0.78rem;
}

.split-section,
.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
}

.section-card {
    padding: 24px;
}

.page-hero,
.detail-hero {
    padding: 48px 0;
    color: #fff;
}

.gradient-orange {
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.gradient-blue {
    background: linear-gradient(135deg, var(--blue), var(--teal));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

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

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    overflow: hidden;
}

.category-cover {
    position: relative;
    min-height: 260px;
    background: #111827;
}

.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.84;
}

.category-cover span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    border-radius: 999px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(249, 115, 22, 0.9);
    font-weight: 900;
}

.category-overview-body {
    padding: 22px;
}

.category-overview-body h2 {
    margin: 0 0 8px;
}

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

.list-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.list-toolbar label {
    display: grid;
    gap: 8px;
    color: #4b5563;
    font-weight: 800;
}

.list-toolbar input {
    width: min(560px, calc(100vw - 80px));
}

.search-page-form {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    border: 1px solid #eef2f7;
    border-radius: 22px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.search-page-form input {
    width: 100%;
}

.search-status {
    min-height: 28px;
    margin: 8px 0 18px;
    color: #6b7280;
    font-weight: 650;
}

.detail-hero {
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.8), transparent 28%), linear-gradient(135deg, #111827, #1f2937 48%, #7c2d12);
}

.detail-wrap .breadcrumb {
    color: #d1d5db;
}

.detail-main {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.32);
}

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

.detail-info h1 {
    margin: 18px 0;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.08;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.12);
}

.detail-one-line {
    max-width: 820px;
    color: #e5e7eb;
    font-size: 1.12rem;
    line-height: 1.8;
}

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

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

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.28), rgba(2, 6, 23, 0.76));
    cursor: pointer;
}

.player-cover strong {
    font-size: 1.15rem;
}

.play-circle {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--orange);
    box-shadow: 0 15px 36px rgba(249, 115, 22, 0.42);
    font-size: 2rem;
}

.player-shell.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.detail-article p {
    color: #4b5563;
    font-size: 1.02rem;
    line-height: 1.9;
}

.site-footer {
    margin-top: 32px;
    border-top: 1px solid var(--line);
    background: #fff;
}

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

.footer-grid p {
    max-width: 460px;
    color: #6b7280;
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #6b7280;
}

.footer-bottom {
    border-top: 1px solid #f3f4f6;
    padding: 18px;
    color: #9ca3af;
    text-align: center;
}

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

@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .split-section,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .search-form {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-frame {
        min-height: 560px;
        border-radius: 22px;
    }

    .hero-content {
        left: 24px;
        right: 24px;
        bottom: 86px;
    }

    .hero-controls {
        left: 24px;
        right: auto;
    }

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

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

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

    .category-cover {
        min-height: 220px;
    }

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

    .detail-poster {
        max-width: 260px;
    }

    .list-toolbar,
    .search-page-form {
        align-items: stretch;
        flex-direction: column;
    }
}

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

    .nav-shell {
        min-height: 64px;
    }

    .brand-text {
        font-size: 1.18rem;
    }

    .hero-section {
        padding-top: 18px;
    }

    .hero-frame {
        min-height: 520px;
        border-radius: 18px;
    }

    .hero-content h1 {
        font-size: 2.05rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

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

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

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

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

    .player-cover strong {
        font-size: 1rem;
    }

    .play-circle {
        width: 68px;
        height: 68px;
    }
}
