:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --shadow: 0 10px 24px rgba(120, 53, 15, 0.16);
    --shadow-lg: 0 24px 60px rgba(120, 53, 15, 0.25);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-800);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.20), transparent 34rem),
        linear-gradient(180deg, var(--amber-50), #fff7ed 42%, #fff);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.035) 2px, rgba(0, 0, 0, 0.035) 4px);
    opacity: 0.45;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--amber-900), var(--orange-600), var(--amber-900));
    border-bottom: 4px solid var(--orange-500);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.26);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--amber-100);
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--amber-900);
    background: var(--amber-200);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(253, 230, 138, 0.12);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: rotate(12deg) scale(1.04);
}

.brand-text strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: 0.04em;
}

.brand-text em {
    display: block;
    margin-top: 4px;
    color: var(--amber-200);
    font-size: 0.72rem;
    font-style: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

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

.nav-link {
    color: var(--amber-100);
    font-weight: 700;
    opacity: 0.9;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--amber-100);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(253, 230, 138, 0.22);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 8px;
    color: var(--amber-100);
    font-weight: 700;
}

.mobile-nav-link.active {
    color: #fff;
}

.hero-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--stone-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 42px;
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    padding: 64px 0 120px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    isolation: isolate;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    height: 100%;
    background-position: center;
    background-size: cover;
    filter: saturate(1.05);
    transform: translateX(-50%);
}

.hero-copy {
    max-width: 690px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--amber-200);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.hero-copy p {
    max-width: 640px;
    margin: 0 0 24px;
    color: rgba(255, 247, 237, 0.9);
    font-size: 1.08rem;
    line-height: 1.85;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(253, 230, 138, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

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

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

.primary-button {
    color: #fff;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: var(--shadow);
}

.primary-button.small {
    min-height: 40px;
    padding: 0 18px;
    font-size: 0.92rem;
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 8px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--amber-900), var(--orange-600));
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(6px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.hero-search {
    position: absolute;
    right: 50%;
    bottom: 22px;
    z-index: 5;
    width: min(760px, calc(100% - 32px));
    padding: 14px;
    color: #fff;
    background: rgba(28, 25, 23, 0.68);
    border: 1px solid rgba(253, 230, 138, 0.22);
    border-radius: 24px;
    transform: translateX(50%);
    backdrop-filter: blur(12px);
}

.hero-search label {
    display: block;
    margin: 0 0 8px 10px;
    color: var(--amber-200);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-search div {
    display: flex;
    gap: 10px;
}

.hero-search input,
.filter-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    color: var(--stone-900);
    background: #fff;
    border: 1px solid var(--amber-100);
    border-radius: 999px;
    outline: none;
}

.hero-search input:focus,
.filter-search input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.hero-search button {
    min-width: 110px;
    color: #fff;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    border: 0;
    border-radius: 999px;
    font-weight: 800;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.stats-row div {
    padding: 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(180, 83, 9, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.stats-row strong {
    display: block;
    color: var(--amber-700);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1;
}

.stats-row span {
    display: block;
    margin-top: 8px;
    color: var(--stone-600);
    font-weight: 700;
}

.content-section {
    margin-top: 64px;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    line-height: 1.1;
}

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

.section-link {
    color: var(--amber-800);
    background: #fff;
    border: 1px solid var(--amber-200);
    box-shadow: var(--shadow);
}

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

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

.mini-grid {
    gap: 16px;
}

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

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

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

.poster-cover,
.wide-cover {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-900), var(--orange-600));
}

.poster-cover {
    aspect-ratio: 3 / 4;
}

.wide-cover {
    width: 148px;
    flex: 0 0 148px;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
}

.poster-cover img,
.wide-cover img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.cover-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.1em;
}

img.is-hidden-cover {
    display: none;
}

.score-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 4px 9px;
    color: #fff;
    background: var(--amber-600);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 14px;
}

.card-body h3,
.wide-info h3 {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--stone-900);
    font-size: 1rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--amber-700);
    font-size: 0.78rem;
    font-weight: 800;
}

.card-body p,
.wide-info p {
    display: -webkit-box;
    min-height: 3.8em;
    margin: 10px 0;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 0.88rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-line,
.views {
    overflow: hidden;
    color: var(--stone-500);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.views {
    margin-top: 8px;
}

.movie-card-wide a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
}

.wide-info {
    min-width: 0;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--stone-600);
    font-size: 0.82rem;
    font-weight: 700;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 24px;
    color: #fff;
    border-radius: 26px;
    box-shadow: var(--shadow);
    isolation: isolate;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-cover {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.category-tile strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.45rem;
}

.category-tile em {
    display: inline-flex;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-style: normal;
    font-weight: 800;
}

.category-tile p {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

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

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

.ranking-panel,
.info-card,
.notice-card,
.text-card,
.quote-box,
.filter-panel,
.category-overview-block {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(180, 83, 9, 0.12);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.ranking-panel {
    position: sticky;
    top: 94px;
    padding: 24px;
}

.ranking-panel h2 {
    margin: 0;
    color: var(--stone-900);
    font-size: 2rem;
}

.ranking-panel p {
    margin: 8px 0 18px;
    color: var(--stone-600);
}

.ranking-panel ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-panel li a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--amber-50);
    border-radius: 16px;
}

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

.rank-title {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: var(--amber-700);
    font-weight: 900;
}

.page-main {
    padding-top: 34px;
}

.page-hero {
    padding: clamp(34px, 7vw, 72px);
    color: #fff;
    background:
        linear-gradient(120deg, rgba(120, 53, 15, 0.95), rgba(234, 88, 12, 0.82)),
        radial-gradient(circle at right top, rgba(253, 230, 138, 0.55), transparent 22rem);
    border-radius: 34px;
    box-shadow: var(--shadow-lg);
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 247, 237, 0.9);
    font-size: 1.05rem;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 700;
}

