:root {
    --bg: #f8fafc;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --indigo: #4f46e5;
    --rose: #f43f5e;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.narrow-container {
    width: min(100% - 32px, 1040px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.header-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
    font-size: 15px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--blue), var(--indigo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

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

.nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    color: #4b5563;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--blue);
    background: #eff6ff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    color: #374151;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
    color: var(--blue);
    background: #f3f4f6;
}

.mobile-menu-button {
    display: none;
}

.search-panel {
    display: none;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(229, 231, 235, 0.75);
}

.search-panel.is-open {
    display: block;
}

.search-mini,
.big-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-mini input,
.big-search input,
.filter-search input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-mini input {
    padding: 12px 14px;
}

.search-mini input:focus,
.big-search input:focus,
.filter-search input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.search-mini button,
.big-search button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--indigo));
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.search-mini button {
    padding: 12px 22px;
}

.mobile-nav {
    display: none;
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(229, 231, 235, 0.8);
    background: #ffffff;
}

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

.mobile-nav-link {
    padding: 13px 16px;
}

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide > img,
.detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.54) 52%, rgba(2, 6, 23, 0.22) 100%);
}

.hero-blur {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 66px;
}

.hero-copy {
    width: min(100%, 760px);
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-badge {
    margin-bottom: 20px;
    padding: 9px 16px;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.22);
    backdrop-filter: blur(12px);
}

.hero-copy h1,
.detail-hero h1,
.page-hero h1,
.search-hero h1 {
    margin: 0;
    color: #ffffff;
    font-weight: 850;
    letter-spacing: -0.055em;
}

.hero-copy h1 {
    font-size: clamp(42px, 7vw, 68px);
    line-height: 0.98;
}

.hero-copy p,
.detail-hero p,
.page-hero p,
.search-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

.hero-copy p {
    margin: 20px 0 0;
    font-size: 20px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

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

.button-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--indigo));
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

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

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

.button-primary.full {
    width: 100%;
    margin-top: 18px;
}

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

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

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

.section {
    padding: 72px 0;
}

.white-section {
    background: #ffffff;
}

.blue-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.split-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

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

.section-kicker {
    margin-bottom: 10px;
    padding: 6px 10px;
    color: var(--blue);
    background: #eff6ff;
    font-size: 12px;
    text-transform: uppercase;
}

.section-kicker.light {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.16);
}

.section-header h2,
.ranking-title h2,
.content-card h2,
.info-panel h2,
.search-title-row h2 {
    margin: 0;
    color: #111827;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.section-header h2 {
    font-size: clamp(30px, 4vw, 42px);
}

.section-header p {
    max-width: 640px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-action,
.toolbar-links a,
.search-title-row a {
    color: var(--blue);
    font-weight: 750;
}

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

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

.movie-card,
.poster-card,
.rank-card,
.related-item,
.ranking-row {
    min-width: 0;
    color: inherit;
}

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
    background: #0f172a;
}

.card-poster img,
.poster-image img,
.rank-thumb img,
.ranking-poster img,
.related-item img,
.category-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .card-poster img,
.poster-card:hover img,
.rank-card:hover img,
.ranking-row:hover img,
.related-item:hover img {
    transform: scale(1.08);
}

.card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.64), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.duration-pill {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

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

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.card-meta span:first-child {
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--indigo));
    font-size: 12px;
    font-weight: 700;
}

.card-meta span:last-child,
.watch-row,
.poster-meta,
.rank-body span,
.ranking-content span,
.related-item em {
    color: var(--muted);
    font-size: 13px;
}

.movie-card strong,
.poster-card strong,
.rank-body strong,
.ranking-content strong,
.related-item strong {
    display: block;
    color: #111827;
    font-weight: 800;
}

.movie-card strong {
    overflow: hidden;
    margin-bottom: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
}

