
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #0f172a;
    color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(100% - 32px, 1280px);
    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-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #052e2b;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.28);
    font-size: 14px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.14);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.86);
    color: #ffffff;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.88) 30%, rgba(2, 6, 23, 0.42) 68%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-content::after {
    content: "";
    position: absolute;
    left: 8%;
    bottom: 8%;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    filter: blur(70px);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    max-width: 760px;
}

.hero-kicker,
.hero-copy h1 {
    margin: 0 0 12px;
    color: #34d399;
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.card-stats,
.poster-meta,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.meta-pill,
.score-pill,
.tag-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 700;
}

.meta-pill.muted,
.tag-link {
    background: rgba(148, 163, 184, 0.13);
    color: #cbd5e1;
}

.score-pill {
    background: rgba(250, 204, 21, 0.16);
    color: #facc15;
}

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

.primary-btn,
.ghost-btn,
.filter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: #10b981;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 18px 38px rgba(16, 185, 129, 0.26);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.filter-submit:hover {
    transform: translateY(-2px);
    background: #059669;
    box-shadow: 0 20px 42px rgba(16, 185, 129, 0.34);
}

.primary-btn.small {
    min-height: 40px;
    padding: 0 18px;
}

.ghost-btn {
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: none;
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.9);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.46);
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.04);
}

.hero-control.prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-control.next {
    right: 24px;
    transform: translateY(-50%);
}

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

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

.hero-dot.active {
    width: 34px;
    background: #10b981;
}

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

.page-shell {
    padding-top: 40px;
}

.main-shell > section,
.split-layout,
.category-showcase {
    margin-bottom: 72px;
}

.quick-search-card,
.page-hero,
.category-showcase,
.rank-panel,
.content-section,
.filter-panel,
.detail-head {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 28px;
    background: rgba(30, 41, 59, 0.38);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.24);
}

.quick-search-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
}

.quick-search-card h2,
.page-hero h1,
.section-heading h2,
.content-section h2 {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.quick-search-card h2,
.section-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.quick-search-card p,
.page-hero p,
.content-section p,
.category-card p,
.horizontal-info p {
    color: #94a3b8;
}

.quick-search-card p,
.page-hero p {
    margin: 8px 0 0;
}

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

.heading-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.heading-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.section-more {
    color: #34d399;
    font-weight: 800;
}

.poster-grid,
.large-grid,
.category-grid,
.category-chip-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.poster-card {
    display: block;
    min-width: 0;
}

.poster-frame,
.large-cover,
.horizontal-poster,
.detail-poster,
.player-shell {
    position: relative;
    overflow: hidden;
    background: #111827;
}

.poster-frame {
    aspect-ratio: 2 / 3;
    margin-bottom: 12px;
    border-radius: 16px;
}

.poster-frame img,
.large-cover img,
.horizontal-poster img,
.detail-poster img,
.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.poster-card:hover .poster-frame img,
.large-card:hover .large-cover img,
.horizontal-card:hover .horizontal-poster img {
    transform: scale(1.08);
}

.poster-frame::after,
.large-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 36%, rgba(2, 6, 23, 0.82) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-card:hover .poster-frame::after,
.large-card:hover .large-cover::after {
    opacity: 1;
}

.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #facc15;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.rating-badge.detail {
    top: 14px;
    right: 14px;
    font-size: 14px;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 44px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.38);
    transition: opacity 0.22s ease;
}

.play-overlay.large {
    font-size: 60px;
}

.poster-card:hover .play-overlay,
.large-card:hover .play-overlay,
.horizontal-card:hover .play-overlay {
    opacity: 1;
}

.poster-card h3 {
    margin: 0 0 6px;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.poster-card:hover h3 {
    color: #34d399;
}

.poster-meta,
.card-stats {
    color: #94a3b8;
    font-size: 13px;
}

.card-stats.bright {
    color: #ffffff;
}

.large-cover {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
}

.large-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 24px;
}

.large-copy h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.15;
}

.large-copy p {
    margin: 0 0 12px;
    color: #e2e8f0;
    font-size: 14px;
}

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

.category-chip,
.category-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(30, 41, 59, 0.42);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-chip {
    display: grid;
    min-height: 64px;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 800;
}

.category-chip:hover,
.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 211, 153, 0.42);
    background: rgba(16, 185, 129, 0.12);
}

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

.category-card {
    min-height: 220px;
    padding: 24px;
    border-radius: 24px;
}

.category-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-card-top span {
    color: #34d399;
    font-size: 24px;
}

.category-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.category-samples span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    font-size: 12px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.rank-list,
.rank-page-list {
    display: grid;
    gap: 16px;
}

.horizontal-card {
    display: flex;
    gap: 16px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.48);
    transition: background 0.2s ease, transform 0.2s ease;
}

.horizontal-card:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
}

.horizontal-poster {
    width: 156px;
    min-height: 96px;
    flex: 0 0 156px;
    border-radius: 16px 0 0 16px;
}

.horizontal-info {
    min-width: 0;
    padding: 14px 16px 14px 0;
}

.horizontal-info p {
    display: -webkit-box;
    margin: 6px 0 10px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.rank-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

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

.rank-number {
    min-width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 42px;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: 8%;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    filter: blur(70px);
}

.page-hero > div {
    position: relative;
    z-index: 2;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #34d399;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
}

.filter-title {
    color: #ffffff;
    font-weight: 900;
    align-self: center;
}

.filter-field {
    display: grid;
    gap: 6px;
    color: #94a3b8;
    font-size: 13px;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    outline: none;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    padding: 0 14px;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: rgba(52, 211, 153, 0.68);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.movie-card[hidden] {
    display: none;
}

.detail-page {
    max-width: 1180px;
}

.detail-head {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 22px;
}

.detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-copy h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: 18px;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-tags {
    align-items: flex-start;
}

.player-section {
    margin-bottom: 40px;
}

.player-shell {
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.72));
}

.play-trigger {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    font-size: 34px;
    transform: translate(-50%, -50%);
    box-shadow: 0 24px 60px rgba(16, 185, 129, 0.38);
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-trigger:hover {
    background: #059669;
    transform: translate(-50%, -50%) scale(1.06);
}

.content-section {
    padding: 28px;
}

.content-section h2 {
    margin-bottom: 14px;
    font-size: 28px;
}

.content-section p {
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.9;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.52);
}

.footer-shell {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #94a3b8;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.footer-shell p {
    margin: 0;
}

@media (max-width: 1180px) {
    .six-grid,
    .compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .split-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    }

    .site-nav.open {
        display: flex;
    }

    .nav-link {
        border-radius: 14px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.94));
    }

    .hero-control {
        display: none;
    }

    .hero-copy {
        align-self: flex-end;
        padding-bottom: 70px;
    }

    .quick-search-card,
    .footer-shell,
    .detail-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .quick-search-card {
        display: grid;
    }

    .six-grid,
    .compact-grid,
    .four-grid,
    .large-grid,
    .category-chip-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

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

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

    .detail-head {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .player-shell {
        border-radius: 20px;
    }

    .horizontal-poster {
        width: 124px;
        flex-basis: 124px;
    }

    .footer-shell {
        display: grid;
    }
}

@media (max-width: 460px) {
    .six-grid,
    .compact-grid,
    .four-grid,
    .large-grid,
    .category-chip-grid,
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .poster-card h3 {
        font-size: 14px;
    }

    .horizontal-card {
        gap: 12px;
    }

    .horizontal-poster {
        width: 108px;
        flex-basis: 108px;
    }

    .large-copy {
        padding: 18px;
    }

    .large-copy h3 {
        font-size: 20px;
    }
}