.detail-breadcrumb {
    margin-bottom: 18px;
    color: var(--stone-600);
}

.detail-breadcrumb a {
    color: var(--amber-700);
}

.categories-overview {
    display: grid;
    gap: 30px;
    margin-top: 34px;
}

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

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

.category-overview-head h2 {
    margin: 0 0 6px;
    color: var(--stone-900);
    font-size: 2rem;
}

.category-overview-head p {
    margin: 0;
    color: var(--stone-600);
}

.filter-panel {
    margin-top: 30px;
    padding: 24px;
}

.filter-search label {
    display: block;
    margin-bottom: 8px;
    color: var(--stone-700);
    font-weight: 900;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.quick-filters button {
    min-height: 38px;
    padding: 0 14px;
    color: var(--stone-700);
    background: #fff;
    border: 1px solid var(--amber-200);
    border-radius: 999px;
    font-weight: 800;
}

.quick-filters button.active {
    color: #fff;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    border-color: transparent;
}

.filter-count {
    margin: 0 0 20px;
    color: var(--stone-600);
    font-weight: 800;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
}

.hls-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.58));
    border: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    padding-left: 6px;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    border-radius: 50%;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    font-size: 2.4rem;
}

.player-shell.is-playing .player-start {
    opacity: 0;
    visibility: hidden;
}

.player-loading {
    position: absolute;
    left: 18px;
    top: 18px;
    padding: 8px 12px;
    color: var(--amber-100);
    background: rgba(0, 0, 0, 0.58);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
}

.player-shell.is-ready .player-loading,
.player-shell.is-error .player-loading {
    display: none;
}

.player-controls {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 18px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-shell:hover .player-controls,
.player-shell.is-playing .player-controls {
    opacity: 1;
}

.player-controls button {
    min-height: 36px;
    padding: 0 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-weight: 800;
}

.player-controls input {
    accent-color: var(--amber-500);
}

.detail-header {
    margin-top: 26px;
}

.detail-header h1 {
    margin: 0 0 18px;
    color: var(--stone-900);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.12;
}

.detail-header .detail-meta span {
    color: var(--stone-700);
    background: #fff;
    border-color: var(--amber-100);
}

.detail-header .rating-pill {
    color: #fff;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
}

.detail-tags span {
    padding: 7px 12px;
    color: var(--amber-800);
    background: var(--amber-100);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
}

.quote-box,
.text-card {
    padding: 22px;
    margin-top: 20px;
}

.quote-box p {
    margin: 0;
    color: var(--stone-900);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.8;
}

.text-card h2,
.info-card h2,
.notice-card h2 {
    margin: 0 0 14px;
    color: var(--stone-900);
    font-size: 1.35rem;
}

.text-card p,
.notice-card p {
    margin: 0;
    color: var(--stone-700);
    line-height: 1.9;
    text-align: justify;
}

.accent-card {
    background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

.detail-sidebar {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 18px;
}

.info-card,
.notice-card {
    padding: 22px;
}

.info-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.info-card div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--stone-200);
}

.info-card div:last-child {
    border-bottom: 0;
}

.info-card dt {
    color: var(--stone-500);
}

.info-card dd {
    margin: 0;
    color: var(--stone-900);
    font-weight: 800;
    text-align: right;
}

.info-card a {
    color: var(--amber-700);
}

.related-section {
    margin-bottom: 40px;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.ranking-table th,
.ranking-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--stone-200);
    text-align: left;
}

.ranking-table th {
    color: var(--amber-800);
    background: var(--amber-50);
}

.ranking-table a {
    color: var(--stone-900);
    font-weight: 800;
}

.site-footer {
    margin-top: 84px;
    padding: 52px 0 24px;
    color: var(--amber-100);
    background: linear-gradient(90deg, var(--stone-900), var(--amber-900), var(--stone-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--amber-200);
    font-size: 1.1rem;
}

.site-footer p {
    margin: 0;
    color: var(--amber-200);
    line-height: 1.8;
}

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

.site-footer a {
    color: var(--amber-200);
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 22px;
    color: var(--amber-200);
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    font-size: 0.9rem;
}

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

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

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

    .hero-slide,
    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

    .ranking-panel,
    .detail-sidebar {
        position: static;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .hero-section {
        min-height: 680px;
    }

    .hero-slide {
        padding-top: 48px;
        padding-bottom: 150px;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 13vw, 4rem);
    }

    .hero-arrow {
        display: none;
    }

    .hero-search div {
        flex-direction: column;
    }

    .hero-search button {
        min-height: 46px;
    }

    .stats-row,
    .movie-grid,
    .movie-grid-home,
    .mini-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading,
    .category-overview-head,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-hero {
        border-radius: 24px;
    }

    .filter-panel {
        padding: 18px;
    }

    .player-controls {
        grid-template-columns: auto 1fr auto;
    }

    .player-controls [data-player-time],
    .player-controls [data-player-mute] {
        display: none;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .stats-row,
    .movie-grid,
    .movie-grid-home,
    .mini-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-wide a {
        align-items: flex-start;
    }

    .wide-cover {
        width: 116px;
        flex-basis: 116px;
    }

    .hero-meta,
    .detail-meta {
        gap: 6px;
    }

    .hero-meta span,
    .detail-meta span {
        min-height: 30px;
        font-size: 0.82rem;
    }
}
