:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --blue-700: #1d4ed8;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --emerald: #10b981;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 44px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.18);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 45%, #f8fafc 100%);
    line-height: 1.6;
}

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

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.94);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--sky-600);
    letter-spacing: -0.02em;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-700));
    color: var(--white);
    font-size: 15px;
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.32);
}

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

.nav-link,
.nav-drop-button {
    border: 0;
    background: transparent;
    color: var(--gray-700);
    font-weight: 700;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-drop-button:hover {
    color: var(--sky-600);
}

.nav-dropdown {
    position: relative;
}

.nav-drop-panel {
    position: absolute;
    top: 44px;
    left: -18px;
    min-width: 170px;
    padding: 10px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--gray-700);
    font-size: 14px;
}

.nav-drop-panel a:hover {
    background: var(--sky-50);
    color: var(--sky-600);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.nav-search input,
.search-box-large input,
.filter-panel input,
.filter-panel select,
.search-filters input,
.search-filters select {
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--gray-800);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 230px;
    padding: 10px 14px;
}

.nav-search button,
.search-box-large button {
    border: 0;
    border-radius: 999px;
    background: var(--sky-600);
    color: var(--white);
    font-weight: 800;
    padding: 10px 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search input:focus,
.search-box-large input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-filters input:focus,
.search-filters select:focus {
    border-color: var(--sky-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.nav-search button:hover,
.search-box-large button:hover {
    background: var(--sky-700);
    transform: translateY(-1px);
}

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

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

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--sky-50);
    color: var(--gray-700);
    font-weight: 700;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.4s ease;
    display: flex;
    align-items: center;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(0deg, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 760px;
    color: var(--white);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--sky-500);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 900;
}

.hero-content h1,
.hero-content h2 {
    margin: 0;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-content h1 {
    font-size: clamp(42px, 7vw, 78px);
}

.hero-content h2 {
    margin-top: 12px;
    font-size: clamp(30px, 5vw, 56px);
}

.hero-content p:not(.eyebrow) {
    margin: 22px 0 0;
    max-width: 680px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.detail-meta span,
.detail-meta strong,
.card-meta span,
.tag-row span,
.rank-tags span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    padding: 7px 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

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

.hero-actions.center {
    justify-content: center;
}

.primary-button,
.ghost-button,
.text-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    padding: 14px 24px;
    background: var(--white);
    color: var(--sky-700);
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.ghost-button {
    padding: 12px 22px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    color: var(--white);
}

.ghost-button:hover {
    background: var(--white);
    color: var(--sky-700);
}

.ghost-button.light {
    border-color: var(--white);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    right: max(24px, calc((100vw - 1180px) / 2));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-controls button {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.44);
    color: var(--white);
    font-size: 30px;
    line-height: 1;
    backdrop-filter: blur(14px);
}

.hero-thumbs {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.hero-thumb {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.48);
    color: var(--white);
    text-align: left;
    backdrop-filter: blur(16px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
    background: rgba(2, 132, 199, 0.78);
    transform: translateY(-2px);
}

.hero-thumb img {
    width: 54px;
    height: 42px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-thumb span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 800;
    font-size: 13px;
}

.section-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 74px 0;
}

.section-wrap.inner {
    padding: 74px 0;
}

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

.section-band.soft {
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
}

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

.section-heading.centered {
    justify-content: center;
    text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-main h1,
.detail-section h2,
.side-box h2,
.cta-section h2,
.category-overview-card h2 {
    margin: 0;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
}

.section-more,
.text-button {
    color: var(--sky-600);
    font-weight: 900;
}

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

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

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

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

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--slate-900);
}

.movie-cover img,
.rank-image img,
.category-card img,
.category-preview img,
.detail-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover img,
.rank-card:hover .rank-image img,
.category-card:hover img {
    transform: scale(1.08);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.04));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .cover-shade {
    opacity: 1;
}

.play-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.82);
    background: var(--sky-600);
    color: var(--white);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 18px 40px rgba(2, 132, 199, 0.4);
}

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

.year-badge,
.rank-badge {
    position: absolute;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    background: rgba(2, 6, 23, 0.75);
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--amber);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    color: var(--gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body h3 a:hover,
.rank-info h3 a:hover,
.category-overview-card h2 a:hover {
    color: var(--sky-600);
}

.movie-card-body p {
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    justify-content: space-between;
    gap: 6px;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.card-meta span,
.tag-row span,
.detail-tags a,
.rank-tags span {
    padding: 5px 8px;
    background: var(--sky-50);
    color: var(--sky-600);
}

.card-meta span:last-child {
    background: #ecfdf5;
    color: #059669;
}

.tag-row {
    min-height: 24px;
}

.movie-card-compact .movie-card-body p {
    min-height: 0;
}

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

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

.rank-card {
    display: flex;
    gap: 16px;
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-image {
    position: relative;
    width: 180px;
    min-height: 140px;
    flex: 0 0 180px;
    overflow: hidden;
    background: var(--slate-900);
}

.rank-image strong {
    position: absolute;
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--rose);
    box-shadow: 0 10px 22px rgba(244, 63, 94, 0.32);
}

.rank-info {
    padding: 16px 16px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.rank-topline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--sky-600);
    font-size: 12px;
    font-weight: 900;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--gray-900);
}

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

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

.category-card {
    position: relative;
    min-height: 230px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 18px;
    color: var(--white);
    background: var(--slate-900);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card img,
.category-glow {
    position: absolute;
    inset: 0;
}

.category-card img {
    z-index: 1;
}

.category-glow {
    z-index: 2;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 132, 199, 0.16));
}

.category-card strong,
.category-card small {
    position: relative;
    z-index: 3;
}

.category-card strong {
    margin-bottom: 8px;
    font-size: 22px;
}

