:root {
    --orange: #f97316;
    --orange-deep: #ea580c;
    --cyan: #06b6d4;
    --cyan-deep: #0891b2;
    --dark: #111827;
    --gray: #4b5563;
    --light: #fff7ed;
    --line: rgba(15, 23, 42, 0.10);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 32rem),
        radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.16), transparent 28rem),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 42%, #ecfeff 100%);
}

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

img,
video {
    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.94);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 900;
}

.brand__icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.brand__text,
.gradient-text {
    background: linear-gradient(90deg, var(--orange), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand__text {
    font-size: clamp(20px, 2vw, 28px);
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    overflow: hidden;
}

.desktop-nav a {
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--orange);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.header-search input {
    width: 210px;
    height: 40px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 999px;
    outline: none;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.header-search button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--orange-deep));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.header-search button {
    height: 40px;
    padding: 0 18px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    gap: 8px;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.10);
    color: var(--orange-deep);
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.08);
    color: #374151;
    font-weight: 700;
}

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

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

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

.hero-slide__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.12) 100%),
        radial-gradient(circle at 22% 38%, rgba(249, 115, 22, 0.30), transparent 24rem);
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(700px, 92vw);
    color: #ffffff;
    padding-top: 32px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 28px;
}

.hero-meta span,
.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

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

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

.hero-dots button.is-active {
    width: 34px;
    background: var(--orange);
}

.section {
    padding: 72px 0 0;
}

.section--tight {
    padding-top: 42px;
}

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

.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.section-head p,
.page-title p {
    margin: 10px 0 0;
    color: var(--gray);
    line-height: 1.8;
}

.section-link {
    color: var(--orange-deep);
    font-weight: 900;
    white-space: nowrap;
}

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

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.72);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.movie-card__poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #f97316, #06b6d4);
}

.movie-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .movie-card__poster img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.02);
}

.movie-card__poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12), transparent);
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card__poster::after {
    opacity: 1;
}

.movie-card__year,
.movie-card__play {
    position: absolute;
    z-index: 2;
}

.movie-card__year {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

.movie-card__play {
    left: 50%;
    top: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.movie-card:hover .movie-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-card__category {
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--orange-deep);
    font-size: 13px;
    font-weight: 900;
}

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

.movie-card__line {
    display: -webkit-box;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card__meta {
    margin-top: auto;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.movie-card--compact .movie-card__body {
    padding: 14px;
}

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

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

.category-tile {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    padding: 22px;
    color: #ffffff;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(6, 182, 212, 0.90));
    box-shadow: var(--shadow);
}

.category-tile::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -45px;
    top: -45px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-tile h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-tile p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.category-tile span {
    position: absolute;
    left: 22px;
    bottom: 18px;
    font-weight: 900;
}

.rank-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 26px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.rank-item__num {
    color: var(--orange);
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.rank-item img {
    width: 72px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-item__content {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.rank-item__content strong {
    overflow: hidden;
    color: #111827;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item__content em {
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item__score {
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    font-weight: 900;
}

.page-hero {
    padding: 68px 0 42px;
    background:
        radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.17), transparent 24rem),
        radial-gradient(circle at 84% 0%, rgba(6, 182, 212, 0.16), transparent 26rem);
}

.page-title {
    max-width: 820px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--orange-deep);
    font-weight: 800;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin: 28px 0;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.09);
}

.filter-bar input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    outline: none;
    padding: 0 18px;
    font-size: 16px;
}

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

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

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

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

.player-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    border: 0;
    border-radius: 999px;
    padding: 0 28px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--orange-deep));
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.45);
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    transform: translate(-50%, -50%);
}

.player-overlay.is-hidden {
    display: none;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 14px;
    z-index: 5;
    margin: 0;
    padding: 7px 11px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.42);
    font-size: 13px;
}

.detail-card,
.side-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 26px;
}

.detail-card p {
    color: #374151;
    line-height: 1.9;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
}

.detail-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #374151;
    background: rgba(249, 115, 22, 0.10);
    font-weight: 800;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.side-card {
    padding: 20px;
}

.side-poster {
    width: 100%;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
}

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

.search-results {
    min-height: 220px;
}

.search-empty {
    padding: 26px;
    border-radius: 22px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.9);
}

.site-footer {
    margin-top: 86px;
    padding: 48px 0;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827 0%, #1f2937 52%, #0f172a 100%);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 30px;
}

.footer-brand {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.site-footer p {
    margin: 0;
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--orange);
}

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

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

    .menu-toggle {
        display: block;
    }

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

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

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

    .side-card {
        display: none;
    }
}

@media (max-width: 720px) {
    .site-header__inner {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .header-search {
        order: 3;
        width: 100%;
    }

    .header-search input {
        flex: 1;
        width: 100%;
    }

    .hero {
        height: 640px;
    }

    .hero-copy {
        padding-top: 76px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .rank-item {
        grid-template-columns: 42px 58px minmax(0, 1fr);
    }

    .rank-item__score {
        display: none;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 460px) {
    .movie-grid,
    .movie-grid--dense,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card {
        display: grid;
        grid-template-columns: 112px 1fr;
        border-radius: 20px;
    }

    .movie-card__poster {
        aspect-ratio: 3 / 4;
    }

    .movie-card__body {
        padding: 14px;
    }

    .movie-card__line {
        -webkit-line-clamp: 3;
    }
}
