:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --orange: #ea580c;
    --orange-soft: #fff7ed;
    --ink: #111827;
    --muted: #6b7280;
    --line: #f3e2df;
    --card: #ffffff;
    --shadow: 0 22px 45px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fff7ed 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(225, 29, 72, 0.12);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.28);
    font-size: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-links a:hover {
    color: var(--rose);
    background: #fff1f2;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    background: #fff1f2;
    color: var(--rose);
    padding: 8px 12px;
}

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

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

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

.hero-image,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(190, 18, 60, 0.95), rgba(234, 88, 12, 0.72), rgba(17, 24, 39, 0.24)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    max-width: 1180px;
}

.hero-content h1 {
    margin: 0 0 14px;
    max-width: 760px;
    font-size: clamp(40px, 7vw, 74px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero-content h2 {
    margin: 0 0 16px;
    font-size: clamp(24px, 3vw, 42px);
    color: #ffe4e6;
    font-weight: 800;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 22px;
    color: #fff1f2;
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 10px;
    color: #ffe4e6;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--rose);
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.hero-meta span,
.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.primary-button,
.ghost-button,
.filter-button,
.home-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button,
.home-search button,
.filter-button {
    background: linear-gradient(135deg, var(--rose), var(--orange));
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(225, 29, 72, 0.28);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.ghost-button.dark {
    color: var(--rose);
    background: #fff1f2;
    border-color: #fecdd3;
}

.primary-button:hover,
.ghost-button:hover,
.filter-button:hover,
.home-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(225, 29, 72, 0.34);
}

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

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

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

.search-strip {
    position: relative;
    z-index: 10;
    margin-top: -34px;
}

.home-search,
.filter-panel {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(225, 29, 72, 0.1);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-search input,
.filter-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #ffe4e6;
    outline: none;
    border-radius: 18px;
    padding: 0 18px;
    color: var(--ink);
    background: #fff7ed;
}

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

.section-block {
    padding: 70px 0 0;
}

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

.section-head h2,
.page-hero h1,
.detail-title h1,
.article-card h2,
.side-card h2 {
    margin: 0;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.section-more {
    color: var(--rose);
    font-weight: 900;
}

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

.wide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: var(--card);
    border: 1px solid rgba(225, 29, 72, 0.1);
    border-radius: 26px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(225, 29, 72, 0.28);
    box-shadow: var(--shadow);
}

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

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.68), transparent);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.movie-card:hover .poster-mask {
    opacity: 1;
}

.play-dot {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.rating-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    font-weight: 900;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
}

.card-body strong {
    font-size: 18px;
    line-height: 1.3;
}

.meta-line,
.card-desc,
.rank-info span,
.side-card dd,
.article-card p,
.page-hero p,
.site-footer p {
    color: var(--muted);
}

.meta-line {
    font-size: 13px;
}

.card-desc {
    font-size: 14px;
}

.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    color: var(--rose);
    background: #fff1f2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 22px;
    color: #ffffff;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.category-card img,
.category-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-shade {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(225, 29, 72, 0.28));
}

.category-card strong,
.category-card span:not(.category-shade) {
    position: relative;
    z-index: 1;
}

.category-card strong {
    font-size: 24px;
    font-weight: 900;
}

.page-main {
    min-height: 64vh;
}

.page-hero {
    padding: 84px 0 74px;
    background:
        radial-gradient(circle at top left, rgba(225, 29, 72, 0.18), transparent 35%),
        linear-gradient(135deg, #fff1f2, #fff7ed);
    border-bottom: 1px solid rgba(225, 29, 72, 0.1);
}

.small-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 5vw, 58px);
}

.small-hero p {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: 18px;
}

.filter-panel {
    margin-bottom: 26px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.list-area .movie-card[hidden],
.rank-list .movie-card[hidden] {
    display: none;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 96px 1fr 72px 92px;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    border-radius: 22px;
    background: #ffffff;
}

.rank-row img {
    width: 96px;
    height: 70px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--rose);
    text-align: center;
}

.rank-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rank-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
}

.rank-score,
.rank-heat {
    font-weight: 900;
    color: var(--orange);
    text-align: right;
}

.detail-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-cover {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(190, 18, 60, 0.72), rgba(234, 88, 12, 0.42)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.18));
    backdrop-filter: blur(2px);
}

.detail-head {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 52px 0;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    color: #ffe4e6;
    font-weight: 800;
}

.detail-title h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.08;
    margin-bottom: 18px;
}

.detail-title p {
    max-width: 820px;
    color: #fff1f2;
    font-size: 20px;
    margin: 0 0 22px;
}

.large-tags .tag {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.player-block {
    padding-top: 54px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #000000;
    box-shadow: 0 28px 60px rgba(17, 24, 39, 0.22);
}

.video-element {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.24), rgba(17, 24, 39, 0.54));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: var(--rose);
    background: #ffffff;
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.36);
}

.play-overlay[hidden] {
    display: none;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding-top: 38px;
}

.article-card,
.side-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid rgba(225, 29, 72, 0.1);
    border-radius: 28px;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}

.article-card h2,
.side-card h2 {
    margin-bottom: 14px;
    font-size: 25px;
}

.article-card p {
    margin: 0 0 24px;
    font-size: 17px;
}

.side-card dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.side-card dt {
    color: var(--rose);
    font-weight: 900;
}

.side-card dd {
    margin: -10px 0 0;
}

.site-footer {
    margin-top: 90px;
    padding: 48px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #881337, #9a3412);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.footer-brand {
    color: #ffffff;
}

.footer-inner p {
    color: #ffe4e6;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-weight: 800;
}

.copyright {
    font-size: 13px;
}

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

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

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

    .detail-poster {
        max-width: 300px;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 8px;
    }

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

    .nav-links a {
        background: #fff7ed;
    }

    .hero {
        height: 680px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 90px;
    }

    .home-search,
    .filter-panel {
        flex-direction: column;
    }

    .home-search input,
    .filter-input {
        min-height: 48px;
    }

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

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

    .rank-row {
        grid-template-columns: 44px 76px 1fr;
        gap: 12px;
    }

    .rank-row img {
        width: 76px;
        height: 58px;
    }

    .rank-score,
    .rank-heat {
        display: none;
    }

    .detail-head {
        padding: 34px 0;
    }

    .detail-poster {
        max-width: 220px;
    }

    .detail-title p {
        font-size: 17px;
    }

    .article-card,
    .side-card {
        padding: 22px;
    }
}
