:root {
    color-scheme: light;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #ecfeff;
    --text: #0f172a;
    --text-muted: #64748b;
    --line: #e2e8f0;
    --emerald: #10b981;
    --emerald-dark: #059669;
    --cyan: #06b6d4;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --violet: #8b5cf6;
    --orange: #f97316;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.09);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.97), rgba(15, 23, 42, 0.97));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(18px);
}

.site-nav {
    display: flex;
    align-items: center;
    min-height: 68px;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #34d399, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-logo-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.28);
}

.site-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 18px;
    font-size: 14px;
    font-weight: 700;
}

.site-nav-links a,
.mobile-menu a {
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav-links a:hover,
.mobile-menu a:hover {
    color: #34d399;
    transform: translateY(-1px);
}

.site-search-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.site-search-mini input {
    width: 150px;
    color: #ffffff;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 8px 10px;
}

.site-search-mini input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.site-search-mini button {
    border: 0;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--emerald);
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu.is-open {
    display: grid;
    gap: 12px;
}

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

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 18%, rgba(34, 211, 238, 0.22), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.74), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 72vh;
    padding: 88px 0 120px;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--emerald);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    color: #34d399;
    font-size: clamp(26px, 3.5vw, 46px);
    line-height: 1.15;
}

.hero-copy p,
.page-hero p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(226, 232, 240, 0.9);
    font-size: 19px;
}

.hero-tags,
.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #065f46;
    background: #d1fae5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.button {
    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;
}

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

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 16px 28px rgba(16, 185, 129, 0.25);
}

.button-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 86px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

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

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

.hero-search {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
}

.hero-search form {
    display: flex;
    width: min(680px, 100%);
    padding: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(14px);
}

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

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

.hero-search button {
    color: #ffffff;
    background: var(--emerald);
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
}

.content-section {
    padding: 72px 0;
}

.section-soft {
    background: linear-gradient(135deg, #ecfdf5, #ecfeff);
}

.section-dark {
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.18), transparent 28%),
        linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

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

.section-heading h2,
.ranking-layout h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p,
.ranking-layout p {
    margin: 10px 0 0;
    color: var(--text-muted);
}

.section-dark .section-heading p,
.section-dark .ranking-layout p {
    color: rgba(226, 232, 240, 0.78);
}

.section-link {
    min-width: max-content;
    color: var(--emerald-dark);
    font-weight: 800;
}

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

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

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

.movie-card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow: var(--shadow);
}

.movie-card a {
    display: block;
    height: 100%;
}

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

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

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

.play-mark {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: rgba(16, 185, 129, 0.88);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.9);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.movie-info {
    padding: 16px;
}

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-meta-row span {
    display: inline-flex;
    align-items: center;
}

.movie-meta-row span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 8px;
    background: #cbd5e1;
    border-radius: 50%;
}

