:root {
    --red-950: #450a0a;
    --red-900: #7f1d1d;
    --red-800: #991b1b;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --amber-900: #78350f;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-100: #fef3c7;
    --amber-50: #fffbeb;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(127, 29, 29, 0.14);
    --shadow-card: 0 14px 32px rgba(17, 24, 39, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-900);
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 45%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(254, 242, 242, 0.96), rgba(255, 251, 235, 0.96));
    border-bottom: 4px solid var(--red-900);
    box-shadow: 0 10px 30px rgba(127, 29, 29, 0.12);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red-700), var(--amber-700));
    box-shadow: 0 10px 22px rgba(127, 29, 29, 0.24);
    font-size: 22px;
    font-weight: 900;
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--red-900), var(--amber-900));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    color: var(--gray-600);
    font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
    color: var(--gray-700);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--red-900);
    background: rgba(220, 38, 38, 0.08);
}

.header-search {
    width: 250px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(153, 27, 27, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    overflow: hidden;
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 12px;
}

.header-search button {
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-700), var(--amber-700));
    padding: 10px 16px;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.08);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--red-900);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(153, 27, 27, 0.16);
}

.hero,
.page-hero,
.detail-hero {
    position: relative;
    color: var(--white);
    overflow: hidden;
    background: radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.42), transparent 34%), linear-gradient(135deg, var(--red-950), var(--red-900) 48%, var(--amber-900));
}

.hero {
    min-height: 720px;
    display: flex;
    align-items: center;
}

.hero-background,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.32;
    filter: saturate(1.08) contrast(1.04);
    transition: background-image 0.5s ease, opacity 0.5s ease;
}

.hero-mask,
.detail-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(69, 10, 10, 0.94), rgba(127, 29, 29, 0.76), rgba(120, 53, 15, 0.66));
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.17;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255, 255, 255, 0.16) 51px), repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255, 255, 255, 0.12) 51px);
}

.hero-inner,
.detail-inner,
.page-hero > div {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.hero-kicker,
.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-heading h1,
.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-heading p,
.hero-copy p,
.page-hero p,
.detail-info p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 22px);
}

.hero-slider {
    position: relative;
    min-height: 380px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 40px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

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

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

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

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--red-600), var(--amber-600));
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.28);
}

.button-soft {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.button-light {
    color: var(--red-900);
    background: var(--white);
    box-shadow: 0 12px 28px rgba(69, 10, 10, 0.18);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster span,
.detail-cover span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: var(--red-900);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 900;
}

.hero-dots {
    position: relative;
    z-index: 4;
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.hero-dots button {
    width: 42px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dots button.is-active {
    background: #fde68a;
}

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

.section-raised {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

.section-tint {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1280px) / 2));
    padding-right: max(16px, calc((100% - 1280px) / 2));
    background: linear-gradient(90deg, rgba(254, 242, 242, 0.78), rgba(255, 251, 235, 0.82));
}

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

.section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-head p {
    max-width: 780px;
    margin: 8px 0 0;
    color: var(--gray-600);
}

.section-kicker {
    color: var(--red-900);
    background: #fee2e2;
    border-color: #fecaca;
}

.section-link {
    color: var(--red-900);
    font-weight: 900;
    border-bottom: 3px solid var(--amber-600);
}

.feature-grid,
.movie-grid,
.category-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.feature-card,
.movie-card,
.category-tile,
.content-card,
.side-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.feature-card {
    position: relative;
    min-height: 310px;
    color: var(--white);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.movie-card:hover,
.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(17, 24, 39, 0.18);
}

.feature-card img,
.feature-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.feature-card img {
    object-fit: cover;
    transition: transform 0.45s ease;
}

.feature-card:hover img,
.movie-card:hover .movie-poster img,
.category-tile:hover img {
    transform: scale(1.08);
}

.feature-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.82));
}

.feature-number,
.rank-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red-700), var(--amber-600));
    font-weight: 900;
}

.feature-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    gap: 8px;
    padding: 24px;
}

.feature-content em {
    font-style: normal;
    width: max-content;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(220, 38, 38, 0.86);
    font-size: 12px;
    font-weight: 800;
}

.feature-content strong {
    font-size: 24px;
    line-height: 1.2;
}

.feature-content small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.movie-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5.4;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #fef3c7);
}

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

.movie-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: var(--white);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(153, 27, 27, 0.9);
    font-size: 12px;
    font-weight: 800;
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.28;
}

.movie-card h3 a:hover {
    color: var(--red-800);
}

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

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

.movie-tags span,
.detail-tags span,
.quick-chips button {
    color: var(--red-900);
    border: 1px solid rgba(220, 38, 38, 0.16);
    border-radius: 999px;
    background: rgba(254, 226, 226, 0.72);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

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

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

.category-tile {
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr);
    gap: 18px;
    min-height: 170px;
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 6px;
}

.category-covers img {
    width: 100%;
    height: 126px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.16);
    transition: transform 0.35s ease;
}

.category-covers img:nth-child(2) {
    height: 146px;
}

.category-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.category-text strong {
    color: var(--red-900);
    font-size: 24px;
    line-height: 1.1;
}

