:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --black: #111827;
    --gray: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: var(--soft);
}

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

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

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

.nav-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.logo-icon,
.footer-logo span {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), #ef4444);
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
    color: #374151;
}

.desktop-nav > a,
.nav-dropdown > a {
    padding: 10px 13px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .is-current {
    color: var(--red);
    background: #fef2f2;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 330px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.dropdown-panel a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #4b5563;
    font-size: 14px;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    width: 280px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.top-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    font-size: 14px;
}

.top-search button,
.primary-btn,
.secondary-btn,
.search-panel button {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: var(--red);
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button {
    align-self: stretch;
    padding: 0 18px;
}

.top-search button:hover,
.primary-btn:hover,
.search-panel button:hover {
    background: var(--red-dark);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

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

.mobile-nav > a,
.mobile-category-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 650;
}

.mobile-nav a:hover {
    background: #fef2f2;
    color: var(--red);
}

.mobile-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

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

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg,
.hero-bg img,
.hero-bg::after {
    position: absolute;
    inset: 0;
}

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

.hero-bg::after {
    content: "";
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.20) 100%), linear-gradient(0deg, rgba(17, 24, 39, 1) 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding: 80px 0 92px;
    color: #fff;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fecaca;
    background: rgba(220, 38, 38, 0.22);
    border: 1px solid rgba(248, 113, 113, 0.35);
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.hero h2 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero p {
    max-width: 620px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.75;
}

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

.hero-meta span,
.detail-meta span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 14px;
    font-size: 16px;
}

.secondary-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-dots button {
    width: 46px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #fff;
}

.section {
    padding: 58px 0;
}

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

.section-title {
    margin: 0 0 8px;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-desc {
    margin: 0;
    color: var(--gray);
    line-height: 1.8;
}

.more-link {
    flex: 0 0 auto;
    color: var(--red);
    font-weight: 800;
}

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

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, #111827, #374151);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.13);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-year {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.poster-play {
    position: absolute;
    inset: auto auto 14px 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--red);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.35);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.movie-card:hover .poster-wrap img,
.wide-card:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.movie-card:hover .poster-shade,
.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.movie-card strong {
    display: -webkit-box;
    margin: 12px 0 4px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.movie-card small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 26px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #991b1b, #111827);
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    right: -12px;
    bottom: -30px;
    width: 45%;
    max-width: 180px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    opacity: 0.45;
    transform: rotate(7deg);
    transition: transform 0.3s ease;
}

.category-card strong,
.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    max-width: 78%;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 26px;
}

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

.wide-card {
    display: grid;
    grid-template-columns: auto 82px 1fr;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.wide-card:last-child {
    border-bottom: 0;
}

.rank-no {
    width: 42px;
    font-size: 22px;
    font-weight: 900;
    color: var(--red);
}

.wide-thumb {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: #111827;
}

.wide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wide-info strong,
.wide-info em,
.wide-info span {
    display: block;
}

.wide-info strong {
    margin-bottom: 6px;
    color: #111827;
    font-size: 17px;
    font-weight: 850;
}

.wide-info em {
    margin-bottom: 8px;
    color: var(--red);
    font-size: 13px;
    font-style: normal;
    font-weight: 750;
}

.wide-info span {
    color: var(--gray);
    line-height: 1.55;
    font-size: 14px;
}

.page-hero {
    padding: 64px 0;
    color: #fff;
    background: linear-gradient(135deg, #111827, #991b1b);
}

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

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

.search-panel {
    display: flex;
    gap: 10px;
    max-width: 760px;
    margin-top: 28px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
}

.search-panel input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px 16px;
    color: #111827;
    font-size: 16px;
}

.search-panel button {
    min-width: 108px;
    border-radius: 14px;
}

.search-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.filter-btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 10px 16px;
    color: #374151;
    cursor: pointer;
    font-weight: 750;
}

.filter-btn.is-active {
    border-color: var(--red);
    color: #fff;
    background: var(--red);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: blur(6px);
    transform: scale(1.06);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.62)), linear-gradient(0deg, rgba(17, 24, 39, 1), transparent 55%);
}

.detail-head {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    padding: 56px 0;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    background: #111827;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-copy p {
    max-width: 820px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.9;
}

.detail-meta span {
    background: rgba(255, 255, 255, 0.12);
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    padding: 44px 0 72px;
}

.player-box {
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.18), rgba(0, 0, 0, 0.72));
    cursor: pointer;
}

.play-overlay.is-hidden {
    display: none;
}

.play-overlay span {
    display: inline-flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--red);
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(220, 38, 38, 0.45);
}

.content-card {
    margin-top: 24px;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.content-card h2,
.side-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 900;
    color: #111827;
}

.content-card p {
    margin: 0 0 18px;
    color: #4b5563;
    line-height: 1.95;
    font-size: 16px;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.card-tags span {
    color: #4b5563;
    background: #f3f4f6;
}

.side-card {
    margin-bottom: 24px;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

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

.side-list .wide-card {
    grid-template-columns: 64px 1fr;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.side-list .rank-no {
    display: none;
}

.side-list .wide-info span {
    display: none;
}

.side-list .wide-thumb {
    width: 64px;
}

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

.search-list .movie-card.is-hidden,
.filter-target.is-hidden {
    display: none;
}

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

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

    .rank-layout,
    .detail-main {
        grid-template-columns: 1fr;
    }

    .top-search {
        display: none;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-container {
        height: 64px;
    }

    .logo {
        font-size: 20px;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding: 70px 0 82px;
    }

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

    .section-head {
        display: block;
    }

    .section-head .more-link {
        display: inline-block;
        margin-top: 12px;
    }

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

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

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

    .detail-poster {
        width: min(260px, 72vw);
    }

    .wide-card {
        grid-template-columns: auto 74px 1fr;
        gap: 12px;
    }

    .wide-info span {
        display: none;
    }

    .search-panel {
        display: block;
    }

    .search-panel input,
    .search-panel button {
        width: 100%;
        min-height: 48px;
    }

    .search-panel button {
        margin-top: 8px;
    }
}

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

    .movie-grid,
    .alpha-list {
        gap: 14px;
    }

    .poster-wrap {
        border-radius: 13px;
    }

    .movie-card strong {
        font-size: 14px;
    }

    .page-hero {
        padding: 46px 0;
    }

    .content-card,
    .side-card {
        padding: 20px;
        border-radius: 18px;
    }
}
