:root {
    --rose: #f43f5e;
    --pink: #db2777;
    --purple: #a855f7;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --green: #16a34a;
    --dark: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff1f2;
    --shell: 1180px;
}

body {
    color: #1f2937;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 40%, #eff6ff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    background: #f3f4f6;
}

.site-shell {
    width: min(var(--shell), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    color: var(--rose);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
    font-size: 14px;
}

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

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

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    min-height: 42px;
    padding: 0 16px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(254, 205, 211, 0.65);
}

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    min-height: 42px;
    padding: 0 18px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.menu-button {
    display: none;
    border: 0;
    font-size: 26px;
    color: var(--rose);
    background: transparent;
}

.mobile-panel {
    display: none;
    width: min(var(--shell), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(244, 63, 94, 0.62) 48%, rgba(168, 85, 247, 0.38) 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0 110px;
    color: #fff;
    text-align: center;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.hero-copy h1 {
    margin: 24px 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 760px;
    margin: 0 auto 34px;
    color: #ffe4e6;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.7;
}

.hero-actions,
.detail-copy .btn-primary {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-ghost,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary:hover,
.btn-ghost:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-dot {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: transparent;
}

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

.editor-panel {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
    margin-top: -58px;
    margin-bottom: 70px;
    padding: 34px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}

.editor-copy h2 {
    margin: 18px 0 14px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: #111827;
}

.editor-copy p {
    margin-bottom: 24px;
    color: #4b5563;
    line-height: 1.8;
}

.editor-cover {
    display: block;
    overflow: hidden;
    height: 360px;
    border-radius: 20px;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
}

.editor-cover img,
.poster-link img,
.large-poster img,
.horizontal-cover img,
.detail-poster img,
.detail-bg img,
.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-section {
    margin-bottom: 76px;
}

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

.section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    color: #111827;
}

.section-heading p {
    margin-top: 8px;
    color: var(--muted);
}

.section-more {
    color: var(--rose);
    background: #fff;
    border: 1px solid #fecdd3;
}

.movie-grid,
.compact-grid,
.large-grid,
.horizontal-grid,
.category-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.15);
}

.poster-link,
.large-poster,
.horizontal-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e5e7eb;
}

.poster-link {
    height: 310px;
}

.poster-link img,
.large-poster img,
.horizontal-cover img,
.editor-cover img,
.detail-poster img,
.player-cover img {
    transition: transform 0.45s ease;
}

.movie-card:hover img,
.editor-cover:hover img {
    transform: scale(1.06);
}

.corner-pill,
.rank-badge {
    position: absolute;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.corner-pill {
    right: 14px;
}

.rank-badge {
    left: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.card-body {
    padding: 18px;
}

.movie-card h3 {
    margin-bottom: 9px;
    color: #111827;
    font-weight: 850;
    font-size: 19px;
    line-height: 1.35;
}

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

.movie-card p {
    color: #5b6472;
    line-height: 1.65;
    font-size: 14px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    color: #6b7280;
    font-size: 13px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f3f4f6;
}

.card-tags {
    margin-top: 12px;
    color: var(--rose);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-card {
    box-shadow: none;
    background: transparent;
}

.compact-card .poster-link {
    height: 240px;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.compact-card h3 {
    margin-top: 12px;
    font-size: 16px;
}

.large-card {
    min-height: 400px;
}

.large-poster {
    height: 400px;
    color: #fff;
    border-radius: 22px;
}

.large-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.78));
}

.large-content {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    display: grid;
    gap: 8px;
}

.large-content strong {
    font-size: 24px;
    line-height: 1.25;
}

.large-content em {
    color: #e5e7eb;
    font-style: normal;
    line-height: 1.55;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 140px;
}

.horizontal-cover {
    height: 100%;
}

.horizontal-info {
    padding: 16px 18px;
}

.tag-blue {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    color: #2563eb;
    background: #dbeafe;
    font-size: 13px;
    font-weight: 800;
}

.topic-band {
    margin-bottom: 76px;
    padding: 70px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.topic-head {
    margin-bottom: 32px;
    text-align: center;
}

.topic-head span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.topic-head h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
}

.topic-head p {
    margin-top: 10px;
    color: #dbeafe;
}

.category-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 34px;
}

