:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-soft: #e0f2fe;
    --accent: #f97316;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --page: #f9fafb;
    --dark: #111827;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
    --shadow-xl: 0 24px 50px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--page);
    line-height: 1.6;
}

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;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    position: relative;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.25);
}

.brand-mark::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 9px;
    border-left: 11px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-search {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: #374151;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 10px 18px 16px;
}

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

.mobile-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
    font-weight: 600;
}

.mobile-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

main {
    min-height: 60vh;
}

.hero-section,
.content-section,
.detail-wrap,
.page-hero,
.search-strip {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.hero-section {
    padding-top: 32px;
}

.hero-shell {
    position: relative;
    height: 68vh;
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    background: #111827;
}

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

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

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

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 72px);
    bottom: clamp(36px, 8vw, 80px);
    max-width: 720px;
    color: #fff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.section-kicker {
    margin-bottom: 8px;
}

.hero-content h1 {
    margin: 14px 0 4px;
    font-size: clamp(36px, 7vw, 66px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero-content h2 {
    margin: 10px 0 12px;
    font-size: clamp(32px, 6vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 640px;
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: clamp(16px, 2vw, 20px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-soft {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(17, 24, 39, 0.35);
    backdrop-filter: blur(6px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.50);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    right: 28px;
    bottom: 26px;
    display: flex;
    gap: 8px;
}

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

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

.search-strip {
    margin-top: 24px;
}

.search-form,
.filter-bar {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.search-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
    background: #fff;
}

.search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.search-form button {
    min-width: 96px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.content-section {
    margin-top: 62px;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.03em;
}

.section-head a {
    color: var(--primary);
    font-weight: 800;
}

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

.movie-card {
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e5e7eb;
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 55%);
    transition: opacity 0.25s ease;
}

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

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

.score-badge,
.cat-badge {
    position: absolute;
    z-index: 2;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.score-badge {
    right: 10px;
    top: 10px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #facc15;
    backdrop-filter: blur(4px);
}

.cat-badge {
    left: 10px;
    bottom: 10px;
    padding: 3px 8px;
    background: var(--primary);
    color: #fff;
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    min-height: 48px;
    margin: 0 0 8px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    line-height: 1.45;
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.compact-card .card-body p {
    display: none;
}

.new-section {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f0f9ff, #f0fdf4);
}

.feature-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    background: #111827;
}

.feature-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-banner:hover img {
    transform: scale(1.04);
}

.feature-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.58), transparent);
}

.feature-content {
    position: absolute;
    left: clamp(28px, 6vw, 80px);
    top: 50%;
    transform: translateY(-50%);
    max-width: 650px;
    color: #fff;
}

.feature-content span {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--accent);
    font-weight: 800;
    font-size: 13px;
}

.feature-content h2 {
    margin: 16px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.feature-content p {
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 18px;
}

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

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

.category-card {
    display: block;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: #e5e7eb;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

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

.rank-preview {
    padding-bottom: 20px;
}

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

.rank-row,
.rank-list-row {
    display: grid;
    grid-template-columns: auto 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rank-row:hover,
.rank-list-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rank-num,
.rank-list-num {
    min-width: 34px;
    color: var(--primary);
    font-weight: 900;
    font-size: 20px;
}

.rank-row img,
.rank-list-row img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-title,
.rank-list-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

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

.page-hero {
    margin-top: 32px;
    padding: 44px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0f172a, #0c4a6e 55%, #0369a1);
    color: #fff;
    box-shadow: var(--shadow-xl);
}

.page-hero h1 {
    margin: 12px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.in-page {
    margin-top: 22px;
}

.filter-bar {
    margin-bottom: 24px;
}

.filter-bar select {
    max-width: 180px;
}

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

.rank-list-row {
    grid-template-columns: 56px 70px minmax(0, 1.5fr) minmax(0, 1fr) auto;
}

.rank-list-row img {
    width: 70px;
    height: 86px;
}

.rank-list-meta {
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail-wrap {
    margin-top: 30px;
}

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

.breadcrumb a {
    color: var(--primary);
    font-weight: 700;
}

.detail-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-md);
}

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

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.55));
    cursor: pointer;
}

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

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 18px 40px rgba(2, 132, 199, 0.35);
    font-size: 30px;
    text-indent: 5px;
}

.play-text {
    font-size: 18px;
    font-weight: 900;
}

.player-state {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.54);
    font-size: 13px;
}

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

.detail-content {
    padding: clamp(24px, 4vw, 42px);
}

.detail-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.detail-head h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
}

.detail-meta span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3f4f6;
}

.pill-link {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 800;
}

.text-block {
    margin-top: 26px;
}

.text-block h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.text-block p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span {
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 700;
}

.related-section {
    margin-top: 44px;
}

.site-footer {
    margin-top: 80px;
    background: #111827;
    color: #d1d5db;
}

.footer-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 38px;
}

.footer-main p {
    max-width: 520px;
    color: #9ca3af;
}

.footer-brand {
    margin-bottom: 14px;
    color: #fff;
    font-size: 20px;
}

.footer-mark {
    box-shadow: none;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 16px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: #d1d5db;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #38bdf8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #9ca3af;
    padding: 18px;
    font-size: 14px;
}

.is-filtered-out {
    display: none !important;
}

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

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

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

    .mobile-toggle {
        display: flex;
    }

    .hero-shell {
        height: 62vh;
        min-height: 460px;
    }

    .hero-arrow {
        display: none;
    }

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

    .category-grid,
    .category-grid.wide,
    .rank-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .rank-list-meta {
        display: none;
    }

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

    .detail-head {
        display: block;
    }

    .pill-link {
        display: inline-flex;
        margin-top: 14px;
    }
}

@media (max-width: 560px) {
    .nav-wrap,
    .hero-section,
    .content-section,
    .detail-wrap,
    .page-hero,
    .search-strip,
    .footer-wrap {
        width: min(100% - 24px, 1180px);
    }

    .hero-section {
        padding-top: 18px;
    }

    .hero-shell {
        min-height: 430px;
        border-radius: 18px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 34px;
    }

    .hero-dots {
        left: 20px;
        right: auto;
        bottom: 18px;
    }

    .hero-actions,
    .filter-bar,
    .search-form {
        flex-direction: column;
    }

    .filter-bar select {
        max-width: none;
    }

    .content-section {
        margin-top: 42px;
    }

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

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

    .category-grid,
    .category-grid.wide,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 15px;
        min-height: 44px;
    }

    .new-section,
    .page-hero {
        padding: 22px;
        border-radius: 18px;
    }

    .feature-banner {
        height: 430px;
        border-radius: 18px;
    }

    .feature-content {
        left: 22px;
        right: 22px;
    }

    .detail-content {
        padding: 22px;
    }

    .play-circle {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
}
