* {
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

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

.site-logo {
    flex: 0 0 auto;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--rose), var(--pink), #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

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

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.header-search input,
.mobile-search input {
    width: 190px;
    border: 0;
    outline: 0;
    padding: 10px 10px 10px 16px;
    color: var(--text);
}

.header-search button,
.mobile-search button {
    border: 0;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    cursor: pointer;
}

.menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: #374151;
}

.mobile-nav {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px 18px;
}

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

.mobile-nav nav {
    display: grid;
    gap: 12px;
    padding-top: 14px;
}

.mobile-search {
    width: 100%;
}

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

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 48%, #ec4899 100%);
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.26), transparent 28%),
        radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
}

.hero-shell {
    position: relative;
    max-width: 1180px;
    min-height: 560px;
    margin: 0 auto;
    padding: 72px 22px 70px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
    gap: 44px;
    align-items: center;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-copy p {
    max-width: 700px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.8;
}

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

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-tags a,
.badge-row span,
.meta-pill,
.tag-list span {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

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

.btn-glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.btn-rose {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.hero-slider {
    position: relative;
    min-height: 470px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.hero-slide-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
}

.hero-slide-content h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
}

.hero-slide-content p {
    margin: 10px 0 18px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
}

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

.main-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 22px 72px;
}

.section {
    margin-bottom: 64px;
}

.section.soft {
    padding: 30px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--soft), var(--soft-pink));
}

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

.section-head h2,
.page-head h1,
.detail-title h1 {
    margin: 0;
    color: var(--text);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: 30px;
}

.section-head p,
.page-head p,
.detail-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #f1f5f9;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 63, 94, 0.28);
    box-shadow: var(--shadow);
}

.movie-card.list {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
}

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

.movie-card.list .poster-link {
    aspect-ratio: auto;
    min-height: 245px;
}

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

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

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(244, 63, 94, 0.9);
    box-shadow: 0 12px 32px rgba(244, 63, 94, 0.35);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    font-size: 12px;
}

.card-body {
    padding: 18px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.badge-row span {
    color: var(--rose-dark);
    background: #ffe4e6;
}

.movie-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-card p {
    min-height: 52px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 800;
}

.card-meta a {
    color: var(--rose);
}

.scroll-row {
    display: flex;
    gap: 18px;
    margin: 0 -22px;
    padding: 0 22px 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.scroll-row .movie-card {
    width: 280px;
    flex: 0 0 auto;
}

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

.compact-item {
    display: grid;
    grid-template-columns: auto 76px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

.compact-item img {
    width: 76px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
    transition: transform 0.35s ease;
}

.compact-item strong {
    display: block;
    font-size: 16px;
    font-weight: 900;
}

.compact-item em {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    font-weight: 950;
}

.page-head {
    padding: 58px 0 30px;
}

.page-head h1 {
    font-size: clamp(34px, 5vw, 58px);
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.5s ease;
}

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

.category-card div {
    position: absolute;
    inset: auto 0 0;
    padding: 22px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.category-card h2 {
    margin: 0;
    font-size: 24px;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 180px));
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    outline: none;
    padding: 0 16px;
    color: var(--text);
    background: #ffffff;
}

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

.no-results {
    display: none;
    padding: 30px;
    border-radius: 22px;
    color: var(--muted);
    background: #f9fafb;
    text-align: center;
}

.no-results.is-visible {
    display: block;
}

.detail-hero {
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
    border-bottom: 1px solid #ffe4e6;
}

.detail-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: center;
}

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

.breadcrumb a {
    color: var(--rose);
}

.detail-title h1 {
    font-size: clamp(36px, 5vw, 64px);
}

.meta-row,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.meta-pill {
    color: var(--rose-dark);
    background: #ffe4e6;
}

.tag-list span {
    color: #374151;
    background: #f3f4f6;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.player-section {
    max-width: 1180px;
    margin: 42px auto 0;
    padding: 0 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

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

.play-circle {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 22px 50px rgba(244, 63, 94, 0.42);
    font-size: 28px;
}

.detail-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 22px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
}

.article-card,
.side-card {
    border: 1px solid #f1f5f9;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.article-card {
    padding: 30px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 25px;
    font-weight: 950;
}

.article-card p {
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.95;
    font-size: 17px;
}

.side-card {
    padding: 20px;
}

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

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

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 22px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 950;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-links a {
    color: #4b5563;
    font-weight: 700;
}

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

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 22px 32px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

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

    .menu-button {
        display: block;
    }

    .hero-shell,
    .detail-shell,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .hero-shell {
        min-height: auto;
        padding: 48px 16px 54px;
    }

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

    .hero-slider {
        min-height: 420px;
    }

    .main-wrap,
    .player-section,
    .detail-content,
    .detail-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .grid.featured,
    .grid.cards,
    .grid.two,
    .category-overview,
    .related-grid,
    .filter-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card.list {
        grid-template-columns: 1fr;
    }

    .section.soft {
        padding: 22px;
    }

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

    .compact-item {
        grid-template-columns: auto 64px minmax(0, 1fr);
    }

    .compact-item img {
        width: 64px;
        height: 84px;
    }
}
