:root {
    --alley-50: #faf9f7;
    --alley-100: #f3f1ed;
    --rain-50: #f8f9fa;
    --rain-100: #e9ecef;
    --rain-200: #dee2e6;
    --rain-300: #ced4da;
    --rain-400: #adb5bd;
    --rain-500: #6c757d;
    --rain-600: #495057;
    --rain-700: #343a40;
    --rain-800: #212529;
    --rain-900: #121416;
    --mist-50: #f0f4f8;
    --mist-100: #d9e2ec;
    --mist-300: #9fb3c8;
    --mist-400: #829ab1;
    --mist-500: #627d98;
    --mist-600: #486581;
    --mist-700: #334e68;
    --mist-800: #243b53;
    --shadow-sm: 0 1px 3px rgba(18, 20, 22, 0.08);
    --shadow-md: 0 10px 25px rgba(18, 20, 22, 0.10);
    --shadow-lg: 0 20px 45px rgba(18, 20, 22, 0.16);
    --radius: 18px;
    --font-serif: Georgia, Cambria, "Times New Roman", "Noto Serif SC", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    background: var(--alley-50);
    color: var(--rain-700);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rain-200);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    fill: var(--mist-600);
    flex: 0 0 auto;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-copy strong,
.footer-logo strong {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--rain-800);
    letter-spacing: 0.02em;
}

.brand-copy small {
    margin-top: 4px;
    font-size: 12px;
    color: var(--rain-500);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a,
.mobile-nav a {
    color: var(--rain-700);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--mist-700);
}

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

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--rain-700);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 10px 20px 18px;
    border-top: 1px solid var(--rain-200);
}

.mobile-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
}

.mobile-nav a.is-active {
    background: var(--mist-50);
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: var(--rain-900);
}

.hero-stage {
    position: relative;
    min-height: 72vh;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 72vh;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 76px;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    transform: translateX(-50%);
    color: #fff;
}

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f8d66d;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-title {
    max-width: 780px;
    margin: 14px 0 16px;
    font-family: var(--font-serif);
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.05;
    color: #fff;
}

.hero-summary {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.hero-meta span,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

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

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

.btn-primary {
    background: #fff;
    color: var(--rain-900);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
}

.btn-primary:hover {
    background: var(--mist-100);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.btn-dark {
    background: var(--mist-600);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-dark:hover {
    background: var(--mist-700);
}

.hero-search {
    display: flex;
    width: min(520px, 100%);
    margin-top: 20px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 0 16px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    border: 0;
    color: var(--rain-900);
    background: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
}

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

.hero-controls button {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
}

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

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

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section,
.page-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 76px 20px;
}

.section.alt,
.full-band {
    max-width: none;
    background: #fff;
}

.full-band .section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.section-header,
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
}

.section-title,
.page-title {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--rain-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
}

.section-desc,
.page-desc {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--rain-600);
    font-size: 17px;
}

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

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

.movie-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 22px;
    scrollbar-width: thin;
}

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    background: var(--rain-100);
}

.movie-grid.compact .poster-frame {
    height: 220px;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card-link:hover .poster-frame img,
.mini-card:hover img,
.ranking-item:hover img,
.channel-card:hover img {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.08) 52%, rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-gradient {
    opacity: 1;
}

.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--rain-900);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.type-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    backdrop-filter: blur(8px);
}

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

.movie-card-body strong {
    display: block;
    color: var(--rain-800);
    font-size: 18px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-line {
    display: -webkit-box;
    margin-top: 8px;
    height: 44px;
    color: var(--rain-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.movie-tags {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    color: var(--rain-500);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta em {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 8px;
    color: var(--mist-700);
    background: var(--mist-50);
    font-style: normal;
    font-weight: 700;
}

.movie-tags {
    display: block;
}

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

.channel-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 26px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--mist-600), var(--mist-800));
    color: #fff;
    box-shadow: var(--shadow-md);
}

.channel-card h2,
.channel-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: 28px;
}

.channel-card p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.channel-preview {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: grid;
    grid-template-columns: repeat(4, 56px);
    gap: 8px;
}

.channel-preview img {
    width: 56px;
    height: 78px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
    transition: transform 0.25s ease;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin: 28px 0 32px;
    padding: 16px;
    border: 1px solid var(--rain-200);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--rain-600);
    font-size: 13px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--rain-200);
    border-radius: 13px;
    padding: 0 14px;
    color: var(--rain-700);
    background: var(--rain-50);
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--mist-500);
    box-shadow: 0 0 0 3px rgba(98, 125, 152, 0.16);
}

