body {
    background: #020617;
    color: #e5e7eb;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    max-width: 100%;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(2, 6, 23, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.site-logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed 48%, #ec4899);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

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

.nav-link,
.mobile-nav-link {
    color: rgba(226, 232, 240, 0.82);
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link-active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.25);
}

.mobile-nav-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
    display: grid;
    gap: 6px;
}

.mobile-nav-link {
    padding: 12px 14px;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 18%, rgba(99, 102, 241, 0.35), transparent 34%), linear-gradient(90deg, rgba(2, 6, 23, 0.97), rgba(2, 6, 23, 0.7) 46%, rgba(2, 6, 23, 0.25)), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 48%, rgba(2, 6, 23, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    padding-top: 120px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    align-items: center;
    gap: 44px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: #ffffff;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 760px;
    font-size: clamp(44px, 8vw, 84px);
}

.hero-summary {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(226, 232, 240, 0.9);
    font-size: 18px;
    line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
}

.hero-tags span,
.detail-meta span {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

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

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

.primary-button,
.home-search button {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed 55%, #ec4899);
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.35);
}

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

.primary-button:hover,
.ghost-button:hover,
.home-search button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    height: 480px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.58);
    transform: rotate(2deg);
}

.hero-poster img,
.poster-link img,
.detail-cover img,
.rank-cover img,
.hero-mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.48);
    transform: translate(-50%, -50%);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

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

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    padding: 0;
}

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

.hero-mini-row {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 92px;
    z-index: 4;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.hero-mini-card {
    height: 86px;
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.hero-mini-card img {
    border-radius: 12px;
}

.hero-mini-card span {
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
}

.hero-mini-card.is-active {
    border-color: rgba(96, 165, 250, 0.85);
    background: rgba(37, 99, 235, 0.28);
}

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

.intro-search,
.filter-panel,
.page-hero,
.category-card-large,
.player-card,
.detail-content,
.rank-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.intro-search {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: center;
    margin-top: -24px;
    padding: 28px;
    border-radius: 32px;
    position: relative;
    z-index: 5;
}

.intro-copy h2,
.section-head h2,
.filter-panel h2,
.detail-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.intro-copy p:last-child,
.page-hero p,
.category-card-large p,
.detail-content p,
.card-body p,
.rank-item p,
.site-footer p {
    color: rgba(203, 213, 225, 0.86);
    line-height: 1.75;
}

.home-search,
.filter-controls {
    display: flex;
    gap: 10px;
}

.home-search input,
.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    outline: none;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.filter-controls select {
    max-width: 180px;
}

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

.section-head a {
    color: #93c5fd;
    font-weight: 900;
}

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

.movie-card {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.52);
    box-shadow: 0 30px 70px rgba(37, 99, 235, 0.18);
}

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.75));
}

.card-year,
.card-play {
    position: absolute;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.card-year {
    left: 10px;
    top: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.card-play {
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-body {
    padding: 14px;
}

.card-meta {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 850;
}

.card-body h3 {
    margin: 8px 0 7px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.35;
}

.card-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 800;
}

.category-grid,
.category-grid-large {
    display: grid;
    gap: 16px;
}

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

.category-tile,
.category-card-large {
    display: block;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(124, 58, 237, 0.16)), rgba(15, 23, 42, 0.82);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile {
    min-height: 160px;
    padding: 24px;
}

.category-tile strong,
.category-card-large h2 {
    display: block;
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.category-tile span,
.category-card-large p {
    display: block;
    margin-top: 12px;
}

.category-tile:hover,
.category-card-large:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.56);
}

.page-main {
    padding-top: 96px;
}

.page-hero {
    padding: 50px;
    border-radius: 34px;
}

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

.page-hero p {
    max-width: 780px;
    margin-top: 18px;
    font-size: 18px;
}

.page-actions {
    margin-top: 22px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: 28px;
}

.empty-state {
    display: none;
    padding: 34px;
    text-align: center;
    color: rgba(226, 232, 240, 0.8);
}

.empty-state.is-visible {
    display: block;
}

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

.category-card-large {
    padding: 24px;
}

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

.category-card-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 850;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 60px 84px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
}

.rank-num {
    color: #60a5fa;
    font-size: 26px;
    font-weight: 950;
    text-align: center;
}

.rank-cover {
    height: 116px;
    border-radius: 16px;
    overflow: hidden;
}

.rank-item h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 950;
}

.rank-item p {
    margin: 0 0 8px;
}

.detail-main {
    padding-top: 0;
}

.detail-hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    background: #020617;
}

.detail-bg-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.28), transparent 38%), linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.68)), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 54%, rgba(2, 6, 23, 0.72));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 112px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: rgba(226, 232, 240, 0.78);
    font-size: 14px;
}

.breadcrumb a {
    color: #bfdbfe;
}

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

.detail-cover {
    height: 500px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 78px rgba(0, 0, 0, 0.58);
}

.detail-info h1 {
    font-size: clamp(36px, 6vw, 66px);
}

.detail-one-line {
    max-width: 800px;
    margin-top: 20px;
    color: rgba(226, 232, 240, 0.9);
    font-size: 20px;
    line-height: 1.8;
}

.detail-meta {
    margin-top: 18px;
}

.player-card {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 34px;
    background: #000000;
}

.player-video {
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.24), rgba(0, 0, 0, 0.62));
}

.player-start span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #ec4899);
    box-shadow: 0 20px 46px rgba(37, 99, 235, 0.5);
    font-size: 30px;
}

.player-start strong {
    font-size: 20px;
}

.player-card.is-playing .player-start {
    display: none;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
    gap: 34px;
    padding: 34px;
    border-radius: 34px;
}

.detail-content article p {
    margin-bottom: 24px;
    font-size: 17px;
}

.detail-content dl {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    margin-top: 18px;
}

.detail-content dt {
    color: #93c5fd;
    font-weight: 900;
}

.detail-content dd {
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
}

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

.site-footer {
    margin-top: 40px;
    padding: 48px 0 24px;
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: #bfdbfe;
    font-weight: 850;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    color: rgba(148, 163, 184, 0.76);
    font-size: 13px;
}

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

    .hero-content {
        grid-template-columns: 1fr 280px;
    }

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

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

    .small-rank,
    .category-grid-large {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .mobile-nav-toggle {
        display: flex;
    }

    .hero-carousel {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 106px;
        gap: 26px;
    }

    .hero-poster {
        height: 320px;
        transform: none;
    }

    .hero-mini-row {
        display: none;
    }

    .hero-controls {
        bottom: 22px;
    }

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

    .section-head,
    .home-search,
    .filter-controls,
    .footer-grid {
        align-items: stretch;
        flex-direction: column;
        display: flex;
    }

    .filter-controls select {
        max-width: none;
    }

    .page-hero {
        padding: 34px 24px;
    }

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

    .detail-cover {
        height: 420px;
    }

    .small-rank,
    .category-grid-large {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .site-header-inner {
        height: 64px;
    }

    .site-logo {
        font-size: 17px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .hero-summary,
    .detail-one-line,
    .page-hero p {
        font-size: 16px;
    }

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

    .rank-item {
        grid-template-columns: 44px 72px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-cover {
        height: 100px;
    }

    .detail-cover {
        height: 380px;
    }
}