.movie-info h3 {
    display: -webkit-box;
    min-height: 54px;
    margin: 8px 0;
    overflow: hidden;
    color: var(--text);
    font-size: 18px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-info p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-featured .movie-info h3 {
    font-size: 22px;
}

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

.category-preview,
.category-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.category-preview-emerald,
.category-card-emerald {
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.category-preview-cyan,
.category-card-cyan {
    background: linear-gradient(135deg, #ecfeff, #ffffff);
}

.category-preview-amber,
.category-card-amber {
    background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.category-preview-rose,
.category-card-rose {
    background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.category-preview-violet,
.category-card-violet {
    background: linear-gradient(135deg, #f5f3ff, #ffffff);
}

.category-preview-orange,
.category-card-orange {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.category-preview-top,
.category-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.category-preview-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.category-preview h3,
.category-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.category-preview p,
.category-card p {
    margin: 0;
    color: var(--text-muted);
}

.category-preview a,
.category-card a {
    color: var(--emerald-dark);
    font-weight: 800;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

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

.ranking-list a {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto 46px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.ranking-number {
    color: #34d399;
    font-weight: 900;
}

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

.ranking-meta {
    color: rgba(226, 232, 240, 0.72);
    font-size: 13px;
}

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

.page-main {
    min-height: 70vh;
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 0%, rgba(34, 211, 238, 0.26), transparent 28%),
        linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.page-hero .container {
    padding: 72px 0;
}

.compact-hero .container {
    padding: 72px 0 62px;
}

.page-hero h1 {
    max-width: 780px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.category-hero-emerald {
    background: linear-gradient(135deg, #064e3b, #0f172a);
}

.category-hero-cyan {
    background: linear-gradient(135deg, #164e63, #0f172a);
}

.category-hero-amber {
    background: linear-gradient(135deg, #78350f, #0f172a);
}

.category-hero-rose {
    background: linear-gradient(135deg, #881337, #0f172a);
}

.category-hero-violet {
    background: linear-gradient(135deg, #4c1d95, #0f172a);
}

.category-hero-orange {
    background: linear-gradient(135deg, #7c2d12, #0f172a);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 700;
}

.detail-main .breadcrumb {
    color: var(--text-muted);
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.wide-filter {
    grid-template-columns: minmax(260px, 1fr) 220px 180px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    color: var(--text);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.empty-state {
    padding: 44px;
    text-align: center;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
}

.category-listing {
    display: grid;
    gap: 28px;
    padding: 70px 0;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    padding: 42px 0 0;
}

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

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

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

.player-play-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
    border: 0;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-play-button span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    padding-left: 5px;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.88);
    border: 3px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    font-size: 36px;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.28);
}

.player-play-button strong {
    font-size: 18px;
}

.player-shell.is-playing .player-play-button,
.player-play-button[hidden] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 12px;
    margin: 0;
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(2, 6, 23, 0.48);
    border-radius: 999px;
    font-size: 12px;
    pointer-events: none;
}

.detail-card,
.side-card {
    margin-top: 24px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.detail-section {
    padding: 22px 0 0;
}

.detail-section h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.detail-section p {
    margin: 0;
    color: #334155;
    white-space: pre-line;
}

.highlight-quote p {
    padding: 14px 18px;
    color: #064e3b;
    background: #ecfdf5;
    border-left: 5px solid var(--emerald);
    border-radius: 0 12px 12px 0;
    font-size: 18px;
    font-weight: 700;
}

.review-box {
    margin-top: 22px;
    padding: 22px;
    background: linear-gradient(135deg, #ecfdf5, #ecfeff);
    border-radius: 18px;
}

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

.poster-card {
    margin-top: 42px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--slate-900);
    border-radius: 16px;
}

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

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

.side-related-list a {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.side-related-list a:hover {
    background: #f1f5f9;
}

.side-related-list img {
    width: 86px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--slate-900);
    border-radius: 10px;
}

.side-related-list span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.ranking-card a {
    display: grid;
    grid-template-columns: 72px 150px minmax(0, 1fr) 68px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-card-number {
    color: var(--emerald-dark);
    font-size: 22px;
    font-weight: 900;
}

.ranking-card img {
    width: 150px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--slate-900);
    border-radius: 12px;
}

.ranking-card h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-card p {
    margin: 0 0 10px;
    color: var(--text-muted);
}

.ranking-card strong {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    border-radius: 50%;
    font-size: 20px;
}

.site-footer {
    margin-top: 90px;
    color: rgba(226, 232, 240, 0.84);
    background: linear-gradient(180deg, var(--slate-900), #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px 260px;
    gap: 40px;
    padding: 52px 0;
}

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

.footer-brand p {
    max-width: 520px;
    margin: 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 16px;
}

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

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

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

[hidden],
.movie-card.is-hidden,
.ranking-card.is-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .site-nav-links,
    .site-search-mini {
        display: none;
    }

    .site-nav {
        justify-content: space-between;
    }

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

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

    .detail-layout,
    .ranking-layout,
    .category-card {
        grid-template-columns: 1fr;
    }

    .poster-card {
        margin-top: 0;
    }
}

@media (max-width: 820px) {
    .hero,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        align-items: start;
        padding-top: 110px;
    }

    .hero-search {
        bottom: 24px;
    }

    .hero-search form {
        border-radius: 22px;
        flex-direction: column;
    }

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

    .section-heading,
    .category-preview-top {
        align-items: start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-list-strip,
    .featured-grid,
    .compact-grid,
    .category-card-movies {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ranking-card a {
        grid-template-columns: 56px 108px minmax(0, 1fr);
    }

    .ranking-card strong {
        grid-column: 1 / -1;
        width: auto;
        height: 42px;
        border-radius: 999px;
    }

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

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

    .site-logo {
        font-size: 18px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-copy h2 {
        font-size: 26px;
    }

    .movie-grid,
    .movie-list-strip,
    .featured-grid,
    .compact-grid,
    .category-card-movies {
        grid-template-columns: 1fr;
    }

    .category-preview,
    .category-card,
    .detail-card,
    .side-card {
        padding: 20px;
        border-radius: 20px;
    }

    .ranking-list a {
        grid-template-columns: 40px minmax(0, 1fr) 42px;
    }

    .ranking-meta {
        display: none;
    }

    .ranking-card a {
        grid-template-columns: 1fr;
    }

    .ranking-card img {
        width: 100%;
    }

    .player-play-button span {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