.category-card small {
    color: #dbeafe;
    line-height: 1.45;
}

.masonry-grid {
    columns: 4 240px;
    column-gap: 22px;
}

.masonry-grid .movie-card {
    break-inside: avoid;
    margin-bottom: 22px;
}

.cta-section {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 82px;
    border-radius: 30px;
    padding: 72px 28px;
    text-align: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-600), var(--blue-700));
    box-shadow: var(--shadow-lg);
}

.cta-section .eyebrow,
.cta-section h2 {
    color: var(--white);
}

.cta-section h2 {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(28px, 4vw, 46px);
}

.page-hero {
    background: linear-gradient(135deg, var(--sky-600), var(--blue-700));
    color: var(--white);
    padding: 76px 0;
}

.page-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(34px, 5vw, 56px);
}

.page-hero p:not(.eyebrow) {
    max-width: 780px;
    margin: 16px 0 0;
    color: #dbeafe;
    font-size: 19px;
}

.ranking-hero {
    background: linear-gradient(135deg, #be123c, #1d4ed8);
}

.search-hero {
    background: linear-gradient(135deg, #0f766e, #0284c7);
}

.category-hero {
    background: linear-gradient(135deg, #0369a1, #4338ca);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.detail-wrap .breadcrumb {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--sky-500);
}

.category-overview-grid {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 26px;
    align-items: center;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.category-preview img {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
}

.category-overview-card h2 {
    font-size: 28px;
}

.category-overview-card p:not(.eyebrow) {
    margin: 12px 0 18px;
    color: var(--gray-600);
}

.filter-panel {
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: end;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.filter-panel label,
.search-filters label {
    display: grid;
    gap: 8px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select,
.search-filters input,
.search-filters select {
    min-width: 160px;
    padding: 11px 14px;
}

.filter-search input {
    width: 100%;
}

.filter-selects {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
}

.search-box-large {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 18px;
}

.search-box-large input {
    padding: 16px 20px;
    font-size: 18px;
}

.search-box-large button {
    padding: 14px 26px;
}

.search-filters {
    margin-bottom: 18px;
}

.search-status {
    margin: 16px 0 24px;
    color: var(--gray-600);
    font-weight: 800;
}

.player-stage {
    background: var(--gray-950);
    padding: 24px 0;
}

.player-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
    transition: opacity 0.25s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: var(--white);
    background: var(--sky-600);
    font-size: 38px;
    box-shadow: 0 22px 50px rgba(2, 132, 199, 0.45);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-overlay:hover span {
    transform: scale(1.07);
    background: var(--sky-700);
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
}

.detail-main,
.side-box {
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.detail-main {
    padding: 28px;
}

.detail-head {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 26px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
}

.detail-head img {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.detail-main h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.detail-one-line {
    margin: 16px 0;
    color: var(--gray-700);
    font-size: 18px;
    font-weight: 800;
}

.detail-meta {
    margin: 16px 0;
}

.detail-meta span,
.detail-meta strong {
    padding: 7px 10px;
    background: var(--sky-50);
    color: var(--sky-600);
}

.detail-meta strong {
    background: #ecfdf5;
    color: #059669;
}

.detail-tags {
    margin-top: 16px;
}

.detail-tags a:hover {
    background: var(--sky-100);
}

.detail-section {
    padding-top: 28px;
}

.detail-section h2,
.side-box h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

.detail-section p {
    margin: 0;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.9;
}

.detail-side {
    min-width: 0;
}

.side-box {
    position: sticky;
    top: 92px;
    padding: 20px;
}

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

.side-list .movie-card {
    box-shadow: none;
    border: 1px solid var(--gray-200);
}

.site-footer {
    margin-top: 70px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #7dd3fc;
    font-size: 18px;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: #cbd5e1;
    font-size: 14px;
}

.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

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

.footer-brand {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 20px;
}

.back-top {
    margin-top: 18px;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--sky-600);
    font-weight: 900;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.is-hidden-card {
    display: none !important;
}

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

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

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

    .side-box {
        position: static;
    }

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

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

    .nav-menu,
    .nav-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-slider {
        min-height: 700px;
    }

    .hero-content {
        padding-bottom: 170px;
    }

    .hero-thumbs {
        grid-template-columns: 1fr;
        bottom: 18px;
    }

    .hero-thumb {
        min-height: 54px;
    }

    .hero-thumb:nth-child(n+4) {
        display: none;
    }

    .hero-controls {
        right: 16px;
    }

    .rank-grid,
    .rank-list,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .category-preview {
        max-width: 420px;
    }

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

    .filter-selects {
        width: 100%;
    }

    .filter-selects label,
    .filter-selects input,
    .filter-selects select {
        width: 100%;
    }

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

    .detail-head img {
        max-width: 300px;
    }
}

@media (max-width: 720px) {
    .brand-name {
        font-size: 20px;
    }

    .hero-slider {
        min-height: 660px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-content h2 {
        font-size: 34px;
    }

    .section-wrap,
    .section-wrap.inner {
        padding: 52px 0;
    }

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

    .movie-grid.five-cols,
    .movie-grid.four-cols,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .rank-card {
        flex-direction: column;
    }

    .rank-image {
        width: 100%;
        flex-basis: auto;
        aspect-ratio: 16 / 9;
    }

    .rank-info {
        padding: 16px;
    }

    .category-card {
        min-height: 210px;
    }

    .search-box-large {
        grid-template-columns: 1fr;
    }

    .player-stage {
        padding: 0;
    }

    .player-shell {
        width: 100%;
        border-radius: 0;
    }

    .detail-main {
        padding: 20px;
    }

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

@media (max-width: 460px) {
    .mobile-panel.is-open {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-bottom: 180px;
    }

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

    .movie-card-body p {
        min-height: 0;
    }

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