:root {
    --page-bg: #fff7f8;
    --card-bg: rgba(255, 255, 255, 0.92);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --pink: #ec4899;
    --line: rgba(244, 63, 94, 0.14);
    --shadow: 0 18px 45px rgba(244, 63, 94, 0.12);
}

body {
    min-height: 100vh;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(251, 113, 133, 0.18), transparent 28rem),
        linear-gradient(180deg, #fff7f8 0%, #ffffff 42%, #fffafa 100%);
}

img {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.12), rgba(236, 72, 153, 0.08));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

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

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    color: #ffffff;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.28);
    font-weight: 900;
}

.logo-title {
    display: block;
    font-size: 1.28rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-subtitle {
    display: block;
    margin-top: 0.18rem;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    color: #4b5563;
    font-size: 0.94rem;
    font-weight: 700;
}

.nav-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--rose);
}

.nav-links a:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    color: var(--rose);
    background: #ffffff;
}

.mobile-menu {
    display: none;
    padding: 0 0 1rem;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(244, 63, 94, 0.1);
    color: #4b5563;
    font-weight: 700;
}

.search-box {
    position: relative;
    min-width: 230px;
}

.search-input {
    width: 100%;
    height: 2.75rem;
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: 999px;
    padding: 0 1rem 0 2.55rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    outline: none;
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.08);
}

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

.search-icon {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    transform: translateY(-50%);
    color: var(--rose);
}

.search-results {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    width: min(520px, 92vw);
    max-height: 70vh;
    overflow: auto;
    display: none;
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 0.55rem;
}

.search-results.open {
    display: grid;
    gap: 0.45rem;
}

.search-result-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    padding: 0.55rem;
    border-radius: 0.9rem;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #fff1f2;
}

.search-result-item img {
    width: 64px;
    height: 84px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.hero-section {
    padding: 2rem 0 3rem;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 2rem;
    background: #1f1020;
    box-shadow: 0 28px 70px rgba(190, 18, 60, 0.28);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(290px, 0.75fr);
    align-items: stretch;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 4rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px) saturate(1.18);
    transform: scale(1.08);
    opacity: 0.42;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(31, 16, 32, 0.96), rgba(68, 18, 48, 0.78) 45%, rgba(244, 63, 94, 0.32)),
        radial-gradient(circle at 78% 20%, rgba(251, 113, 133, 0.42), transparent 20rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    align-self: center;
    color: #ffffff;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-title {
    margin-top: 1rem;
    max-width: 760px;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero-desc {
    margin-top: 1.25rem;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.06rem;
    line-height: 1.85;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.hero-meta span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.7rem;
}

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.8rem;
    padding: 0 1.15rem;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-secondary {
    color: var(--rose-dark);
    background: #fff1f2;
}

.btn-light {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    z-index: 2;
    align-self: center;
    justify-self: end;
    width: min(380px, 100%);
}

.hero-poster-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.55rem;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    transform: rotate(1.5deg);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster-caption {
    padding: 1rem;
    color: #ffffff;
    background: rgba(30, 20, 34, 0.76);
    backdrop-filter: blur(12px);
}

.hero-dots {
    position: absolute;
    left: clamp(1.5rem, 4vw, 4rem);
    bottom: 1.4rem;
    z-index: 4;
    display: flex;
    gap: 0.55rem;
}

.hero-dot {
    width: 2.1rem;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
    background: #ffffff;
}

.section-block {
    padding: 2rem 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.section-title {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-desc {
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.05rem;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--card-bg);
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.movie-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #fff1f2;
}

.movie-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-card-media img {
    transform: scale(1.05);
}

.movie-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    font-size: 0.72rem;
    font-weight: 800;
}

.movie-score {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-card-body {
    padding: 0.9rem;
}

.movie-card-title {
    display: -webkit-box;
    min-height: 2.8em;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 900;
    line-height: 1.35;
}

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

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.movie-card-desc {
    display: -webkit-box;
    min-height: 3.8em;
    margin-top: 0.55rem;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

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

.category-card {
    display: block;
    min-height: 170px;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 90% 12%, rgba(244, 63, 94, 0.18), transparent 8rem),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
    font-size: 1.3rem;
    font-weight: 950;
}

.category-card p {
    margin-top: 0.55rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.rank-list {
    display: grid;
    gap: 0.75rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 58px 84px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.06);
}

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

.rank-row img {
    width: 84px;
    height: 112px;
    object-fit: cover;
    border-radius: 0.85rem;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(130px, 0.45fr));
    gap: 0.8rem;
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 28px rgba(244, 63, 94, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 2.8rem;
    border: 1px solid rgba(244, 63, 94, 0.16);
    border-radius: 0.9rem;
    padding: 0 0.85rem;
    background: #ffffff;
    color: var(--text-main);
    outline: none;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

.player-shell {
    overflow: hidden;
    border-radius: 1.4rem;
    background: #050505;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.28);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.player-cover.hidden {
    display: none;
}

.play-button {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 16px 42px rgba(244, 63, 94, 0.36);
    font-size: 1.7rem;
    transform: translateZ(0);
}

.detail-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08);
}

.detail-card {
    margin-top: 1rem;
    padding: 1.35rem;
}

.detail-title {
    font-size: clamp(1.7rem, 4vw, 2.65rem);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0;
}

.detail-meta span,
.normal-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: #fff1f2;
    color: #9f1239;
    font-size: 0.84rem;
    font-weight: 800;
}

.article-body h2 {
    margin-top: 1.3rem;
    font-size: 1.25rem;
    font-weight: 950;
}

.article-body p {
    margin-top: 0.65rem;
    color: #4b5563;
    line-height: 1.9;
}

.side-card {
    padding: 1rem;
}

.side-title {
    margin-bottom: 0.9rem;
    font-size: 1.1rem;
    font-weight: 950;
}

.side-list {
    display: grid;
    gap: 0.75rem;
}

.side-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    padding: 0.45rem;
    border-radius: 0.9rem;
}

.side-item:hover {
    background: #fff1f2;
}

.side-item img {
    width: 64px;
    height: 84px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tags-row span {
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: #fff1f2;
    color: #9f1239;
    font-size: 0.84rem;
    font-weight: 800;
}

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
    padding: 2.2rem 0;
}

.footer-title {
    margin-bottom: 0.75rem;
    font-weight: 950;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.92rem;
}

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

.footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid rgba(244, 63, 94, 0.1);
    color: var(--text-muted);
    font-size: 0.86rem;
}

.empty-state {
    display: none;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

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

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

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

@media (max-width: 820px) {
    .navbar {
        min-height: 68px;
    }

    .nav-links,
    .navbar .search-box {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .hero-shell {
        min-height: 680px;
        border-radius: 1.35rem;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 1rem;
        padding: 1.3rem;
    }

    .hero-poster {
        justify-self: start;
        width: min(240px, 60vw);
    }

    .hero-title {
        font-size: clamp(2.1rem, 12vw, 3.6rem);
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

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

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

    .rank-row {
        grid-template-columns: 42px 64px minmax(0, 1fr);
    }

    .rank-row .rank-extra {
        grid-column: 3;
    }

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

@media (max-width: 520px) {
    .site-container {
        width: min(100% - 1rem, 1180px);
    }

    .logo-subtitle {
        display: none;
    }

    .hero-section {
        padding-top: 1rem;
    }

    .section-heading {
        display: block;
    }

    .movie-card-body {
        padding: 0.75rem;
    }

    .movie-card-desc {
        display: none;
    }
}
