:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --orange: #ea580c;
    --orange-soft: #fff7ed;
    --ink: #111827;
    --muted: #6b7280;
    --line: #f1f5f9;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(225, 29, 72, 0.12);
}

body {
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.12), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 26rem, #fff 100%);
}

img {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(234, 88, 12, 0.12));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.site-brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.25);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.site-nav a {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.22s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.18);
}

.nav-toggle {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-toggle span {
    display: block;
    width: 1.25rem;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--ink);
}

.hero-slider {
    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-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(190, 18, 60, 0.92), rgba(234, 88, 12, 0.74), rgba(17, 24, 39, 0.34)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.36), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    color: #fff;
}

.hero-copy {
    max-width: 720px;
    padding: 7rem 0 6rem;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    color: #fff7ed;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-kicker,
.detail-kicker {
    color: var(--rose);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 46px rgba(17, 24, 39, 0.34);
}

.hero-copy p {
    max-width: 640px;
    margin: 1.25rem 0 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.9;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary,
.btn-secondary,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.22s ease;
}

.btn-primary {
    color: var(--rose);
    background: #fff;
    box-shadow: 0 20px 42px rgba(17, 24, 39, 0.2);
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

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

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

.hero-dots button {
    width: 3rem;
    height: 0.36rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    transition: 0.22s ease;
}

.hero-dots button.is-active {
    width: 4.5rem;
    background: #fff;
}

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

.content-section {
    padding: 4.5rem 0;
}

.content-section.tight {
    padding-top: 2.5rem;
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.detail-title p {
    margin-top: 0.7rem;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 18px 32px rgba(225, 29, 72, 0.18);
    white-space: nowrap;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.4rem;
    background: var(--card);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.poster-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    min-width: 2.6rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
    font-size: 0.8rem;
    font-weight: 900;
    text-align: center;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: var(--rose);
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0.5rem 0 0.4rem;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 3.6em;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-tags,
.category-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.movie-tags span,
.category-chip-list a,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    color: var(--rose);
    background: #fff1f2;
    font-size: 0.75rem;
    font-weight: 800;
}

.category-chip-list a:hover,
.detail-tags span:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

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

.category-card {
    min-height: 13rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    border-radius: 1.4rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 8rem),
        linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 20px 45px rgba(225, 29, 72, 0.15);
}

.category-card h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 950;
}

.category-card p {
    margin: 0.65rem 0 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
}

.category-card span {
    align-self: flex-start;
    margin-top: 1rem;
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 4rem 5.6rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.rank-number {
    color: var(--rose);
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.rank-item img {
    width: 5.6rem;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 1rem;
}

.rank-item h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    font-weight: 900;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.page-hero {
    padding: 5rem 0 2.5rem;
}

.page-hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 4rem);
    border-radius: 2rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 18rem),
        linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: var(--shadow);
}

.page-hero-card h1,
.page-hero-card p {
    color: #fff;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 0.8fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.filter-panel label {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 3rem;
    padding: 0 1rem;
    border: 1px solid #fee2e2;
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.no-results {
    margin: 2rem 0 0;
    padding: 1.4rem;
    border-radius: 1.4rem;
    color: var(--muted);
    background: #fff;
    text-align: center;
}

.detail-main {
    padding: 2rem 0 4rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 18rem 1fr;
    gap: 2rem;
    align-items: end;
    padding: 2rem;
    border-radius: 2rem;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 1.6rem;
    box-shadow: 0 24px 54px rgba(17, 24, 39, 0.18);
}

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

.detail-title h1 {
    margin-top: 0.3rem;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.detail-stats div {
    padding: 0.85rem;
    border-radius: 1rem;
    background: #fff7ed;
}

.detail-stats span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.detail-stats strong {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 950;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.player-section,
.article-section,
.related-section {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.player-section h2,
.article-section h2,
.related-section h2 {
    margin: 0 0 1rem;
    font-size: 1.6rem;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.article-section p {
    margin: 0 0 1.2rem;
    color: #374151;
    font-size: 1rem;
    line-height: 2;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.4rem;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f172a;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.52), rgba(190, 18, 60, 0.54));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start span {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--rose);
    background: #fff;
    font-size: 2rem;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.player-start strong {
    font-size: 1.1rem;
}

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

.site-footer {
    margin-top: 2rem;
    padding: 3rem 0;
    background: #111827;
    color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

.footer-logo {
    color: #fff;
}

.footer-inner p {
    max-width: 44rem;
    margin-top: 0.8rem;
    line-height: 1.9;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    justify-content: flex-end;
    gap: 0.65rem;
}

.footer-links a {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.16);
}

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

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

    .detail-hero {
        grid-template-columns: 14rem 1fr;
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        text-align: center;
    }

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

    .hero-copy {
        padding-top: 5.5rem;
    }

    .section-heading,
    .footer-inner {
        display: block;
    }

    .section-more {
        margin-top: 1rem;
    }

    .movie-grid,
    .category-grid,
    .ranking-list,
    .filter-panel,
    .detail-hero,
    .detail-stats {
        grid-template-columns: 1fr;
    }

    .movie-grid {
        gap: 1rem;
    }

    .rank-item {
        grid-template-columns: 3rem 5rem 1fr;
    }

    .detail-hero,
    .player-section,
    .article-section,
    .related-section {
        padding: 1rem;
        border-radius: 1.4rem;
    }

    .detail-cover {
        max-width: 15rem;
    }

    .footer-links {
        justify-content: flex-start;
        margin-top: 1.5rem;
    }
}

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

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

    .movie-card p {
        min-height: 0;
        -webkit-line-clamp: 2;
    }
}
