:root {
    color-scheme: light;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --purple: #8b5cf6;
    --ink: #111827;
    --muted: #6b7280;
    --line: #fee2e2;
    --soft: #fff7ed;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fff1f2 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.12);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
    font-size: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    color: #374151;
    font-weight: 700;
}

.nav-links a {
    position: relative;
    padding: 10px 0;
    transition: color 0.2s ease;
}

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

.nav-links a.active::after,
.nav-links a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--pink));
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 0;
    background: #fff7ed;
    color: var(--orange);
    font-size: 22px;
    cursor: pointer;
}

.hero-slider {
    position: relative;
    min-height: clamp(620px, 88vh, 780px);
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.52fr);
    align-items: center;
    gap: clamp(24px, 5vw, 76px);
    padding: clamp(100px, 11vw, 150px) max(32px, calc((100vw - 1180px) / 2)) 96px;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
    transform: scale(1.03);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 28%, rgba(236, 72, 153, 0.25), transparent 34%), radial-gradient(circle at 8% 20%, rgba(249, 115, 22, 0.28), transparent 32%);
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0;
    color: white;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero-content p:not(.eyebrow) {
    max-width: 700px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 1.8vw, 22px);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

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

.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 18px 35px rgba(249, 115, 22, 0.35);
}

.ghost-button {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    justify-self: end;
    width: min(380px, 100%);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-dots {
    position: absolute;
    z-index: 5;
    left: max(32px, calc((100vw - 1180px) / 2));
    bottom: 38px;
    display: flex;
    gap: 12px;
}

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

.hero-dots button.active {
    width: 78px;
    background: linear-gradient(90deg, var(--orange), var(--pink));
}

.search-panel,
.section-wrap,
.page-main,
.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
    align-items: center;
    gap: 24px;
    margin-top: -54px;
    position: relative;
    z-index: 10;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-content h2 {
    margin: 0;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.search-panel h2,
.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.search-box span {
    color: var(--orange-dark);
    font-weight: 900;
}

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

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

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

.section-heading a {
    color: var(--orange);
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
    background: var(--ink);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: white;
    font-size: 22px;
    font-weight: 950;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(249, 115, 22, 0.2);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-style: normal;
    font-weight: 950;
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.35);
}

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

.meta-line {
    margin: 0 0 8px;
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0;
    min-height: 48px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
}

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

.movie-desc {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
}

.wide-band {
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.86), rgba(252, 231, 243, 0.9));
}

.page-main {
    padding: 44px 0 76px;
}

.page-hero {
    margin-bottom: 34px;
    padding: clamp(32px, 5vw, 62px);
    border-radius: 34px;
    background: radial-gradient(circle at 88% 12%, rgba(236, 72, 153, 0.2), transparent 28%), linear-gradient(135deg, #ffffff, #fff7ed 52%, #fce7f3);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 60px);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

.page-search {
    max-width: 620px;
    margin-top: 24px;
    background: white;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 20px;
}

.category-cover-stack img {
    width: 100%;
    height: 116px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 950;
}

.category-overview-card p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.7;
}

.mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-list a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 26px 0;
    color: var(--muted);
    font-weight: 800;
}

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

.detail-main {
    padding-bottom: 80px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: center;
    padding: clamp(24px, 4vw, 48px);
    border-radius: 34px;
    background: linear-gradient(135deg, #111827, #7c2d12 58%, #831843);
    color: white;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
}

.detail-one-line {
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    font-weight: 850;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: white;
}

.player-section,
.detail-content,
.related-wrap {
    margin-top: 48px;
}

.player-section h2,
.detail-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 18px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.25);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(2, 6, 23, 0.38));
    cursor: pointer;
}

.player-cover span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-size: 30px;
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.36);
}

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

.detail-content {
    padding: clamp(24px, 4vw, 44px);
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow);
}

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

.site-footer {
    background: linear-gradient(135deg, #fff7ed, #fce7f3);
    border-top: 1px solid #fed7aa;
    padding: 54px 0 26px;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1fr;
    gap: 34px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    font-weight: 950;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: var(--orange-dark);
    font-weight: 850;
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid #fed7aa;
    text-align: center;
}

.movie-card.is-hidden {
    display: none;
}

@media (max-width: 1050px) {
    .movie-grid,
    .latest-grid,
    .all-movie-grid,
    .ranking-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .hero-poster {
        display: none;
    }
}

@media (max-width: 760px) {
    .site-nav {
        min-height: 64px;
    }

    .menu-button {
        display: grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        border-radius: 22px;
        background: white;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 8px;
    }

    .hero-slider {
        min-height: 680px;
    }

    .hero-slide {
        padding: 112px 22px 90px;
    }

    .hero-dots {
        left: 22px;
    }

    .search-panel {
        grid-template-columns: 1fr;
        margin-top: 18px;
        padding: 22px;
    }

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

    .category-grid,
    .movie-grid,
    .latest-grid,
    .all-movie-grid,
    .ranking-grid,
    .category-overview-grid,
    .footer-grid,
    .detail-hero {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 520px) {
    .site-logo {
        font-size: 22px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

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

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

    .movie-card h3 {
        min-height: 42px;
        font-size: 15px;
    }

    .movie-desc {
        display: none;
    }

    .page-hero,
    .detail-hero,
    .detail-content {
        border-radius: 22px;
    }
}
