:root {
    --bg: #fffaf4;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --orange: #ea580c;
    --orange-soft: #ffedd5;
    --amber: #f59e0b;
    --shadow: 0 20px 55px rgba(17, 24, 39, 0.12);
    --radius: 22px;
}

body {
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.26);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong,
.footer-brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #ea580c, #d97706);
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 650;
}

.desktop-nav a,
.desktop-nav button,
.mobile-nav a,
.footer-links a {
    color: #374151;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.desktop-nav button:hover,
.mobile-nav a:hover,
.mobile-nav a.active,
.footer-links a:hover {
    color: var(--orange);
}

.nav-more {
    position: relative;
}

.nav-more button {
    padding: 8px 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.nav-more-panel {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    width: 180px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

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

.nav-more-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.nav-more-panel a:hover {
    background: var(--orange-soft);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff7ed;
    cursor: pointer;
}

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

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

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 650;
}

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

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

.hero {
    position: relative;
    min-height: 70vh;
    margin: 0 calc(50% - 50vw) 36px;
    overflow: hidden;
    background: #111827;
}

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

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

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

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #ffffff;
}

.hero-content > * {
    max-width: 680px;
}

.hero-pill,
.eyebrow,
.page-hero span,
.section-title span,
.ranking-copy span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.03em;
}

.hero-content h1 {
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2.1vw, 22px);
    line-height: 1.8;
}

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

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

.primary-btn,
.search-entry button {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 16px 32px rgba(234, 88, 12, 0.26);
}

.secondary-btn {
    color: var(--orange);
    background: #ffffff;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.hero .secondary-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.primary-btn:hover,
.secondary-btn:hover,
.search-entry button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.22);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

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

.quick-search {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    margin: -72px auto 56px;
    padding: 24px;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 237, 213, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.quick-search strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
}

.quick-search span {
    color: var(--muted);
}

.search-entry,
.filter-bar {
    display: flex;
    gap: 12px;
}

.search-entry input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    outline: none;
}

.search-entry input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #fdba74;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

.section-block,
.category-showcase,
.category-grid,
.ranking-section,
.detail-layout,
.watch-hero {
    margin: 56px 0;
}

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

.section-title h2,
.ranking-copy h2,
.page-hero h1,
.watch-copy h1,
.detail-content h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

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

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

.movie-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 146, 60, 0.48);
    box-shadow: var(--shadow);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937, #9a3412);
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.9);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 850;
}

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

.movie-card p {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
}

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

.tag-row span,
.detail-tags span {
    padding: 5px 9px;
    color: #9a3412;
    background: #fff7ed;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.ranking-section {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 28px;
    padding: 32px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border: 1px solid #fed7aa;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(234, 88, 12, 0.12);
}

.ranking-copy p {
    color: var(--muted);
    line-height: 1.8;
}

.ranking-list,
.ranking-page-list {
    display: grid;
    gap: 12px;
}

.ranking-page-list {
    margin: 32px 0 70px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 52px 58px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.rank-number {
    color: var(--orange);
    font-size: 24px;
    font-weight: 900;
}

.ranking-item img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827, #f97316);
}

.rank-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-copy strong {
    font-size: 17px;
    font-weight: 850;
}

.rank-copy em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: #b45309;
    font-weight: 900;
}

.category-showcase {
    display: grid;
    gap: 36px;
}

.category-panel {
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 28px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.page-hero {
    min-height: 270px;
    margin: 28px 0 32px;
    display: flex;
    align-items: center;
    padding: 44px;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

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

.category-card {
    min-height: 360px;
    position: relative;
    display: flex;
    align-items: end;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.category-card-body {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: #ffffff;
}

.category-card-body span {
    color: #fdba74;
    font-weight: 900;
}

.category-card-body h2 {
    margin: 8px 0;
    font-size: 32px;
    font-weight: 900;
}

.category-card-body p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.category-sample {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.category-sample a {
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 13px;
}

.filter-bar {
    position: sticky;
    top: 84px;
    z-index: 20;
    margin: 0 0 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
    backdrop-filter: blur(12px);
}

.empty-state {
    display: none;
    margin: 32px 0 70px;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border: 1px dashed #fdba74;
    border-radius: 22px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 14px;
}

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

.watch-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: #000000;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-content: center;
    gap: 14px;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.32), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-radius: 50%;
    box-shadow: 0 20px 44px rgba(234, 88, 12, 0.34);
}

.player-start strong {
    font-size: 20px;
}

.watch-copy {
    padding: 34px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    border-radius: 30px;
    box-shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
}

.watch-copy h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.lead-text {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.8;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 28px;
    align-items: start;
}

.detail-poster {
    position: sticky;
    top: 98px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
    background: linear-gradient(135deg, #111827, #f97316);
}

.score-card {
    margin-top: 14px;
    padding: 16px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background: #fff7ed;
    border-radius: 18px;
}

.score-card strong {
    color: var(--orange);
    font-size: 30px;
    font-weight: 900;
}

.score-card span {
    color: var(--muted);
    font-weight: 700;
}

.detail-content {
    padding: 34px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.detail-content h2 {
    margin-top: 0;
    font-size: 28px;
}

.detail-content p {
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

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

.info-grid div {
    padding: 16px;
    background: #f9fafb;
    border-radius: 16px;
}

.info-grid dt {
    color: var(--muted);
    font-size: 13px;
}

.info-grid dd {
    margin: 6px 0 0;
    font-weight: 800;
}

.site-footer {
    margin-top: 70px;
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
    border-top: 1px solid var(--line);
}

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

.footer-inner p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin: 22px 0;
    font-weight: 700;
}

.copyright {
    font-size: 13px;
}

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

    .mobile-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .quick-search,
    .ranking-section,
    .watch-hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        position: static;
        max-width: 360px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 62px;
    }

    .brand-text em {
        display: none;
    }

    .hero {
        min-height: 620px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.86));
    }

    .hero-content {
        align-self: end;
        padding-bottom: 86px;
    }

    .quick-search {
        margin-top: 20px;
    }

    .search-entry,
    .filter-bar {
        flex-direction: column;
    }

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

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

    .page-hero,
    .watch-copy,
    .detail-content,
    .ranking-section {
        padding: 24px;
        border-radius: 24px;
    }

    .player-shell,
    .movie-player {
        min-height: 360px;
    }

    .ranking-item {
        grid-template-columns: 44px 52px 1fr;
    }

    .rank-score {
        display: none;
    }

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

@media (max-width: 520px) {
    .home-main,
    .page-main,
    .header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand-text strong {
        font-size: 17px;
    }

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

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

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