:root {
    --rose: #f43f5e;
    --rose-dark: #e11d48;
    --pink: #ec4899;
    --text: #111827;
    --muted: #6b7280;
    --soft: #fff1f2;
    --border: #e5e7eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body {
    background: #ffffff;
    color: var(--text);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-logo-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 10px 22px rgba(244, 63, 94, 0.3);
    font-size: 14px;
}

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

.nav-link,
.mobile-link {
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--rose);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f9fafb;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: #374151;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
}

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

.mobile-nav-inner {
    display: grid;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 18px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.07);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img,
.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05));
}

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

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.hero-eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
}

.hero-copy h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.03;
    font-weight: 900;
    margin-bottom: 18px;
}

.hero-copy p {
    max-width: 620px;
    font-size: 19px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.hero-tags,
.detail-tags,
.tag-row,
.keyword-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags a,
.keyword-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.tag-row span,
.keyword-chip {
    background: #f3f4f6;
    color: #4b5563;
}

.detail-tags a {
    background: rgba(255, 255, 255, 0.16);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.btn-hero,
.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-hero,
.btn-primary {
    background: linear-gradient(90deg, var(--rose), var(--pink));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.btn-ghost,
.btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
}

.btn-secondary {
    border: 1px solid var(--border);
}

.btn-hero:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

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

.search-band {
    transform: translateY(-34px);
    margin-bottom: -10px;
    position: relative;
    z-index: 4;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.search-box input,
.filter-panel input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 16px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.filter-panel input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.search-box button {
    min-width: 112px;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    color: #ffffff;
    font-weight: 800;
}

.keyword-row {
    margin-top: 16px;
    justify-content: center;
}

.section-space {
    padding-top: 56px;
    padding-bottom: 56px;
}

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

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff1f2;
    color: var(--rose);
    font-size: 22px;
}

.section-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 900;
}

.section-link {
    color: var(--rose);
    font-weight: 800;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 10px;
    border-radius: 24px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover,
.ranking-spotlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 36px;
}

.category-card strong {
    font-size: 20px;
}

.category-card small,
.category-overview-head p {
    color: var(--muted);
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--rose-dark);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f3f4f6;
}

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

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

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(244, 63, 94, 0.9);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: scale(1);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, var(--rose));
    font-size: 13px;
}

.movie-info {
    padding: 16px;
}

.movie-meta-row {
    display: flex;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 8px;
}

.movie-info h3 {
    min-height: 48px;
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
}

.movie-info h3 a:hover {
    color: var(--rose);
}

.movie-info p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 44px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 10px 0;
}

.genre-line {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 10px;
}

.rose-panel {
    border-radius: 32px;
    background: linear-gradient(180deg, #ffffff, #fff1f2);
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 92px 1fr;
    min-height: 138px;
}

.movie-card-compact .movie-poster {
    aspect-ratio: auto;
    height: 100%;
}

.movie-card-compact .movie-info h3 {
    min-height: auto;
}

.cta-panel {
    margin-top: 30px;
    margin-bottom: 70px;
    text-align: center;
    border-radius: 34px;
    padding: 62px 24px;
    background: radial-gradient(circle at top left, #fff1f2, #ffffff 42%, #fdf2f8);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.cta-panel h2 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 12px;
}

.cta-panel p {
    color: var(--muted);
}

.cta-actions {
    justify-content: center;
}

.page-hero {
    padding: 70px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 900;
    margin-top: 16px;
    margin-bottom: 16px;
}

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

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

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

.category-overview-list {
    display: grid;
    gap: 30px;
    padding-top: 56px;
    padding-bottom: 56px;
}

.category-overview-card {
    padding: 28px;
}

.category-overview-head h2 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 6px;
}

.category-overview-head a {
    flex-shrink: 0;
    color: var(--rose);
    font-weight: 800;
}

.filter-panel {
    position: sticky;
    top: 88px;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 30px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-buttons button {
    border-radius: 999px;
    padding: 10px 14px;
    color: #374151;
    background: #f3f4f6;
    font-weight: 700;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    color: #ffffff;
    background: var(--rose);
}

.ranking-hero {
    background: linear-gradient(135deg, #111827, #be123c 70%, #ec4899);
}

.ranking-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 34px;
}

.ranking-spotlight {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 28px;
    padding: 24px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.ranking-spotlight img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.4s ease;
}

.ranking-spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.ranking-spotlight:hover img {
    transform: scale(1.08);
}

.ranking-spotlight span,
.ranking-spotlight strong,
.ranking-spotlight em {
    position: relative;
    z-index: 2;
}

.ranking-spotlight span {
    width: fit-content;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--rose);
    font-size: 13px;
    font-weight: 900;
}

.ranking-spotlight strong {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.ranking-spotlight em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}

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

.detail-bg,
.detail-mask {
    position: absolute;
    inset: 0;
}

.detail-bg {
    filter: blur(2px) saturate(1.1);
    transform: scale(1.04);
}

.detail-mask {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.65), rgba(17, 24, 39, 0.2));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 54px;
    padding-bottom: 60px;
}

