@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap");

:root {
    --primary-50: #ecfeff;
    --primary-100: #ccfbf1;
    --primary-500: #14b8a6;
    --primary-600: #0d9488;
    --primary-700: #0f766e;
    --accent-50: #ecfeff;
    --accent-100: #cffafe;
    --accent-500: #06b6d4;
    --secondary-500: #f97316;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
    --shadow-lg: 0 18px 35px rgba(17, 24, 39, 0.12);
    --shadow-xl: 0 25px 55px rgba(17, 24, 39, 0.18);
    --radius-lg: 18px;
    --radius-xl: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.site-logo__mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    box-shadow: 0 12px 25px rgba(20, 184, 166, 0.24);
}

.site-logo__text {
    font-size: 20px;
    background: linear-gradient(90deg, var(--primary-600), var(--accent-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-logo--footer .site-logo__text {
    color: var(--white);
    background: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    overflow: hidden;
}

.nav-link {
    position: relative;
    padding: 24px 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary-600);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 16px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 24px 18px;
    border-top: 1px solid var(--gray-200);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    color: var(--gray-700);
    border-radius: 12px;
    font-weight: 600;
}

.mobile-nav a:hover {
    background: var(--gray-100);
    color: var(--primary-600);
}

.hero {
    position: relative;
    background: var(--gray-900);
}

.hero-slider {
    position: relative;
    height: 620px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 5s ease;
}

.hero-slide.is-active .hero-slide__image {
    transform: scale(1.1);
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(20, 184, 166, 0.36), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.72) 44%, rgba(17, 24, 39, 0.18) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.08));
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    padding: 110px 24px 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.hero-kicker {
    margin: 0 0 16px;
    color: #99f6e4;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0 0 12px;
    max-width: 830px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.08;
    font-weight: 900;
}

.hero h2 {
    margin: 0 0 16px;
    max-width: 760px;
    font-size: clamp(25px, 3.2vw, 42px);
    line-height: 1.2;
    font-weight: 800;
}

.hero-slide__content > p:not(.hero-kicker) {
    margin: 0;
    max-width: 740px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span,
.meta-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.hero-tags span {
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

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

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
}

.button--ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    font-size: 36px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.05);
}

.hero-arrow--prev {
    left: 24px;
}

.hero-arrow--next {
    right: 24px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--primary-500);
}

.hero-search-panel {
    position: relative;
    z-index: 8;
    max-width: 1180px;
    margin: -70px auto 0;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(16px);
}

.search-bar {
    display: flex;
    gap: 12px;
}

.search-bar input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    outline: none;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.search-bar button {
    min-width: 112px;
    height: 50px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

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

.hero-category-links a,
.filter-select,
.pagination-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--primary-700);
    background: var(--primary-50);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-category-links a:hover,
.pagination-link:hover {
    color: var(--white);
    background: var(--primary-600);
}

.section {
    padding: 76px 24px;
}

.section--white {
    background: var(--white);
}

.section--soft {
    background: var(--gray-50);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--primary-600);
    font-weight: 800;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 900;
}

.section-heading p {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--gray-600);
}

.section-more {
    color: var(--primary-600);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card[hidden] {
    display: none;
}

.movie-card__poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

.movie-card--large .movie-card__poster {
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover .movie-card__poster img {
    transform: scale(1.07);
}

.movie-card__badge,
.movie-card__rank {
    position: absolute;
    z-index: 2;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-card__badge {
    left: 12px;
    background: rgba(17, 24, 39, 0.66);
}

.movie-card__rank {
    right: 12px;
    background: linear-gradient(135deg, var(--secondary-500), #facc15);
}

.movie-card__play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(20, 184, 166, 0.88);
    box-shadow: 0 16px 28px rgba(20, 184, 166, 0.34);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-card__body {
    padding: 18px;
}

.movie-card__meta {
    margin: 0 0 8px;
    color: var(--primary-600);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover {
    color: var(--primary-600);
}

.movie-card__desc {
    margin: 10px 0 14px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row span,
.meta-pills span {
    color: var(--primary-700);
    background: var(--primary-50);
}

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

.category-card {
    position: relative;
    min-height: 205px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    box-shadow: var(--shadow-lg);
}

.category-card::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.category-card span {
    position: relative;
    margin-top: 24px;
    font-weight: 800;
}

.page-hero {
    padding: 78px 24px 44px;
    background:
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.22), transparent 32%),
        linear-gradient(135deg, var(--gray-900), #0f172a 66%, #0f766e);
    color: var(--white);
}

.page-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #99f6e4;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.12;
    font-weight: 900;
}

.page-hero p {
    margin: 0;
    max-width: 820px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.filter-panel input,
.filter-panel select {
    height: 46px;
    min-width: 220px;
    flex: 1;
    padding: 0 14px;
    border: 1px solid var(--gray-200);
    border-radius: 13px;
    outline: none;
    background: var(--white);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--gray-600);
    text-align: center;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 28px;
}

.player-card,
.detail-card,
.side-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--black);
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--black);
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gray-900);
}

.player-overlay.is-hidden {
    display: none;
}

.player-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.player-overlay__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(20, 184, 166, 0.16), transparent 34%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
}

.player-button {
    position: relative;
    z-index: 4;
    min-width: 142px;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    box-shadow: 0 18px 36px rgba(20, 184, 166, 0.35);
}

.detail-card,
.side-card {
    padding: 24px;
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
    font-weight: 900;
}

.detail-card h2,
.side-card h2 {
    margin: 26px 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.detail-card p {
    margin: 0 0 16px;
    color: var(--gray-700);
}

.detail-poster {
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    background: var(--gray-900);
}

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

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    color: var(--gray-700);
}

.info-list dt {
    color: var(--gray-500);
    font-weight: 700;
}

.info-list dd {
    margin: 0;
    font-weight: 700;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.rank-num {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--secondary-500), #facc15);
}

.rank-thumb {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3 / 4;
    background: var(--gray-900);
}

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

.rank-info h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 900;
}

.rank-info p {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.site-footer {
    color: var(--gray-300);
    background: var(--gray-900);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand p {
    max-width: 430px;
    margin: 18px 0 0;
    color: var(--gray-300);
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a:hover {
    color: #5eead4;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    color: var(--gray-500);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
    .site-nav {
        gap: 16px;
        font-size: 14px;
    }

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

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

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

    .mobile-toggle {
        display: flex;
    }

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

    .hero-slider {
        height: 560px;
    }

    .hero-slide__content {
        padding: 94px 24px 170px;
    }

    .hero-search-panel {
        margin: -58px 18px 0;
    }

    .movie-grid,
    .movie-grid--featured,
    .category-grid,
    .footer-grid,
    .detail-layout {
        grid-template-columns: 1fr 1fr;
    }

    .detail-layout {
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .site-header__inner {
        padding: 0 16px;
    }

    .site-logo__text {
        font-size: 18px;
    }

    .hero-slider {
        height: 610px;
    }

    .hero-slide__content {
        padding: 92px 18px 176px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .hero-slide__content > p:not(.hero-kicker) {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        bottom: 100px;
    }

    .hero-search-panel {
        padding: 18px;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar button {
        width: 100%;
    }

    .section {
        padding: 58px 16px;
    }

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

    .movie-grid,
    .movie-grid--featured,
    .category-grid,
    .footer-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        padding: 16px;
    }

    .filter-panel input,
    .filter-panel select {
        min-width: 100%;
    }

    .rank-item {
        grid-template-columns: 36px 64px 1fr;
    }

    .page-hero {
        padding: 58px 16px 36px;
    }
}