.category-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    color: #fff;
    font-weight: 750;
    background: rgba(255, 255, 255, 0.12);
}

.category-cloud a:hover {
    background: rgba(255, 255, 255, 0.22);
}

.page-hero {
    padding: 74px 0;
    color: #fff;
}

.rose-hero {
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.blue-hero {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.page-hero h1 {
    margin-top: 18px;
    font-size: clamp(38px, 6vw, 58px);
    font-weight: 900;
}

.page-hero p {
    max-width: 780px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.75;
}

.back-link {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 750;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.filter-bar input {
    width: min(620px, 100%);
}

.filter-bar span {
    color: #6b7280;
    font-size: 14px;
}

.search-wide input {
    width: 100%;
}

.category-panel {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-title {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

.category-title:hover {
    color: var(--rose);
}

.category-panel p {
    margin: 12px 0 18px;
    color: #5b6472;
    line-height: 1.7;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.category-samples a {
    color: #4b5563;
    font-size: 14px;
}

.category-samples a:hover {
    color: var(--rose);
}

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

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    filter: blur(2px);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17,24,39,0.96), rgba(244,63,94,0.56));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 48px 0 58px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    height: 480px;
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
    margin: 22px 0 16px;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.detail-copy p {
    max-width: 820px;
    color: #ffe4e6;
    font-size: 19px;
    line-height: 1.85;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 26px;
}

.detail-meta span {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section {
    margin-top: 64px;
    margin-bottom: 54px;
}

.player-section h2 {
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 900;
    color: #111827;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.player-video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-video {
    z-index: 1;
    background: #000;
}

.player-cover {
    z-index: 3;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000;
}

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

.player-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.62));
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 20px 50px rgba(244, 63, 94, 0.4);
    transform: translate(-50%, -50%);
    font-size: 36px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-bottom: 70px;
}

.text-panel,
.side-panel {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.text-panel {
    padding: 32px;
}

.text-panel h2,
.side-panel h2 {
    margin-bottom: 14px;
    font-size: 25px;
    font-weight: 900;
    color: #111827;
}

.text-panel h2:not(:first-child) {
    margin-top: 32px;
}

.text-panel p {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.95;
}

.side-panel {
    align-self: start;
    padding: 26px;
}

.side-panel dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 13px 18px;
    margin-bottom: 22px;
}

.side-panel dt {
    color: #6b7280;
    font-weight: 800;
}

.side-panel dd {
    color: #111827;
}

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

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--rose);
    background: #fff1f2;
    font-size: 13px;
    font-weight: 750;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0;
}

.footer-grid p {
    margin-top: 18px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-grid h2 {
    margin-bottom: 16px;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

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

.footer-links a {
    color: #d1d5db;
}

.footer-links a:hover {
    color: #fff;
}

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

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

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

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

@media (max-width: 860px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-carousel {
        min-height: 560px;
    }

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

    .movie-grid,
    .compact-grid,
    .compact-grid.six-cols,
    .large-grid,
    .horizontal-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .horizontal-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .poster-link {
        height: 250px;
    }

    .detail-poster {
        height: 420px;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .site-shell {
        width: min(100% - 22px, var(--shell));
    }

    .hero-copy {
        text-align: left;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .editor-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .editor-cover {
        height: 260px;
    }

    .movie-grid,
    .compact-grid,
    .compact-grid.six-cols,
    .large-grid,
    .horizontal-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .poster-link {
        height: 310px;
    }

    .large-poster {
        height: 360px;
    }

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

    .detail-poster {
        height: 360px;
    }

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

    .text-panel,
    .side-panel {
        padding: 22px;
    }

    .play-button {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
