* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #030712;
    color: #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    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;
}

button {
    cursor: pointer;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.18), transparent 32rem),
        radial-gradient(circle at 85% 18%, rgba(236, 72, 153, 0.14), transparent 34rem),
        linear-gradient(180deg, #030712 0%, #0b1020 42%, #030712 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.52), transparent 75%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.22);
}

.nav-shell {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #22d3ee, #f472b6, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-size: 14px;
    background: linear-gradient(135deg, #06b6d4, #ec4899);
    box-shadow: 0 0 22px rgba(6, 182, 212, 0.36);
}

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

.nav-link,
.mobile-nav-link {
    color: #d1d5db;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.is-active,
.mobile-nav-link.is-active {
    color: #22d3ee;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.56);
}

.header-search input,
.mobile-search input,
.filter-input,
.search-hero-form input {
    border: 0;
    outline: 0;
    min-width: 220px;
    color: #e5e7eb;
    background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.filter-input::placeholder,
.search-hero-form input::placeholder {
    color: #6b7280;
}

.header-search button,
.mobile-search button,
.search-hero-form button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, #06b6d4, #ec4899);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-hero-form button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.24);
}

.secondary-button {
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid rgba(6, 182, 212, 0.42);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    color: #22d3ee;
    background: transparent;
    font-size: 28px;
}

.mobile-panel {
    display: none;
    padding: 16px 24px 22px;
    border-top: 1px solid rgba(6, 182, 212, 0.22);
    background: rgba(3, 7, 18, 0.96);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 18px;
    background: rgba(31, 41, 55, 0.56);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #030712 0%, rgba(3, 7, 18, 0.76) 45%, rgba(3, 7, 18, 0.08) 100%), linear-gradient(0deg, #030712 0%, transparent 34%);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-copy {
    max-width: 720px;
    padding-top: 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #ec4899);
    box-shadow: 0 0 28px rgba(6, 182, 212, 0.36);
    animation: softPulse 2.5s ease-in-out infinite;
}

.hero h1,
.page-hero h1,
.detail-title {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.06em;
    color: #ffffff;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.hero p {
    max-width: 680px;
    margin: 22px 0 0;
    font-size: 20px;
    color: #e5e7eb;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.46);
}

.hero-meta,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
}

.hero-meta {
    margin: 22px 0 34px;
    gap: 18px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #ffffff;
    font-size: 28px;
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(8px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
    background: rgba(6, 182, 212, 0.42);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: #6b7280;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.main-shell,
.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.page-shell {
    padding-top: 38px;
}

.section-block {
    margin-bottom: 72px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-heading h2,
.section-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

.section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.85), transparent);
}

.section-icon {
    color: #22d3ee;
    font-size: 26px;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(55, 65, 81, 0.82);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.72);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.62);
    box-shadow: 0 24px 70px rgba(6, 182, 212, 0.16);
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 142px 1fr;
    min-height: 170px;
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(31, 41, 55, 0.72);
}

.poster-small {
    height: 100%;
    aspect-ratio: auto;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.92), transparent);
}

.rank-number {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    transition: color 0.25s ease;
}

.movie-title:hover {
    color: #22d3ee;
}

.movie-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 0 0 12px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    margin-top: 10px;
    font-size: 13px;
}

.movie-meta span + span::before,
.detail-meta span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 10px;
    border-radius: 999px;
    background: #4b5563;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span,
.info-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(6, 182, 212, 0.26);
    border-radius: 999px;
    padding: 4px 10px;
    color: #67e8f9;
    font-size: 12px;
    background: rgba(6, 182, 212, 0.12);
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 28px;
    border: 1px solid rgba(55, 65, 81, 0.82);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(236, 72, 153, 0.11)), rgba(17, 24, 39, 0.74);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 72, 153, 0.48);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 20px;
    color: #9ca3af;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-links a {
    color: #22d3ee;
    font-size: 14px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 38px;
    padding: 56px;
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(236, 72, 153, 0.08)), rgba(17, 24, 39, 0.72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.page-hero p {
    max-width: 820px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 18px;
}

.filter-panel,
.search-hero-form {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 28px;
    padding: 14px;
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.68);
}

.filter-input,
.search-hero-form input {
    flex: 1;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.74);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
    color: #9ca3af;
    font-size: 14px;
}

.breadcrumb a {
    color: #22d3ee;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: start;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.76), rgba(3, 7, 18, 0.18));
    z-index: 2;
}

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

.play-icon {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding-left: 6px;
    font-size: 34px;
    background: linear-gradient(135deg, #06b6d4, #ec4899);
    box-shadow: 0 0 42px rgba(6, 182, 212, 0.42);
}

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

.detail-panel {
    border: 1px solid rgba(55, 65, 81, 0.82);
    border-radius: 24px;
    padding: 28px;
    background: rgba(17, 24, 39, 0.74);
}

.detail-title {
    margin-bottom: 18px;
    font-size: clamp(34px, 4vw, 54px);
}

.detail-line {
    margin: 18px 0;
    color: #d1d5db;
    font-size: 18px;
}

.detail-section {
    margin-top: 34px;
    padding: 28px;
    border: 1px solid rgba(55, 65, 81, 0.82);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.62);
}

.detail-section h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 26px;
}

.detail-section p {
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.9;
    text-align: justify;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 76px 92px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(55, 65, 81, 0.82);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.68);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    border-color: rgba(6, 182, 212, 0.52);
}

.ranking-row img {
    width: 92px;
    height: 124px;
    border-radius: 14px;
    object-fit: cover;
}

.ranking-row h2,
.ranking-row h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-row p {
    margin: 0;
    color: #9ca3af;
}

.search-results-note {
    margin: 0 0 24px;
    color: #9ca3af;
}

.empty-state {
    padding: 48px;
    border: 1px solid rgba(55, 65, 81, 0.82);
    border-radius: 22px;
    color: #9ca3af;
    text-align: center;
    background: rgba(17, 24, 39, 0.68);
}

.site-footer {
    border-top: 1px solid rgba(6, 182, 212, 0.18);
    background: rgba(3, 7, 18, 0.94);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 8px 0;
    color: #9ca3af;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 34px;
    color: #6b7280;
    font-size: 14px;
}

@keyframes softPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.38));
    }
    50% {
        filter: drop-shadow(0 0 22px rgba(236, 72, 153, 0.36));
    }
}

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

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

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

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

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

    .hero {
        min-height: 640px;
    }

    .hero-control {
        display: none;
    }

    .grid-6,
    .grid-5,
    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ranking-row {
        grid-template-columns: 54px 72px 1fr;
    }

    .ranking-row .primary-button {
        grid-column: 2 / -1;
        width: max-content;
    }
}

@media (max-width: 640px) {
    .nav-shell {
        height: 64px;
        padding: 0 16px;
    }

    .brand {
        font-size: 20px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .hero {
        height: 78vh;
        min-height: 620px;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-meta {
        gap: 10px;
    }

    .main-shell,
    .page-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-hero {
        padding: 32px 22px;
        border-radius: 22px;
    }

    .grid-6,
    .grid-5,
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 112px 1fr;
    }

    .filter-panel,
    .search-hero-form {
        flex-direction: column;
        align-items: stretch;
    }

    .ranking-row {
        grid-template-columns: 1fr;
    }

    .ranking-row img {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
    }

    .detail-panel,
    .detail-section {
        padding: 22px;
    }
}
