:root {
    --bg: #f8fafc;
    --ink: #111827;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.28);
    --sky: #0ea5e9;
    --sky-dark: #0284c7;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --card: rgba(255, 255, 255, 0.86);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, #f0f9ff 42%, #fffbeb 100%);
}

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

a {
    color: inherit;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--amber));
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
}

.brand-text {
    font-size: 20px;
}

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

.nav-link,
.mobile-panel a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 650;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-panel a:hover {
    color: var(--sky-dark);
    background: rgba(14, 165, 233, 0.1);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
}

.header-search input,
.inline-search input,
.mobile-panel input {
    width: 180px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.header-search button,
.mobile-panel button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--amber));
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: #ffffff;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: #f8fafc;
}

.hero-carousel {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.hero-shell {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow);
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.02);
}

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

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.62) 44%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.78) 0%, transparent 52%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 72px clamp(28px, 7vw, 76px);
    color: #ffffff;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--sky-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.hero-copy .hero-desc {
    color: rgba(255, 255, 255, 0.82);
}

.hero-copy h1 {
    max-width: 680px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-desc {
    margin-top: 22px;
    max-width: 620px;
    font-size: 18px;
    line-height: 1.75;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.tag-row span {
    color: #0369a1;
    background: #e0f2fe;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.text-link,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 13px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--amber));
    box-shadow: 0 16px 36px rgba(14, 165, 233, 0.28);
}

.ghost-btn {
    padding: 12px 21px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
}

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

.hero-controls {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    opacity: 0.58;
}

.hero-dot.is-active {
    width: 28px;
    opacity: 1;
    background: linear-gradient(135deg, var(--sky), var(--amber));
}

.hero-side-panel {
    min-height: 560px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(224, 242, 254, 0.86), rgba(255, 251, 235, 0.9));
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-side-panel span {
    color: var(--amber-dark);
    font-weight: 800;
}

.hero-side-panel strong {
    margin-top: 10px;
    font-size: 32px;
    line-height: 1.1;
}

.hero-side-panel p {
    margin: 18px 0 24px;
    color: #475569;
    line-height: 1.8;
}

.hero-side-panel a {
    width: max-content;
    padding: 12px 18px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-dark), var(--amber));
    font-weight: 800;
}

.content-section,
.page-shell,
.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section {
    margin-bottom: 56px;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-heading p,
.page-hero p,
.movie-card-body p,
.rank-info p,
.detail-one-line,
.story-card p,
.related-card p {
    color: var(--muted);
    line-height: 1.75;
}

.section-more,
.text-link,
.rank-action {
    padding: 10px 16px;
    color: var(--sky-dark);
    background: #e0f2fe;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #e2e8f0;
}

.poster-link img {
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 42%);
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--amber));
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.28);
}

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

.movie-meta-line {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.movie-card-body h3 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 850;
}

.movie-card-body p {
    min-height: 58px;
    font-size: 14px;
}

.movie-card-small .movie-card-body p {
    min-height: 44px;
}

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

.category-tile,
.category-card-large {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.1);
}

.category-tile {
    min-height: 210px;
    padding: 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 24px;
    font-weight: 900;
}

.category-tile p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.page-shell {
    padding: 34px 0 60px;
}

.page-hero {
    margin-bottom: 28px;
    padding: clamp(30px, 6vw, 62px);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.compact-hero,
.category-hero {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 22rem),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.2), transparent 24rem),
        rgba(255, 255, 255, 0.84);
}

.page-hero h1 {
    font-size: clamp(36px, 7vw, 68px);
}

.page-hero p {
    max-width: 760px;
    margin-top: 12px;
    font-size: 17px;
}

.inline-search {
    max-width: 560px;
    margin-top: 26px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
}

.inline-search input {
    width: 100%;
    font-size: 16px;
}

.category-list-large {
    display: grid;
    gap: 20px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
    align-items: center;
}

.category-large-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
}

.category-card-large h2 {
    font-size: 30px;
    font-weight: 900;
}

.category-card-large p {
    color: var(--muted);
    line-height: 1.75;
}

.category-samples {
    margin: 10px 0 14px;
}

.category-movie-grid,
.search-grid {
    margin-top: 26px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 64px 108px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.rank-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--amber-dark);
}

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

.rank-info h2 {
    margin: 4px 0;
    font-size: 22px;
    font-weight: 880;
}

.detail-shell {
    padding: 28px 0 60px;
}

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

.breadcrumb a {
    color: var(--sky-dark);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 26px;
    padding: 22px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    min-height: 470px;
    border-radius: 26px;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.16);
}

.detail-copy {
    padding: clamp(8px, 4vw, 30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-copy h1 {
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.02;
}

.detail-one-line {
    margin-top: 18px;
    font-size: 18px;
}

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

.detail-meta-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.78);
}

.detail-meta-grid span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.detail-meta-grid strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
}

.player-section {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 26px;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.24));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky), var(--amber));
    box-shadow: 0 18px 44px rgba(14, 165, 233, 0.35);
    font-size: 34px;
    padding-left: 6px;
}

.play-overlay strong {
    font-size: 20px;
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 46px;
}

.story-card {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
    margin-bottom: 12px;
    font-size: 30px;
    font-weight: 900;
}

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

.related-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.related-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
}

.related-card h3 {
    font-size: 18px;
    font-weight: 860;
}

.related-card p {
    margin: 8px 0 10px;
    font-size: 14px;
}

.site-footer {
    margin-top: 60px;
    padding: 36px 0;
    color: #475569;
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
}

.footer-logo {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
}

.footer-inner p {
    margin-top: 8px;
}

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

.footer-links a {
    color: var(--sky-dark);
    font-weight: 800;
}

.copyright {
    grid-column: 1 / -1;
    margin-top: 0;
    font-size: 13px;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1080px) {
    .hero-carousel {
        grid-template-columns: 1fr;
    }

    .hero-side-panel {
        min-height: auto;
    }

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

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

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-shell {
        min-height: 640px;
    }

    .hero-copy {
        padding: 56px 24px;
    }

    .movie-grid,
    .category-grid,
    .detail-content,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-card-large,
    .detail-hero,
    .rank-card {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        min-height: auto;
        aspect-ratio: 2 / 3;
    }

    .rank-action {
        width: max-content;
    }

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

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

@media (max-width: 560px) {
    .header-inner,
    .hero-carousel,
    .content-section,
    .page-shell,
    .detail-shell,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-shell {
        min-height: 600px;
        border-radius: 24px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-controls {
        left: 18px;
        right: 18px;
    }

    .hero-side-panel,
    .page-hero,
    .detail-hero,
    .story-card {
        border-radius: 24px;
    }

    .movie-grid,
    .category-grid,
    .detail-content,
    .related-grid {
        grid-template-columns: 1fr;
    }

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

    .player-section {
        border-radius: 20px;
    }

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