@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;800&display=swap");

:root {
    --color-primary: #14b8a6;
    --color-primary-dark: #0f766e;
    --color-accent: #06b6d4;
    --color-secondary: #f97316;
    --color-bg: #f9fafb;
    --color-soft: #f3f7f8;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans SC", sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 10px 28px rgba(20, 184, 166, 0.28);
}

.brand-name {
    font-size: 22px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #111827;
    border-radius: 10px;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

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

.mobile-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #374151;
    background: #f9fafb;
}

.mobile-link.active {
    color: var(--color-primary-dark);
    background: #ecfeff;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #111827;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 72px;
    width: min(1280px, calc(100% - 32px));
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-content h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: clamp(18px, 2.1vw, 24px);
}

.hero-labels,
.hero-tags,
.tag-row,
.detail-tags,
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-labels {
    margin-bottom: 18px;
}

.hero-labels span,
.hero-tags span,
.tag-row span,
.detail-tags a,
.filter-tags button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.hero-labels span:nth-child(1),
.card-badge,
.category-count {
    color: #ffffff;
    background: var(--color-secondary);
}

.hero-labels span:nth-child(2),
.card-type {
    color: #ffffff;
    background: var(--color-primary);
}

.hero-labels span:nth-child(3),
.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.28);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.btn-light {
    color: var(--color-primary-dark);
    background: #ecfeff;
}

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

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

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

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

.search-band {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
}

.search-band-inner {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 520px);
    align-items: center;
    gap: 26px;
    padding: 28px 0;
}

.search-band strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
}

.search-band p {
    margin: 0;
    color: var(--color-muted);
}

.quick-search,
.filter-panel {
    display: flex;
    gap: 12px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #ffffff;
    outline: none;
}

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

.quick-search button {
    min-width: 104px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    background: var(--color-primary);
}

.section {
    padding: 72px 0;
}

.bg-white {
    background: #ffffff;
}

.bg-soft {
    background: var(--color-soft);
}