.movie-card em,
.rank-body em,
.ranking-content em {
    display: -webkit-box;
    overflow: hidden;
    color: #4b5563;
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.watch-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.watch-row span:last-child {
    color: var(--blue);
    font-weight: 750;
}

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

.poster-card {
    display: grid;
    gap: 10px;
}

.poster-image {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
    box-shadow: var(--soft-shadow);
}

.poster-title {
    overflow: hidden;
    color: #111827;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 26px;
    color: #ffffff;
    min-height: 250px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card {
    min-height: 310px;
}

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

.tone-red { background: linear-gradient(135deg, #ef4444, #f97316); }
.tone-blue { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.tone-rose { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.tone-indigo { background: linear-gradient(135deg, #4338ca, #2563eb); }
.tone-orange { background: linear-gradient(135deg, #f97316, #f59e0b); }
.tone-purple { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.tone-emerald { background: linear-gradient(135deg, #059669, #14b8a6); }
.tone-amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.tone-cyan { background: linear-gradient(135deg, #0891b2, #2563eb); }
.tone-slate { background: linear-gradient(135deg, #334155, #0f172a); }
.tone-teal { background: linear-gradient(135deg, #0f766e, #2563eb); }
.tone-pink { background: linear-gradient(135deg, #db2777, #7c3aed); }

.category-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    top: -70px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(6px);
}

.category-title {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 26px;
    font-weight: 850;
}

.category-desc {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 10px;
    max-width: 420px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.category-thumbs {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-thumbs.wide {
    grid-template-columns: repeat(6, 1fr);
}

.category-thumbs img {
    height: 70px;
    border-radius: 12px;
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.2);
}

.category-enter {
    position: absolute;
    left: 26px;
    bottom: 112px;
    z-index: 1;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
    align-items: start;
}

.ranking-panel,
.info-panel,
.content-card,
.player-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.ranking-title span {
    color: var(--blue);
    font-weight: 850;
    text-transform: uppercase;
}

.ranking-title h2 {
    margin-top: 4px;
    font-size: 30px;
}

.ranking-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.rank-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
}

.rank-thumb {
    width: 86px;
    height: 58px;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

.rank-body {
    min-width: 0;
}

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

.rank-body em {
    margin: 4px 0;
    font-size: 13px;
    -webkit-line-clamp: 1;
}

.rank-views {
    color: var(--blue);
    font-weight: 850;
    font-size: 13px;
}

.page-hero,
.search-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.page-hero {
    min-height: 270px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.gradient-page-hero {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 28%), linear-gradient(135deg, #2563eb, #4f46e5 62%, #0f172a);
}

.page-hero .container {
    position: relative;
    z-index: 1;
    padding: 42px 0;
}

.page-hero h1,
.search-hero h1 {
    font-size: clamp(38px, 6vw, 58px);
}

.page-hero p,
.search-hero p {
    margin: 14px 0 0;
    font-size: 19px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(17, 24, 39, 0.74);
    font-size: 14px;
}

.breadcrumb.light {
    color: rgba(255, 255, 255, 0.74);
}

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

.breadcrumb.light a:hover {
    color: #ffffff;
}

.toolbar,
.search-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 620px);
}

.filter-search span {
    color: #374151;
    font-weight: 800;
}

.filter-search input {
    padding: 13px 15px;
}

.toolbar-links {
    display: flex;
    gap: 16px;
}

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

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 28px;
    border-radius: 22px;
    color: var(--muted);
    background: #f8fafc;
    text-align: center;
}

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

.ranking-table {
    display: grid;
    gap: 14px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 62px 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid #edf2f7;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--soft-shadow);
}

.ranking-number {
    color: var(--blue);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.ranking-poster {
    height: 78px;
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
}

.ranking-content {
    min-width: 0;
}

.ranking-content strong {
    font-size: 18px;
}

.ranking-content em {
    margin: 5px 0;
    -webkit-line-clamp: 1;
}

.ranking-hot {
    color: var(--rose);
    font-weight: 900;
}

.search-hero {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.search-hero-inner {
    max-width: 880px;
}

.big-search {
    margin-top: 26px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
}

.big-search input {
    min-height: 58px;
    padding: 0 22px;
    border-radius: 999px;
    border-color: transparent;
}

.big-search button {
    min-width: 116px;
    min-height: 54px;
    padding: 0 24px;
}

.detail-hero {
    height: 430px;
    background: #020617;
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 54px;
}

.detail-hero h1 {
    max-width: 900px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.05;
}

.detail-hero p {
    margin: 18px 0 0;
    font-size: 19px;
}

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

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

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

.player-card {
    overflow: hidden;
    padding: 0;
    background: #020617;
}

.player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.24));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    box-shadow: 0 22px 44px rgba(37, 99, 235, 0.36);
    font-size: 32px;
    transform: translateX(2px);
}

.content-card {
    padding: 28px;
}

.content-card h2,
.info-panel h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.content-card p {
    margin: 0 0 14px;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.detail-sidebar {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 20px;
}

.info-panel {
    padding: 24px;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

.info-panel dt {
    color: var(--muted);
}

.info-panel dd {
    margin: 0;
    color: #111827;
    font-weight: 750;
}

.info-panel dd a {
    color: var(--blue);
}

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

.tag-list span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 13px;
    font-weight: 700;
}

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

.related-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-item span {
    grid-row: span 2;
    height: 64px;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

.related-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.related-item em {
    font-style: normal;
}

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 36px;
    padding: 50px 0 36px;
}

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

.footer-brand p {
    max-width: 360px;
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
}

.back-top {
    border: 0;
    color: var(--blue);
    background: transparent;
    cursor: pointer;
    font-weight: 750;
}

.filter-card.is-hidden {
    display: none;
}

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

    .movie-grid.compact,
    .poster-grid,
    .category-grid,
    .category-overview-grid,
    .split-layout,
    .detail-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-slider {
        height: 560px;
    }

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

    .hero-copy h1,
    .detail-hero h1,
    .page-hero h1,
    .search-hero h1 {
        font-size: 38px;
    }

    .hero-copy p,
    .detail-hero p,
    .page-hero p,
    .search-hero p {
        font-size: 16px;
    }

    .section {
        padding: 52px 0;
    }

    .section-header,
    .toolbar,
    .search-title-row,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.compact,
    .all-cards,
    .poster-grid,
    .category-grid,
    .category-overview-grid,
    .split-layout,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-poster {
        height: 220px;
    }

    .category-card,
    .category-overview-card {
        min-height: 280px;
    }

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

    .ranking-row {
        grid-template-columns: 44px 86px minmax(0, 1fr);
    }

    .ranking-hot {
        display: none;
    }

    .ranking-poster {
        height: 62px;
    }

    .big-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .big-search input,
    .big-search button {
        width: 100%;
    }

    .detail-hero {
        height: 470px;
    }

    .play-button {
        width: 72px;
        height: 72px;
    }

    .info-panel dl {
        grid-template-columns: 66px minmax(0, 1fr);
    }
}
