:root {
    --bg: #fff7ed;
    --panel: #ffffff;
    --panel-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(148, 93, 28, 0.16);
    --brand: #d97706;
    --brand-dark: #b45309;
    --orange: #ea580c;
    --gold: #f59e0b;
    --red: #dc2626;
    --shadow: 0 18px 55px rgba(146, 64, 14, 0.15);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 40%, #fff1f2 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.96), rgba(234, 88, 12, 0.96));
    color: #fff;
    box-shadow: 0 12px 30px rgba(180, 83, 9, 0.28);
    backdrop-filter: blur(16px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 12px 24px rgba(0, 0, 0, 0.16);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 700;
}

.main-nav a {
    opacity: 0.94;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover {
    color: #fff7d6;
    opacity: 1;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 99px;
    background: currentColor;
    content: "";
}

.mobile-toggle span::before {
    transform: translateY(-7px);
}

.mobile-toggle span::after {
    transform: translateY(5px);
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-panel a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    color: #fff;
    background: linear-gradient(135deg, #92400e, #ea580c 48%, #dc2626);
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    inset: auto;
    border-radius: 999px;
    filter: blur(16px);
    opacity: 0.58;
    pointer-events: none;
}

.hero::before {
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: rgba(255, 255, 255, 0.18);
}

.hero::after {
    left: -160px;
    bottom: -180px;
    width: 460px;
    height: 460px;
    background: rgba(251, 191, 36, 0.28);
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 650px;
    padding: 88px 0 96px;
}

.hero-slide.is-active {
    display: block;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.26;
    transform: scale(1.04);
}

.hero-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.22), transparent 34%),
        linear-gradient(90deg, rgba(124, 45, 18, 0.92), rgba(194, 65, 12, 0.72), rgba(127, 29, 29, 0.9));
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.07fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 52px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff7d6;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.hero h1 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(38px, 6.4vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-lead {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.hero-actions,
.section-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

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

.btn-primary {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    background: #fffbeb;
}

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

.btn-warm {
    background: linear-gradient(90deg, var(--gold), var(--orange));
    color: #fff;
    box-shadow: 0 16px 30px rgba(234, 88, 12, 0.22);
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(180px, 360px) auto;
    gap: 10px;
    max-width: 520px;
    margin-top: 26px;
}

.hero-search input,
.search-input,
.filter-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(180, 83, 9, 0.14);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    outline: none;
    padding: 0 18px;
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

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

.hero-poster-card:hover img {
    transform: scale(1.05);
}

.hero-poster-info {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.66);
    backdrop-filter: blur(12px);
}

.hero-poster-info strong {
    display: block;
    margin-bottom: 6px;
    font-size: 21px;
}

.hero-poster-info span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    bottom: 34px;
    left: 50%;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

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

.hero-dot.is-active {
    width: 34px;
    background: #fff;
}

.page-hero {
    padding: 72px 0;
    color: #fff;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 24%),
        linear-gradient(105deg, #d97706, #ea580c 56%, #dc2626);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.section {
    padding: 68px 0;
}

.section-soft {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.72), rgba(254, 243, 199, 0.68));
}

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

.section-title {
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-subtitle {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
}

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

.category-tile {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    border-color: rgba(217, 119, 6, 0.36);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.category-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    font-size: 26px;
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 12px 34px rgba(146, 64, 14, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    border-color: rgba(217, 119, 6, 0.35);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.movie-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.badge,
.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.badge {
    padding: 5px 10px;
    background: #fff7ed;
    color: #9a3412;
}

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    backdrop-filter: blur(8px);
}

.movie-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.movie-title {
    margin: 0 0 9px;
    color: #111827;
    font-size: 18px;
    line-height: 1.32;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 26px;
}

.feature-card {
    display: grid;
    grid-template-columns: 44% 1fr;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.feature-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.feature-content {
    padding: 30px;
}

.feature-content h3 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.15;
}

.feature-content p {
    color: var(--muted);
}

.horizontal-list {
    display: grid;
    gap: 16px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.1);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.horizontal-card img {
    width: 100%;
    height: 132px;
    object-fit: cover;
}

.horizontal-card-content {
    padding: 16px;
}

.horizontal-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.horizontal-card p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-panel {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.rank-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 8px;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px 84px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 20px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #fff7ed;
    transform: translateX(4px);
}

.rank-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 18px;
    font-weight: 900;
}

.rank-item:nth-child(1) .rank-number {
    background: #facc15;
    color: #fff;
}

.rank-item:nth-child(2) .rank-number {
    background: #d1d5db;
    color: #fff;
}

.rank-item:nth-child(3) .rank-number {
    background: #fb923c;
    color: #fff;
}

.rank-thumb {
    width: 84px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-title {
    margin: 0 0 4px;
    font-weight: 900;
}

.rank-desc {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
    margin: 28px 0 30px;
    padding: 18px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 34px rgba(146, 64, 14, 0.08);
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 24px;
    background: #fff;
    color: var(--muted);
    text-align: center;
    box-shadow: 0 12px 34px rgba(146, 64, 14, 0.08);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 42px 0 68px;
}

.player-panel,
.info-panel,
.side-panel {
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.player-panel {
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111827;
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.54));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-dark);
    font-size: 34px;
    cursor: pointer;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
    background: #fff;
    transform: scale(1.06);
}

.info-panel {
    margin-top: 22px;
    padding: 26px;
}

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

.breadcrumb a {
    color: var(--brand-dark);
    font-weight: 800;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.detail-section {
    margin-top: 26px;
}

.detail-section h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.detail-section p {
    margin: 0;
    color: #4b5563;
}

.side-panel {
    overflow: hidden;
    align-self: start;
}

.side-poster {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.side-content {
    padding: 22px;
}

.side-content h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.site-footer {
    padding: 42px 0;
    background: #111827;
    color: #d1d5db;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 28px;
}

.footer-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

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

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

.copyright {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .hero-grid,
    .feature-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

    .hero-poster-card img {
        height: 360px;
    }
}

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

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

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

    .hero,
    .hero-slide {
        min-height: auto;
    }

    .hero-slide {
        padding: 58px 0 86px;
    }

    .hero-grid {
        gap: 28px;
    }

    .hero-search,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .hero-poster-card img {
        height: 300px;
    }

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

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

    .feature-card,
    .horizontal-card,
    .rank-item {
        grid-template-columns: 1fr;
    }

    .feature-card img,
    .horizontal-card img,
    .rank-thumb {
        width: 100%;
        height: 220px;
    }

    .rank-score {
        justify-self: start;
    }

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

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

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

    .hero h1 {
        font-size: 36px;
    }

    .movie-cover {
        aspect-ratio: 16 / 9;
    }
}