.page-hero {
    background: linear-gradient(135deg, var(--mist-600), var(--mist-800));
    color: #fff;
}

.page-hero .page-section {
    padding-top: 62px;
    padding-bottom: 58px;
}

.page-hero .page-title,
.page-hero .page-desc {
    color: #fff;
}

.page-hero .page-desc {
    color: rgba(255, 255, 255, 0.88);
}

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

.ranking-item a {
    display: grid;
    grid-template-columns: 52px 120px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--mist-600);
    font-weight: 900;
}

.rank-thumb {
    display: block;
    width: 120px;
    height: 78px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--rain-100);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.rank-content strong,
.rank-content em,
.rank-content span,
.rank-content p {
    display: block;
}

.rank-content strong {
    color: var(--rain-800);
    font-size: 18px;
}

.rank-content em {
    color: var(--mist-700);
    font-style: normal;
    font-weight: 700;
    font-size: 13px;
}

.rank-content span,
.rank-content p {
    color: var(--rain-500);
    font-size: 13px;
}

.rank-content p {
    margin: 5px 0 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
    box-shadow: var(--shadow-lg);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    overflow: hidden;
    color: #fff;
    background: #000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--rain-900);
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.34);
}

.info-card,
.review-card,
.sidebar-card {
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.info-card,
.review-card {
    padding: 26px;
}

.info-card h1 {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    color: var(--rain-800);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.18;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--rain-600);
}

.detail-meta span,
.tag-list span {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--mist-50);
    color: var(--mist-700);
    font-size: 13px;
    font-weight: 700;
}

.info-block {
    border-top: 1px solid var(--rain-200);
    padding-top: 20px;
    margin-top: 20px;
}

.info-block h2,
.review-card h2,
.sidebar-card h2 {
    margin: 0 0 12px;
    color: var(--rain-800);
    font-size: 20px;
}

.info-block p,
.review-card p {
    margin: 0;
    color: var(--rain-700);
    text-align: justify;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-card {
    background: linear-gradient(135deg, var(--mist-50), var(--alley-100));
}

.sidebar-card {
    position: sticky;
    top: 98px;
    padding: 20px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: center;
}

.mini-thumb {
    position: relative;
    width: 112px;
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--rain-100);
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.mini-thumb em {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 2px 6px;
    border-radius: 6px;
    color: #fff;
    background: rgba(0, 0, 0, 0.66);
    font-size: 11px;
    font-style: normal;
}

.mini-info strong {
    display: -webkit-box;
    color: var(--rain-800);
    font-size: 14px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-info small {
    display: block;
    margin-top: 5px;
    color: var(--rain-500);
}

.no-results {
    display: none;
    margin: 30px 0 0;
    padding: 28px;
    border-radius: var(--radius);
    color: var(--rain-600);
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.no-results.is-visible {
    display: block;
}

.site-footer {
    margin-top: 70px;
    color: var(--rain-100);
    background: var(--rain-800);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-logo .brand-mark {
    fill: var(--mist-300);
}

.footer-logo strong,
.site-footer h2 {
    color: #fff;
}

.footer-brand p,
.site-footer a,
.footer-bottom {
    color: var(--rain-300);
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: var(--mist-300);
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

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

    .menu-toggle {
        display: inline-flex;
    }

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

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

    .channel-grid,
    .ranking-list,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .header-inner {
        min-height: 66px;
    }

    .brand-copy strong {
        font-size: 20px;
    }

    .brand-copy small {
        display: none;
    }

    .hero,
    .hero-stage,
    .hero-slide img {
        min-height: 680px;
    }

    .hero-content {
        bottom: 86px;
    }

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

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

    .hero-search {
        border-radius: 22px;
        align-items: stretch;
    }

    .hero-search button {
        padding: 10px 14px;
    }

    .section,
    .page-section {
        padding: 54px 16px;
    }

    .section-header,
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .poster-frame,
    .movie-grid.compact .poster-frame {
        height: 360px;
    }

    .ranking-item a {
        grid-template-columns: 42px 94px 1fr;
        gap: 11px;
    }

    .rank-thumb {
        width: 94px;
        height: 68px;
    }

    .rank-content p,
    .rank-content em {
        display: none;
    }

    .mini-card {
        grid-template-columns: 96px 1fr;
    }

    .mini-thumb {
        width: 96px;
        height: 64px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
