:root {
    --blue: #2563eb;
    --blue-dark: #1e40af;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --red: #dc2626;
    --orange: #f97316;
    --ink: #111827;
    --muted: #6b7280;
    --light: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f3f6fb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    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, #2563eb, #1d4ed8 48%, #0891b2);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--blue);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    font-size: 20px;
    white-space: nowrap;
}

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

.nav-link {
    padding: 9px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.nav-link-sub {
    font-size: 13px;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-input {
    min-width: 0;
    border: 0;
    outline: 0;
}

.header-search input {
    width: 188px;
    padding: 8px 12px;
    color: #ffffff;
    background: transparent;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.header-search button,
.mobile-search button,
.big-search button {
    border: 0;
    color: var(--blue-dark);
    background: #ffffff;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.header-search button {
    padding: 8px 14px;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 14px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

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

.mobile-nav nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-search {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    flex: 1;
    padding: 10px 12px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.mobile-search button {
    padding: 10px 16px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.42), transparent 28%), linear-gradient(135deg, #0f172a, #1d4ed8 48%, #0891b2);
}

.hero-container {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 68px 0 60px;
    z-index: 2;
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.58;
}

.hero-glow-one {
    top: -80px;
    left: 10%;
    background: rgba(59, 130, 246, 0.55);
}

.hero-glow-two {
    right: 5%;
    bottom: -120px;
    background: rgba(20, 184, 166, 0.45);
}

.hero-slides {
    position: relative;
    width: 100%;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: 52px;
    align-items: center;
}

.hero-slide.is-active {
    display: grid;
    animation: heroFade 0.6s ease both;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-kicker,
.page-hero span,
.section-heading span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 780px;
    margin: 18px 0 10px;
    font-size: clamp(34px, 5.6vw, 64px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy h2 + p,
.hero-copy h1 + h2 + p {
    margin-top: 18px;
}

.hero-copy h1 + h2 {
    margin-top: 10px;
    font-size: clamp(26px, 3vw, 42px);
    color: #e0f2fe;
}

.hero-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-tags {
    margin: 24px 0 26px;
}

.hero-tags span,
.tag-row span,
.genre-row span,
.detail-tags a,
.tag-row-links a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    padding: 7px 12px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.btn-primary {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    display: block;
    isolation: isolate;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    transform: rotate(1.5deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 55%);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    left: 0;
    bottom: 28px;
    display: flex;
    gap: 10px;
}

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

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

.search-strip {
    margin-top: -34px;
    position: relative;
    z-index: 4;
}

.search-strip-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-strip h2 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 900;
}

.search-strip p {
    margin: 0;
    color: var(--muted);
}

.big-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
}

.big-search input {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
}

.big-search button {
    padding: 12px 22px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.section-block {
    padding: 68px 0;
}

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

.section-dark {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #020617);
}

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

.section-heading h2 {
    margin: 9px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    font-weight: 900;
}

.section-heading span {
    color: var(--blue);
    background: #dbeafe;
    border-color: #bfdbfe;
}

.section-heading a {
    color: var(--blue);
    font-weight: 800;
}

.section-heading-dark span {
    color: #cffafe;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.section-heading-dark a {
    color: #67e8f9;
}

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

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

.movie-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.poster-frame img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.06);
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 52%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .poster-frame::after {
    opacity: 1;
}

.poster-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-year {
    right: 10px;
    background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
    left: 10px;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.poster-play {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 3;
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    font-size: 12px;
    font-weight: 800;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

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

.movie-card h3,
.wide-body h2 {
    margin: 8px 0 7px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card p,
.wide-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-card p {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    margin-top: auto;
    padding-top: 12px;
}

.tag-row span,
.tag-row-links a {
    padding: 4px 7px;
    color: var(--blue);
    background: #eff6ff;
}

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

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

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

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

.category-thumbs,
.category-overview-thumbs {
    display: grid;
    gap: 6px;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.category-thumbs {
    grid-template-columns: repeat(4, 1fr);
    padding: 8px;
}

.category-thumbs img,
.category-overview-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.category-card > div:last-child {
    padding: 16px;
}

.category-card h3,
.category-overview-body h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.category-card p,
.category-overview-body p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.category-overview-thumbs {
    grid-template-columns: repeat(6, 1fr);
    padding: 10px;
}

.category-overview-body {
    padding: 20px;
}

.category-overview-body span {
    display: inline-flex;
    margin-top: 16px;
    color: var(--blue);
    font-weight: 800;
}

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

.wide-card {
    display: grid;
    grid-template-columns: auto 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.wide-list-dark .wide-card {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.wide-list-dark .wide-body h2,
.wide-list-dark .movie-meta-line,
.wide-list-dark .wide-body p {
    color: #ffffff;
}

.wide-rank {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-weight: 900;
}

.wide-poster img {
    width: 112px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.wide-body h2 {
    font-size: 20px;
}

.page-hero {
    color: #ffffff;
    padding: 70px 0;
}

.page-hero-blue,
.page-hero-category {
    background: radial-gradient(circle at 12% 20%, rgba(125, 211, 252, 0.35), transparent 26%), linear-gradient(135deg, #1e3a8a, #0e7490);
}

.page-hero-red {
    background: radial-gradient(circle at 78% 20%, rgba(251, 146, 60, 0.38), transparent 24%), linear-gradient(135deg, #991b1b, #ea580c);
}

.page-hero h1 {
    max-width: 900px;
    margin: 14px 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
    font-weight: 900;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    border: 1px solid var(--line);
    padding: 8px 13px;
    border-radius: 999px;
    color: #374151;
    background: #ffffff;
    cursor: pointer;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    color: #ffffff;
    border-color: var(--blue);
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.empty-state {
    display: none;
    padding: 36px;
    color: var(--muted);
    text-align: center;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

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

.ranking-side {
    position: sticky;
    top: 88px;
    align-self: start;
    padding: 20px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-side h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 900;
}

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

.movie-card-compact .movie-card-body {
    padding: 10px;
}

.movie-card-compact h3 {
    font-size: 14px;
}

.movie-card-compact p,
.movie-card-compact .tag-row {
    display: none;
}

.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at 12% 16%, rgba(34, 211, 238, 0.38), transparent 24%), linear-gradient(135deg, #0f172a, #1d4ed8 56%, #0e7490);
    padding: 50px 0 64px;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    align-items: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

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

.detail-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 900;
}

.detail-copy p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

.detail-poster {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

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

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 12px;
    width: 100%;
    color: #ffffff;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
    pointer-events: none;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 6px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-size: 32px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    transition: transform 0.22s ease;
}

.player-cover:hover .play-circle {
    transform: scale(1.08);
}

.play-label {
    font-size: 16px;
    font-weight: 900;
}

.detail-article,
.info-card {
    margin-top: 22px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-article h2,
.info-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.genre-row {
    margin-top: 24px;
}

.genre-row span {
    padding: 6px 10px;
    color: #0f766e;
    background: #ccfbf1;
}

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

.detail-tags a {
    padding: 6px 10px;
    color: var(--blue);
    background: #eff6ff;
}

.info-card {
    position: sticky;
    top: 88px;
    margin-top: 0;
}

.info-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

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

.info-card dd {
    margin: 0;
    font-weight: 800;
}

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

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 34px;
    padding: 48px 0;
}

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

.site-footer p {
    margin: 0;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #67e8f9;
}

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

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .header-search {
        margin-left: auto;
    }

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

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

@media (max-width: 860px) {
    .header-search {
        display: none;
    }

    .hero-container {
        min-height: auto;
        padding: 48px 0 70px;
    }

    .hero-slide,
    .search-strip-inner,
    .detail-hero-grid,
    .detail-layout,
    .ranking-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster {
        max-width: 360px;
        margin: 0 auto;
    }

    .search-strip {
        margin-top: 0;
    }

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

    .ranking-side,
    .info-card {
        position: static;
    }
}

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

    .brand-text {
        font-size: 17px;
    }

    .hero-copy h1,
    .hero-copy h2,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .section-block {
        padding: 44px 0;
    }

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

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

    .category-grid,
    .category-overview-grid,
    .side-grid {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-template-columns: 52px 86px minmax(0, 1fr);
        gap: 12px;
    }

    .wide-poster img {
        width: 86px;
    }

    .wide-body p,
    .wide-body .tag-row {
        display: none;
    }

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

    .big-search button {
        border-radius: 14px;
    }
}