.bg-gradient-panel {
    background: linear-gradient(135deg, #ecfeff, #fff7ed);
}

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

.section-heading h2 {
    display: inline;
    margin: 0 0 0 10px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0 48px;
    color: var(--color-muted);
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.movie-grid,
.featured-grid,
.category-grid,
.rank-grid {
    display: grid;
    gap: 24px;
}

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

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

.featured-grid {
    grid-template-columns: 1.18fr 0.91fr 0.91fr;
}

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

.category-movie-grid {
    margin-top: 28px;
}

.movie-card,
.category-tile,
.category-overview-card,
.detail-info-card,
.side-card,
.section-block,
.player-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.card-cover,
.featured-cover,
.list-cover,
.rank-card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #0f766e);
}

.card-cover,
.rank-card-cover {
    aspect-ratio: 3 / 4;
}

.featured-cover {
    height: 360px;
}

.card-cover img,
.featured-cover img,
.list-cover img,
.rank-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-badge,
.card-type {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    left: 12px;
}

.card-type {
    right: 12px;
}

.play-corner {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(20, 184, 166, 0.92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 600;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #4b5563;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row span,
.detail-tags a,
.filter-tags button {
    color: var(--color-primary-dark);
    background: #ecfeff;
}

.movie-card-list {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: stretch;
}

.list-cover {
    min-height: 190px;
}

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

.category-tile {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.category-tile a {
    display: block;
    min-height: 250px;
    padding: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #ecfeff 52%, #fff7ed 100%);
}

.category-count {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.category-tile h3,
.category-overview-card h2 {
    margin: 18px 0 10px;
    font-size: 24px;
}

.category-tile p,
.category-overview-card p {
    color: var(--color-muted);
}

.category-mini-links {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.rank-panel {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 40px;
    align-items: center;
}

.rank-copy h2 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
}

.rank-copy p {
    margin: 0 0 26px;
    color: #4b5563;
    font-size: 18px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateX(6px);
    background: #ffffff;
}

.rank-number,
.rank-card-number {
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.rank-number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.rank-title {
    font-weight: 800;
}

.rank-meta {
    color: var(--color-muted);
    font-size: 14px;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(20, 184, 166, 0.72), transparent 36%), linear-gradient(135deg, #111827, #0f766e 56%, #06b6d4);
}

.small-hero {
    padding: 82px 0;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--color-accent);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero .eyebrow {
    color: #a7f3d0;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.05em;
}

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

.overview-stack {
    display: grid;
    gap: 28px;
}

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

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.filter-panel {
    flex-wrap: wrap;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.filter-panel input {
    flex: 1 1 320px;
}

.filter-panel select {
    flex: 0 1 210px;
}

.filter-tags {
    width: 100%;
}

.filter-tags button {
    border: 0;
    cursor: pointer;
}

.filter-tags button.active,
.filter-tags button:hover {
    color: #ffffff;
    background: var(--color-primary);
}

.empty-state {
    display: none;
    margin: 30px 0 0;
    padding: 18px;
    border-radius: 16px;
    color: var(--color-muted);
    text-align: center;
    background: #ffffff;
}

.rank-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 28px;
}

.rank-card-cover {
    position: relative;
}

.rank-card-number {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.detail-wrap {
    padding: 34px 0 72px;
}

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

.breadcrumb a {
    color: var(--color-primary-dark);
    font-weight: 700;
}

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card,
.detail-info-card,
.side-card,
.section-block {
    padding: 18px;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    background: #030712;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.player-start span {
    display: inline-block;
    margin-left: 5px;
    font-size: 36px;
}

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

.player-message {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    display: none;
    padding: 10px 14px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
}

.player-message.show {
    display: block;
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.detail-info-card h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 18px 0;
    color: #374151;
    font-size: 20px;
    font-weight: 600;
}

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

.detail-meta div {
    padding: 14px;
    border-radius: 16px;
    background: #f9fafb;
}

.detail-meta dt {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

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

.detail-tags {
    margin-bottom: 28px;
}

.detail-info-card h2,
.section-block h2,
.side-card h2 {
    margin: 26px 0 12px;
    font-size: 25px;
}

.detail-info-card p,
.section-block p {
    color: #374151;
    font-size: 17px;
}

.detail-side {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 18px;
}

.poster-side img {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.side-rank-row {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: #f9fafb;
}

.side-rank-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-secondary);
    font-weight: 800;
}

.side-rank-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-brand {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}

.footer-about p {
    margin: 0;
    color: #9ca3af;
}

.footer-links {
    display: grid;
    gap: 8px;
    align-content: start;
}

.footer-links h3 {
    margin: 0 0 8px;
    color: #ffffff;
}

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

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

.footer-categories h3 {
    grid-column: 1 / -1;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid #1f2937;
    color: #9ca3af;
    text-align: center;
}

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

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

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

    .featured-grid,
    .rank-panel,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
        grid-template-columns: 280px 1fr;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        bottom: 70px;
    }

    .hero-arrow {
        display: none;
    }

    .search-band-inner,
    .footer-inner,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .quick-search,
    .advanced-filter {
        flex-direction: column;
    }

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

    .movie-card-list {
        grid-template-columns: 132px 1fr;
    }

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

    .category-overview-head,
    .detail-title-row {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container,
    .header-inner,
    .footer-inner,
    .mobile-nav {
        width: min(100% - 22px, 1280px);
    }

    .brand-name {
        font-size: 19px;
    }

    .hero {
        height: 520px;
    }

    .hero-content p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .movie-grid,
    .movie-grid.compact,
    .rank-grid,
    .category-grid,
    .mobile-nav {
        grid-template-columns: 1fr;
    }

    .movie-card-list {
        grid-template-columns: 1fr;
    }

    .list-cover {
        aspect-ratio: 16 / 9;
    }

    .section {
        padding: 50px 0;
    }

    .small-hero {
        padding: 60px 0;
    }

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