:root {
    --bg: #fffaf0;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f1e2c9;
    --brand: #d97706;
    --brand-dark: #b45309;
    --brand-soft: #fef3c7;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
    --shadow-soft: 0 10px 30px rgba(120, 53, 15, 0.08);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #fff7ed 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-weight: 800;
    font-size: 22px;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand) 0%, #f59e0b 100%);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.22);
    font-size: 13px;
}

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

.desktop-nav a {
    padding: 9px 13px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 360px;
    max-width: 38vw;
}

.top-search input,
.quick-search-band input,
.filter-field input,
.filter-field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 15px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.88);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.quick-search-band input:focus,
.filter-field input:focus,
.filter-field select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.top-search button,
.quick-search-band button,
.primary-button,
.ghost-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: var(--brand);
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.quick-search-band button:hover,
.primary-button:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(180, 83, 9, 0.22);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 24px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.mobile-panel a {
    padding: 12px;
    border-radius: 12px;
    color: #4b5563;
    background: #fff7ed;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    border-radius: 999px;
    padding: 6px 12px;
    color: #92400e;
    background: var(--brand-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
}

.hero-content h1 {
    width: min(720px, 100%);
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-content p {
    width: min(680px, 100%);
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.meta-row,
.detail-meta-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 28px;
}

.hero-meta span,
.meta-row span,
.detail-meta-grid span {
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 14px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 21px;
    border-radius: 12px;
    font-weight: 800;
}

.primary-button.small {
    min-height: 38px;
    padding: 9px 15px;
    font-size: 14px;
}

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

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.28);
}

.secondary-button.light {
    color: var(--brand-dark);
    border-color: var(--line);
    background: #ffffff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.42);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dots button.is-active {
    width: 32px;
    background: #ffffff;
}

.quick-search-band,
.content-section,
.page-main,
.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-search-band {
    margin-top: -34px;
    position: relative;
    z-index: 8;
}

.quick-search-band form {
    display: grid;
    grid-template-columns: 1.1fr 2fr auto;
    gap: 16px;
    align-items: center;
    padding: 22px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.quick-search-band span {
    display: block;
    margin-bottom: 4px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.quick-search-band strong {
    display: block;
    color: #111827;
    font-size: 18px;
}

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

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

.section-heading h2,
.category-overview-head h2,
.ranking-title h2,
.story-card h2,
.compact-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-heading p,
.category-overview-head p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more,
.text-link {
    color: var(--brand-dark);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a 0%, #fb923c 100%);
}

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

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

.duration,
.play-badge {
    position: absolute;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(8px);
}

.duration {
    right: 10px;
    bottom: 10px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.play-badge {
    left: 50%;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--brand-dark);
}

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

.meta-row {
    gap: 7px;
    color: #6b7280;
    font-size: 13px;
}

.meta-row span {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
}

.rating {
    color: #d97706;
    font-weight: 900;
}

.mini-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mini-tags span,
.tag,
.filter-count {
    border-radius: 999px;
    padding: 5px 9px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 700;
}

.category-section {
    padding: 64px 24px;
    border-radius: 30px;
    background: linear-gradient(135deg, #fff7ed 0%, #ecfdf5 100%);
}

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

.category-tile {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border-radius: 20px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow-soft);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
    opacity: 0.78;
    transform: scale(1.06);
}

.category-tile span,
.category-tile strong {
    position: relative;
    z-index: 2;
    display: block;
    padding: 18px 18px 0;
}

.category-tile span {
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong {
    color: rgba(255, 255, 255, 0.82);
}

.two-column-section {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-title {
    margin-bottom: 14px;
}

.ranking-title span {
    color: var(--brand-dark);
    font-weight: 900;
}

.ranking-panel a {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #f3eadc;
}

.ranking-panel a:last-child {
    border-bottom: 0;
}

.ranking-panel strong {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand);
    font-size: 13px;
}

.ranking-panel span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.ranking-panel em {
    color: var(--brand-dark);
    font-style: normal;
    font-weight: 800;
}

.page-main,
.detail-main {
    padding: 34px 0 72px;
}

.page-hero {
    margin-bottom: 30px;
    padding: 56px;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.52), transparent 32%),
        linear-gradient(135deg, #78350f 0%, #b45309 48%, #f59e0b 100%);
    box-shadow: var(--shadow);
}

.small-hero {
    padding: 46px;
}

.page-hero .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.page-hero p {
    width: min(720px, 100%);
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.centered-actions {
    margin-top: 24px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(130px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 34px;
    padding: 18px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.filter-field label {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-field select {
    border-radius: 14px;
}

.ghost-button {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.ghost-button:hover {
    background: #fde68a;
}

.filter-count {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 0;
}

.category-overview-list {
    display: grid;
    gap: 26px;
}

.category-overview-card {
    padding: 26px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    background: #fef3c7;
}

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

.rank-number {
    position: absolute;
    z-index: 2;
    left: 10px;
    top: 10px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand);
    font-weight: 900;
}

.ranking-card h2 {
    margin: 4px 0 10px;
    font-size: 24px;
}

.ranking-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--brand-dark);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 34px;
    align-items: center;
    padding: 28px;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.55), transparent 35%),
        linear-gradient(135deg, #111827 0%, #78350f 58%, #b45309 100%);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: #fef3c7;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

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

.detail-info .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta-grid span {
    background: rgba(255, 255, 255, 0.14);
}

.detail-meta-grid strong {
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.68);
}

.detail-info .primary-button {
    margin-top: 24px;
}

.player-section,
.detail-content-grid,
.related-section {
    margin-top: 42px;
}

.compact-heading {
    margin-bottom: 18px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.video-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.54));
    cursor: pointer;
}

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

.video-cover span {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 16px 35px rgba(217, 119, 6, 0.32);
    font-size: 28px;
}

.video-cover strong {
    font-size: 20px;
}

.player-message {
    position: absolute;
    left: 16px;
    bottom: 12px;
    margin: 0;
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    font-size: 13px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-card {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.media-list-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
}

.site-footer {
    margin-top: 80px;
    padding: 42px 0 28px;
    color: #f9fafb;
    background: #111827;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
}

.footer-logo {
    color: #ffffff;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 12px;
}

.site-footer a:not(.logo) {
    display: block;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.74);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.is-filter-hidden {
    display: none !important;
}

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

    .desktop-nav {
        margin-right: auto;
    }

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

    .two-column-section,
    .detail-hero,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 520px;
    }

    .ranking-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .nav-shell {
        min-height: 64px;
    }

    .desktop-nav {
        display: none;
    }

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

    .hero-carousel {
        height: 560px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 76px;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-arrow {
        top: auto;
        bottom: 16px;
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .hero-prev {
        left: 16px;
    }

    .hero-next {
        right: 16px;
    }

    .quick-search-band form {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .preview-grid,
    .compact-grid,
    .latest-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .category-section,
    .page-hero,
    .detail-hero,
    .story-card,
    .category-overview-card {
        padding: 22px;
        border-radius: 22px;
    }

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

    .ranking-card {
        grid-template-columns: 112px 1fr;
        gap: 14px;
    }

    .ranking-card h2 {
        font-size: 18px;
    }

    .ranking-card p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

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

@media (max-width: 520px) {
    .movie-grid,
    .preview-grid,
    .compact-grid,
    .latest-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .detail-main,
    .page-main,
    .quick-search-band,
    .content-section {
        width: min(100% - 22px, 1180px);
    }
}
