
:root {
    --site-text: #273244;
    --site-muted: #667085;
    --site-white: rgba(255, 255, 255, 0.88);
    --site-white-strong: rgba(255, 255, 255, 0.96);
    --site-purple: #7c3aed;
    --site-pink: #ec4899;
    --site-blue: #2563eb;
    --site-shadow: 0 20px 70px rgba(31, 38, 135, 0.28);
}

body {
    color: var(--site-text);
}

img {
    background: rgba(255, 255, 255, 0.16);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-radius: 0 0 28px 28px;
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    color: #332a52;
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-purple), var(--site-pink));
    box-shadow: 0 10px 26px rgba(124, 58, 237, 0.34);
}

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

.site-nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: #374151;
    font-weight: 600;
    transition: all 0.25s ease;
}

.site-nav-link:hover,
.site-nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-purple), var(--site-pink));
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.24);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.5);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #43386a;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav.open {
    display: grid;
}

main {
    padding-bottom: 64px;
}

.hero-shell {
    position: relative;
    min-height: min(720px, calc(100vh - 24px));
    overflow: hidden;
    margin-top: -72px;
    padding-top: 72px;
    border-radius: 0 0 42px 42px;
    box-shadow: var(--site-shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.46), transparent 30%),
        linear-gradient(120deg, rgba(102, 126, 234, 0.82), rgba(118, 75, 162, 0.74), rgba(236, 72, 153, 0.55)),
        linear-gradient(to top, rgba(10, 9, 30, 0.78), rgba(10, 9, 30, 0.16));
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 330px;
    gap: 40px;
    align-items: center;
    padding: 86px 0 70px;
}

.hero-copy {
    padding: clamp(26px, 5vw, 52px);
    background: rgba(255, 255, 255, 0.72);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--site-purple), var(--site-pink));
}

.hero-copy h1,
.site-page-hero h1,
.detail-info h1 {
    margin-top: 18px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #231d3c;
    font-weight: 900;
}

.hero-copy p,
.site-page-hero p,
.intro-panel p {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.85;
    color: var(--site-muted);
}

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

.primary-action {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-purple), var(--site-pink));
}

.hero-poster {
    display: block;
    padding: 12px;
    aspect-ratio: 3 / 4;
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

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

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

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

.site-section {
    margin-top: 56px;
}

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

.section-heading h2,
.detail-article h2,
.side-panel h2 {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 900;
    color: #2b2251;
}

.section-more,
.inline-action {
    color: var(--site-purple);
    font-weight: 800;
}

.intro-panel,
.site-page-hero {
    margin-top: 36px;
    padding: clamp(24px, 5vw, 48px);
}

.intro-panel h2,
.site-page-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 900;
    color: #241e3f;
}

.search-panel,
.page-tools {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.search-panel input,
.page-tools input {
    width: min(100%, 620px);
    height: 54px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: #2b2251;
    outline: none;
    box-shadow: 0 10px 28px rgba(31, 38, 135, 0.12);
}

.search-panel button {
    min-width: 112px;
    height: 54px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--site-purple), var(--site-pink));
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.24);
}

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

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

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

.movie-card {
    height: 100%;
}

.movie-card-link {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.movie-poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, 0.2);
}

.movie-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%) scale(0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--site-purple);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 3;
}

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

.movie-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(20, 18, 48, 0.72);
    backdrop-filter: blur(16px);
}

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

.movie-card h3,
.rank-content h3 {
    font-weight: 900;
    color: #2a2348;
    line-height: 1.35;
}

.movie-card h3 {
    font-size: 17px;
}

.movie-card-desc {
    min-height: 48px;
    margin-top: 8px;
    color: var(--site-muted);
    line-height: 1.6;
    font-size: 14px;
}

.movie-meta-line {
    margin-top: 10px;
    color: #8a799f;
    font-size: 13px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #6d3ac5;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(124, 58, 237, 0.12);
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile,
.category-overview-card {
    padding: 24px;
}

.category-tile span,
.category-overview-card h2 {
    font-size: 24px;
    font-weight: 900;
    color: #2b2251;
}

.category-tile p,
.category-overview-card p {
    margin-top: 10px;
    color: var(--site-muted);
    line-height: 1.75;
}

.category-sample {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-sample a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #6d3ac5;
    background: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    font-weight: 700;
}

.large-sample a {
    font-size: 13px;
}

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

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    align-items: center;
}

.rank-number {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--site-purple), var(--site-pink));
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
}

.rank-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-content p {
    margin-top: 8px;
    color: var(--site-muted);
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #6d5b88;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--site-purple);
    font-weight: 700;
}

.detail-hero {
    padding-top: 34px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

.player-card {
    padding: 14px;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 26px;
    background: #070712;
}

.player-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    background: #05050b;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(to top, rgba(7, 7, 18, 0.74), rgba(7, 7, 18, 0.16));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--site-purple);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.detail-info {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
}

.detail-one-line {
    margin-top: 14px;
    color: var(--site-muted);
    line-height: 1.75;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.detail-meta div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
}

.detail-meta dt {
    color: #8b7aa5;
    font-size: 12px;
}

.detail-meta dd {
    margin: 4px 0 0;
    color: #2b2251;
    font-weight: 800;
}

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

.detail-article,
.side-panel {
    padding: clamp(22px, 4vw, 36px);
}

.detail-article h2 + p {
    margin-top: 14px;
}

.detail-article p {
    color: #4f5870;
    line-height: 2;
    font-size: 17px;
}

.detail-article p + h2 {
    margin-top: 32px;
}

.side-links {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.side-links a {
    padding: 12px 14px;
    border-radius: 16px;
    color: #3d3362;
    background: rgba(255, 255, 255, 0.68);
    font-weight: 800;
}

.empty-state {
    display: none;
    margin-top: 30px;
    padding: 28px;
    text-align: center;
    color: var(--site-muted);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
}

.empty-state.show {
    display: block;
}

.site-footer {
    padding: 48px 0;
    color: #514766;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 26px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(24px);
}

.footer-grid p {
    margin-top: 14px;
    max-width: 720px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #6d3ac5;
    background: rgba(255, 255, 255, 0.7);
    font-weight: 800;
}

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

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

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

    .hero-poster {
        display: none;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-shell {
        min-height: 760px;
        border-radius: 0 0 30px 30px;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero-actions,
    .search-panel,
    .page-tools {
        flex-direction: column;
    }

    .movie-grid,
    .full-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .compact-rank,
    .rank-list {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

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

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .full-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .site-header-inner {
        min-height: 64px;
    }

    .hero-shell {
        margin-top: -64px;
        padding-top: 64px;
    }
}
