:root {
    --rose-50: #fff1f2;
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-500: #ec4899;
    --rose-500: #f43f5e;
    --orange-500: #f97316;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #fbcfe8;
    --panel: rgba(255, 255, 255, 0.86);
    --shadow: 0 24px 70px rgba(190, 24, 93, 0.16);
}

body {
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 42%, #fff1f2 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    width: 100%;
    object-fit: cover;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--pink-100);
    box-shadow: 0 12px 38px rgba(236, 72, 153, 0.08);
}

.header-inner {
    max-width: 1280px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500), var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-mark,
.footer-logo span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.35);
    font-size: 13px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.desktop-nav a,
.mobile-panel a {
    color: #374151;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--pink-500);
}

.header-search,
.mobile-search,
.search-band-form,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.search-band-form input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    padding: 12px 18px;
    outline: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.header-search input {
    width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-band-form input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--pink-500);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.16);
    background: #ffffff;
}

.header-search button,
.mobile-search button,
.search-band-form button,
.search-page-form button,
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500), var(--orange-500));
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-band-form button:hover,
.search-page-form button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(236, 72, 153, 0.36);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: var(--pink-500);
    background: var(--pink-50);
    font-size: 22px;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

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

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

.mobile-panel nav a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(253, 242, 248, 0.86);
}

main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    margin: 28px 0 28px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    height: 100%;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(190, 24, 93, 0.42), rgba(249, 115, 22, 0.24)), linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent 58%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 82px 72px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--pink-500);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-panel .eyebrow,
.side-panel .eyebrow {
    color: #ffe4e6;
}

.hero-copy h1,
.page-hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.045em;
    margin-bottom: 22px;
}

.hero-copy p,
.page-hero p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 22px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #be185d;
    background: #fce7f3;
    font-weight: 800;
    font-size: 12px;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.ghost-btn.light {
    color: #be185d;
    border-color: #fbcfe8;
    background: rgba(255, 255, 255, 0.86);
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 72px;
    bottom: 42px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.search-band,
.page-hero,
.section-block,
.side-panel,
.article-card {
    border: 1px solid rgba(251, 207, 232, 0.78);
    background: var(--panel);
    box-shadow: 0 18px 55px rgba(190, 24, 93, 0.1);
    backdrop-filter: blur(18px);
}

.search-band {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 520px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    margin-bottom: 40px;
}

.search-band h2,
.side-panel h2,
.section-heading h2,
.article-card h2 {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 950;
    color: #111827;
    letter-spacing: -0.02em;
}

.search-band p,
.side-panel p,
.article-card p {
    margin-top: 10px;
    line-height: 1.8;
    color: var(--muted);
}

.section-block {
    margin-top: 36px;
    padding: 28px;
    border-radius: 30px;
}

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

.section-heading span {
    color: var(--pink-500);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading a {
    color: #be185d;
    font-weight: 900;
}

.compact-heading {
    align-items: center;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(190, 24, 93, 0.14);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(190, 24, 93, 0.22);
}

.category-card img {
    position: absolute;
    inset: 0;
    height: 100%;
    transition: transform 0.45s ease;
}

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

.category-card-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(190, 24, 93, 0.82));
}

.category-card-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px;
    color: #ffffff;
}

.category-card-content span {
    display: inline-flex;
    margin-bottom: 8px;
    font-weight: 900;
    color: #ffe4e6;
}

.category-card-content strong {
    display: block;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.category-card-content p {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #fce7f3;
    box-shadow: 0 14px 34px rgba(190, 24, 93, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(190, 24, 93, 0.2);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.25;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.poster-link img {
    height: 100%;
    transition: transform 0.45s ease;
}

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

.poster-badge,
.poster-time {
    position: absolute;
    top: 12px;
    left: 12px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(236, 72, 153, 0.88);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.poster-time {
    left: auto;
    top: auto;
    right: 12px;
    bottom: 12px;
    background: rgba(17, 24, 39, 0.72);
}

.movie-card-body {
    padding: 16px;
}

.movie-title {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 950;
    color: #111827;
    margin-bottom: 9px;
}

.movie-title a:hover {
    color: var(--pink-500);
}

.movie-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-line {
    margin: 12px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.68;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.split-block {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 92px 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #fce7f3;
    box-shadow: 0 12px 30px rgba(190, 24, 93, 0.08);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
}

.rank-cover {
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
}

.rank-cover img {
    height: 100%;
}

.rank-body h3 {
    font-size: 17px;
    font-weight: 950;
    margin-bottom: 6px;
}

.rank-body p {
    color: #4b5563;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.side-panel {
    border-radius: 28px;
    padding: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #831843, #be185d 48%, #f97316);
    align-self: start;
    position: sticky;
    top: 104px;
}

.page-hero {
    margin: 28px 0 0;
    border-radius: 34px;
    padding: 60px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(190, 24, 93, 0.92), rgba(236, 72, 153, 0.76), rgba(249, 115, 22, 0.7));
    overflow: hidden;
}

.soft-hero {
    background: linear-gradient(135deg, #be185d, #ec4899, #f97316);
}

.category-hero {
    background: linear-gradient(135deg, #9f1239, #db2777, #fb923c);
}

.rank-hero {
    background: linear-gradient(135deg, #7f1d1d, #be123c, #f59e0b);
}

.search-hero {
    background: linear-gradient(135deg, #701a75, #db2777, #fb7185);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin-bottom: 22px;
}

.is-hidden {
    display: none !important;
}

.detail-hero {
    margin-top: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #be185d;
    font-weight: 800;
    margin: 0 0 18px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 24px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.72));
}

.play-circle {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
    box-shadow: 0 20px 45px rgba(236, 72, 153, 0.45);
    font-size: 28px;
    padding-left: 5px;
}

.player-overlay strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.detail-panel {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-self: stretch;
    padding: 22px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #831843, #be185d, #f97316);
    box-shadow: var(--shadow);
}

.detail-panel img {
    aspect-ratio: 3 / 4.25;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.24);
}

.detail-panel h1 {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    font-weight: 950;
    margin-bottom: 12px;
}

.detail-panel p {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.78;
    margin-bottom: 14px;
}

.detail-panel .detail-meta {
    color: #ffe4e6;
    margin-bottom: 16px;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.article-card {
    border-radius: 28px;
    padding: 28px;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(135deg, #881337, #9f1239 48%, #c2410c);
    margin-top: 30px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: #ffe4e6;
    line-height: 1.75;
}

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

.footer-grid ul {
    display: grid;
    gap: 8px;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

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

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

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

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

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

    .side-panel {
        position: static;
    }
}

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

    main {
        padding: 0 16px 64px;
    }

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

    .hero-copy {
        padding: 54px 26px;
    }

    .hero-controls {
        left: 26px;
        bottom: 28px;
    }

    .search-band,
    .filter-bar,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 42px 24px;
    }

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

    .detail-panel {
        grid-template-columns: 110px 1fr;
    }
}

@media (max-width: 560px) {
    .header-inner {
        height: 68px;
        padding: 0 16px;
    }

    .logo,
    .footer-logo {
        font-size: 18px;
    }

    .logo-mark,
    .footer-logo span {
        width: 32px;
        height: 32px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 36px;
    }

    .section-block,
    .search-band,
    .article-card {
        padding: 20px;
        border-radius: 24px;
    }

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

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

    .rank-item {
        grid-template-columns: 44px 72px 1fr;
        gap: 10px;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

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

    .detail-panel img {
        max-width: 170px;
    }
}