.breadcrumb.light {
    color: rgba(255, 255, 255, 0.76);
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
    margin-top: 36px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy {
    max-width: 780px;
    color: #ffffff;
}

.detail-copy h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 18px;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 700;
    font-size: 13px;
}

.detail-copy p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    padding-top: 54px;
    padding-bottom: 70px;
}

.detail-content {
    display: grid;
    gap: 30px;
}

.player-card,
.article-card,
.side-card,
.prev-next {
    border-radius: 26px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.player-card h2,
.article-card h2,
.side-card h2 {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    align-content: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
    transition: opacity 0.25s ease;
}

.player-shell.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.big-play {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.94);
    box-shadow: 0 16px 36px rgba(244, 63, 94, 0.35);
    font-size: 28px;
}

.player-cover strong {
    font-size: 18px;
}

.article-card p {
    color: #374151;
    line-height: 1.95;
    margin-bottom: 20px;
    font-size: 16px;
}

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

.prev-next a {
    border-radius: 16px;
    padding: 14px;
    color: #374151;
    background: #f9fafb;
    font-weight: 700;
}

.prev-next a:hover,
.side-link:hover {
    color: var(--rose);
}

.detail-side {
    display: grid;
    gap: 20px;
    align-content: start;
    position: sticky;
    top: 100px;
}

.side-card dl {
    display: grid;
    gap: 12px;
}

.side-card dt {
    color: #9ca3af;
    font-size: 13px;
}

.side-card dd {
    margin: -8px 0 8px;
    color: #111827;
    font-weight: 700;
    line-height: 1.5;
}

.side-link {
    display: block;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
}

.site-footer {
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
    border-top: 1px solid #eef2f7;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-top: 48px;
    padding-bottom: 36px;
}

.footer-copy,
.site-footer p {
    color: var(--muted);
    line-height: 1.8;
    margin-top: 16px;
}

.site-footer h3 {
    font-weight: 900;
    margin-bottom: 14px;
}

.site-footer a:not(.site-logo) {
    display: block;
    color: #4b5563;
    margin-bottom: 10px;
    transition: color 0.25s ease;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.tone-rose { background-image: linear-gradient(135deg, #fff1f2, #ffffff); }
.tone-amber { background-image: linear-gradient(135deg, #fffbeb, #ffffff); }
.tone-teal { background-image: linear-gradient(135deg, #f0fdfa, #ffffff); }
.tone-pink { background-image: linear-gradient(135deg, #fdf2f8, #ffffff); }
.tone-blue { background-image: linear-gradient(135deg, #eff6ff, #ffffff); }
.tone-slate { background-image: linear-gradient(135deg, #f8fafc, #ffffff); }
.tone-purple { background-image: linear-gradient(135deg, #faf5ff, #ffffff); }
.tone-green { background-image: linear-gradient(135deg, #f0fdf4, #ffffff); }
.tone-cyan { background-image: linear-gradient(135deg, #ecfeff, #ffffff); }
.tone-orange { background-image: linear-gradient(135deg, #fff7ed, #ffffff); }

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

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

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

    .menu-button {
        display: flex;
    }

    .hero-carousel {
        height: 520px;
    }

    .category-grid,
    .movie-grid.four-col,
    .movie-grid.six-col,
    .movie-grid.mini-grid,
    .ranking-spotlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel,
    .detail-main,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }

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

@media (max-width: 640px) {
    .header-inner {
        height: 66px;
    }

    .site-logo {
        font-size: 18px;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-copy h1,
    .detail-copy h1 {
        font-size: 38px;
    }

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

    .search-band {
        transform: translateY(0);
        margin-top: 18px;
        margin-bottom: 0;
    }

    .search-box,
    .prev-next {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .movie-grid.four-col,
    .movie-grid.six-col,
    .movie-grid.mini-grid,
    .ranking-grid,
    .ranking-list,
    .ranking-spotlight-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-compact {
        grid-template-columns: 108px 1fr;
    }

    .section-head,
    .category-overview-head,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .detail-hero-inner {
        padding-top: 38px;
    }

    .detail-layout {
        gap: 24px;
    }
}