.category-text small {
    color: var(--gray-600);
    font-size: 14px;
}

.cta-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: var(--white);
    border-radius: 32px;
    padding: 48px;
    background: linear-gradient(135deg, var(--red-900), var(--amber-900));
    box-shadow: var(--shadow-soft);
}

.cta-section span {
    color: #fde68a;
    font-weight: 900;
}

.cta-section h2 {
    margin: 6px 0 8px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.cta-section p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
}

.page-hero {
    min-height: 340px;
    display: flex;
    align-items: center;
    padding: 76px 0;
}

.small-hero h1 {
    max-width: 850px;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
    border: 1px solid rgba(153, 27, 27, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.filter-panel strong {
    display: block;
    color: var(--red-900);
    font-size: 20px;
    margin-bottom: 4px;
}

.filter-panel span {
    color: var(--gray-600);
    font-size: 14px;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(120px, 0.4fr));
    gap: 10px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    border: 1px solid rgba(153, 27, 27, 0.16);
    outline: 0;
    border-radius: 14px;
    background: var(--white);
    padding: 12px 14px;
}

.filter-card.is-filtered-out {
    display: none;
}

.quick-chips {
    margin-bottom: 26px;
}

.quick-chips button {
    font-size: 13px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 72px 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
    padding: 12px 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.14);
}

.rank-index {
    color: var(--red-900);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-row-main {
    display: grid;
    gap: 4px;
}

.rank-row-main strong {
    font-size: 18px;
}

.rank-row-main small,
.rank-row-genre {
    color: var(--gray-600);
}

.rank-row-genre {
    max-width: 320px;
    text-align: right;
    font-size: 14px;
}

.detail-hero {
    min-height: 590px;
    display: flex;
    align-items: center;
    padding: 62px 0;
}

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

.detail-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5.4;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.detail-info h1 {
    max-width: 900px;
}

.detail-info p {
    max-width: 860px;
}

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

.detail-tags span {
    color: #fde68a;
    border-color: rgba(253, 230, 138, 0.26);
    background: rgba(255, 255, 255, 0.11);
}

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

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

.content-card,
.side-card {
    padding: 28px;
}

.player-card {
    padding: 0;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.68));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red-600), var(--amber-600));
    position: relative;
    box-shadow: 0 16px 36px rgba(220, 38, 38, 0.36);
}

.play-icon::after {
    content: "";
    position: absolute;
    left: 33px;
    top: 24px;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 24px solid var(--white);
}

.player-overlay strong {
    font-size: 20px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--red-900);
    font-size: 26px;
    line-height: 1.2;
}

.content-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 12px;
}

.info-list dt {
    color: var(--gray-500);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: var(--gray-900);
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.prev-next a {
    flex: 1;
    text-align: center;
    color: var(--red-900);
    border-radius: 14px;
    background: #fee2e2;
    padding: 14px;
    font-weight: 900;
}

.detail-side {
    position: sticky;
    top: 110px;
}

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

.side-list .movie-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    border-radius: 16px;
    box-shadow: none;
    border: 1px solid var(--gray-200);
}

.side-list .movie-poster {
    height: 100%;
    aspect-ratio: auto;
}

.side-list .movie-badge,
.side-list .rank-badge,
.side-list .movie-tags,
.side-list .movie-card p {
    display: none;
}

.side-list .movie-card-body {
    padding: 12px;
}

.side-list .movie-card h3 {
    font-size: 15px;
}

.stacked-sections {
    display: grid;
    gap: 64px;
}

.compact-head {
    align-items: start;
}

.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background: linear-gradient(180deg, var(--gray-900), var(--gray-950));
    border-top: 4px solid var(--red-900);
    margin-top: 40px;
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 28px;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 32px;
}

.footer-brand strong {
    color: var(--white);
    font-size: 24px;
}

.footer-brand p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.58);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.footer-links h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

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

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

.footer-links p {
    margin: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 34px;
    padding-top: 22px;
    font-size: 14px;
}

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

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

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

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

    .menu-toggle {
        display: inline-block;
        margin-left: auto;
    }

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

    .hero {
        min-height: 760px;
        padding: 80px 0 56px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .hero-poster {
        width: min(320px, 80vw);
    }

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

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

    .detail-side {
        position: static;
    }

    .detail-cover {
        width: min(320px, 80vw);
    }

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

@media (max-width: 680px) {
    .header-inner {
        min-height: 72px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .hero,
    .page-hero,
    .detail-hero {
        min-height: auto;
    }

    .hero {
        padding: 56px 0 46px;
    }

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

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

    .section {
        padding: 48px 0;
    }

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

    .feature-grid,
    .category-grid,
    .movie-grid,
    .movie-grid-four,
    .footer-links {
        grid-template-columns: 1fr;
    }

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

    .category-covers {
        max-width: 260px;
    }

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

    .rank-row {
        grid-template-columns: 50px 58px minmax(0, 1fr);
    }

    .rank-row img {
        width: 58px;
        height: 78px;
    }

    .rank-row-genre {
        grid-column: 3;
        text-align: left;
        max-width: none;
    }

    .content-card,
    .side-card,
    .cta-section {
        padding: 22px;
    }
}
