:root {
    --site-orange: #f97316;
    --site-orange-dark: #ea580c;
    --site-cyan: #06b6d4;
    --site-text: #1f2937;
    --site-muted: #64748b;
    --site-line: rgba(148, 163, 184, 0.28);
    --site-card: rgba(255, 255, 255, 0.92);
    --site-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    color: var(--site-text);
    background:
        radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.16), transparent 30%),
        radial-gradient(circle at 85% 8%, rgba(6, 182, 212, 0.18), transparent 28%),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #ecfeff 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

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

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

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-orange), var(--site-cyan));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--site-orange), var(--site-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
}

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

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-search input,
.filter-input,
.filter-select {
    border: 0;
    outline: 0;
    background: transparent;
    color: #374151;
}

.header-search input {
    width: 230px;
    padding: 8px 10px 8px 14px;
}

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

.header-search button,
.primary-button,
.filter-button.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--site-orange), var(--site-orange-dark));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.26);
}

.header-search button {
    padding: 8px 16px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
}

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

.secondary-button {
    color: #111827;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    font-weight: 700;
}

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

.hero {
    position: relative;
    min-height: 620px;
    margin: 0 calc((100vw - min(1280px, calc(100vw - 32px))) / -2) 56px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.hero-track,
.hero-slide,
.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-backdrop {
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62) 46%, rgba(15, 23, 42, 0.18)),
        radial-gradient(circle at 72% 34%, rgba(249, 115, 22, 0.26), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(6, 182, 212, 0.22), transparent 24%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    gap: 56px;
    align-items: center;
    padding: 72px 0;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--site-orange);
    background: rgba(255, 255, 255, 0.9);
}

.hero h1 {
    max-width: 760px;
    margin-top: 20px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.hero p {
    max-width: 720px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.78;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

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

.hero-poster {
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.72), rgba(6, 182, 212, 0.64));
}

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

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    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);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 36px;
    background: var(--site-orange);
}

.section-block {
    margin-top: 56px;
}

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

.section-title {
    margin-top: 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: #111827;
}

.section-subtitle {
    margin-top: 10px;
    max-width: 760px;
    color: var(--site-muted);
    line-height: 1.75;
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--site-card);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
    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.16);
}

.poster-shell {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.36), transparent 28%),
        linear-gradient(135deg, rgba(249, 115, 22, 0.72), rgba(6, 182, 212, 0.66));
}

.poster-shell::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.76));
}

.poster-shell img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.42s ease, opacity 0.2s ease;
}

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

.image-fallback {
    opacity: 0;
}

.card-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--site-orange), var(--site-orange-dark));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.3);
}

.rank-badge {
    left: 12px;
    right: auto;
    background: rgba(15, 23, 42, 0.82);
}

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

.movie-body h3 {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-body p {
    margin-top: 10px;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.movie-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f8fafc;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-radius: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: auto -30px -42px auto;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(6, 182, 212, 0.22));
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--site-shadow);
}

.category-card h3 {
    position: relative;
    font-size: 22px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    margin-top: 10px;
    color: var(--site-muted);
    line-height: 1.65;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--site-orange), var(--site-cyan));
}

.rank-thumb {
    width: 88px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.72), rgba(6, 182, 212, 0.66));
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-title {
    font-size: 20px;
    font-weight: 950;
}

.rank-desc {
    margin-top: 6px;
    color: var(--site-muted);
    line-height: 1.65;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 220px 220px auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.filter-input,
.filter-select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f8fafc;
}

.filter-button {
    min-height: 46px;
    padding: 0 22px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.empty-state {
    display: none;
    padding: 56px 20px;
    text-align: center;
    color: var(--site-muted);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 28px;
    align-items: start;
}

.detail-main,
.detail-side,
.info-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--site-shadow);
}

.detail-main {
    overflow: hidden;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    background: #020617;
}

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

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.64;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.18)),
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.36), transparent 24%);
}

.play-core {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-orange), var(--site-orange-dark));
    box-shadow: 0 24px 60px rgba(249, 115, 22, 0.36);
    font-size: 34px;
}

.play-title {
    font-size: 20px;
    font-weight: 950;
}

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.detail-desc {
    margin-top: 18px;
    color: #475569;
    font-size: 17px;
    line-height: 1.85;
}

.meta-row {
    margin-top: 18px;
}

.meta-pill {
    padding: 8px 12px;
    color: #475569;
    background: #f8fafc;
}

.detail-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--site-line);
}

.detail-section h2 {
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 950;
}

.detail-section p {
    color: #475569;
    line-height: 1.9;
}

.tag-row span {
    padding: 8px 12px;
    color: #475569;
    background: linear-gradient(90deg, #ffedd5, #cffafe);
}

.detail-side {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.detail-side h2 {
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 950;
}

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

.related-item {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
    background: linear-gradient(90deg, #fff7ed, #ecfeff);
    transform: translateX(4px);
}

.related-thumb {
    width: 94px;
    height: 70px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.72), rgba(6, 182, 212, 0.66));
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-title {
    font-weight: 900;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: #111827;
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 32px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.footer-inner p {
    color: #94a3b8;
    line-height: 1.75;
}

.footer-inner h3 {
    margin-bottom: 14px;
    color: #ffffff;
    font-weight: 900;
}

.footer-inner ul {
    display: grid;
    gap: 10px;
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

    .detail-side {
        position: static;
    }

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

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .brand-text {
        font-size: 20px;
    }

    .page-main {
        padding-top: 20px;
    }

    .hero {
        min-height: 560px;
        margin-bottom: 36px;
    }

    .hero-inner {
        padding: 48px 0 84px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-head {
        display: block;
    }

    .section-head .primary-button,
    .section-head .secondary-button {
        margin-top: 18px;
    }

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

    .movie-body {
        padding: 14px;
    }

    .movie-body h3 {
        font-size: 16px;
    }

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

    .rank-item .primary-button {
        grid-column: 1 / -1;
    }

    .rank-thumb {
        width: 72px;
        height: 96px;
    }

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

    .detail-content {
        padding: 20px;
    }

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

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