@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;500;600;700;900&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #3f2606;
    background: #fffbeb;
    font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #78350f 0%, #92400e 45%, #78350f 100%);
    color: #fff7ed;
    box-shadow: 0 18px 40px rgba(120, 53, 15, 0.28);
    border-bottom: 2px solid rgba(245, 158, 11, 0.65);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
    font-size: 30px;
    font-weight: 700;
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #fef3c7);
    color: #78350f;
    box-shadow: 0 12px 26px rgba(251, 191, 36, 0.32);
}

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

.main-nav a,
.quick-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #fde68a;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.quick-nav a:hover {
    color: #78350f;
    background: #fef3c7;
    transform: translateY(-1px);
}

.header-search,
.search-panel form,
.large-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.header-search input,
.search-panel input,
.large-search input {
    width: 230px;
    min-width: 0;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 999px;
    padding: 11px 16px;
    color: #451a03;
    background: rgba(255, 251, 235, 0.96);
    outline: none;
}

.header-search button,
.search-panel button,
.large-search button,
.primary-button,
.text-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: white;
    background: #d97706;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.search-panel button:hover,
.large-search button:hover,
.primary-button:hover,
.text-button:hover {
    background: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(180, 83, 9, 0.24);
}

.menu-button {
    display: none;
    margin-left: auto;
    border: 1px solid rgba(253, 230, 138, 0.45);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    padding: 8px 12px;
    cursor: pointer;
}

.quick-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #451a03;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: center;
    padding: 110px max(32px, calc((100% - 1180px) / 2)) 80px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 38%, rgba(245, 158, 11, 0.22), transparent 28%),
        linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(69, 26, 3, 0.62) 50%, rgba(69, 26, 3, 0.84)),
        linear-gradient(0deg, rgba(69, 26, 3, 0.98), rgba(69, 26, 3, 0.16));
    backdrop-filter: blur(1px);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(217, 119, 6, 0.92);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    color: #fff7ed;
    font-family: "Noto Serif SC", serif;
    font-weight: 900;
    line-height: 1.08;
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(42px, 7vw, 78px);
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.hero p {
    max-width: 720px;
    margin: 24px 0 0;
    color: #fde68a;
    font-size: clamp(18px, 2.2vw, 24px);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

.hero-tags {
    margin: 28px 0;
}

.hero-tags span,
.movie-tags span {
    border-radius: 999px;
    padding: 6px 11px;
    color: #78350f;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.ghost-button,
.more-link {
    border: 1px solid rgba(253, 230, 138, 0.5);
    border-radius: 999px;
    padding: 10px 18px;
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
    backdrop-filter: blur(8px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.ghost-button:hover,
.more-link:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.hero-poster {
    display: block;
    border: 8px solid rgba(253, 230, 138, 0.18);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
    transform: rotate(2deg);
}

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

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

.hero-dots button {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(253, 230, 138, 0.45);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 34px;
    background: #f59e0b;
}

.search-panel {
    width: min(1180px, calc(100% - 32px));
    margin: -52px auto 56px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 28px;
    background: rgba(255, 251, 235, 0.95);
    box-shadow: 0 24px 70px rgba(146, 64, 14, 0.18);
    backdrop-filter: blur(14px);
}

.search-panel h2 {
    margin: 0 0 6px;
    color: #78350f;
    font-family: "Noto Serif SC", serif;
    font-size: 30px;
}

.search-panel p {
    margin: 0;
    color: #92400e;
}

.search-panel input,
.large-search input {
    width: min(430px, 52vw);
    border-color: #f59e0b;
}

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

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

.warm-section {
    width: 100%;
    max-width: none;
    padding: 68px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, #fef3c7, #fffbeb 55%, #ffffff);
}

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

.section-heading h2,
.ranking-head h2,
.detail-article h2,
.side-card h2,
.search-result-head h2 {
    margin: 0;
    color: #78350f;
    font-family: "Noto Serif SC", serif;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.18;
}

.section-heading p,
.page-hero p,
.detail-article p,
.category-card-large p,
.ranking-content p {
    color: #92400e;
}

.section-heading p {
    margin: 8px 0 0;
}

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

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

.catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: 70px;
}

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

.movie-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card-link:hover {
    transform: translateY(-8px);
    border-color: rgba(217, 119, 6, 0.34);
    box-shadow: 0 24px 48px rgba(120, 53, 15, 0.17);
}

.movie-poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #451a03;
}

.movie-poster-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

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

.movie-play-dot {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: rgba(217, 119, 6, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.movie-year {
    position: absolute;
    right: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    color: white;
    background: #d97706;
    font-size: 12px;
    font-weight: 700;
}

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

.movie-card-body strong {
    color: #78350f;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body em,
.rank-row em,
.compact-card em {
    color: #b45309;
    font-style: normal;
    font-size: 13px;
}

.movie-line {
    color: #92400e;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 18px 34px rgba(120, 53, 15, 0.14);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(69, 26, 3, 0.92), rgba(69, 26, 3, 0.18));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 22px;
    right: 22px;
    z-index: 1;
    color: white;
}

.category-tile strong {
    bottom: 58px;
    font-family: "Noto Serif SC", serif;
    font-size: 26px;
}

.category-tile em {
    bottom: 22px;
    color: #fde68a;
    font-style: normal;
    font-size: 14px;
}

.more-link {
    margin-top: 24px;
    color: #78350f;
    background: #fef3c7;
}

.ranking-box,
.side-card,
.detail-article,
.category-card-large,
.ranking-card,
.search-result-head {
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 24px;
    background: white;
    box-shadow: 0 18px 40px rgba(120, 53, 15, 0.08);
}

.ranking-box {
    position: sticky;
    top: 104px;
    padding: 24px;
}

.ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ranking-head h2 {
    font-size: 28px;
}

.ranking-head a {
    color: #d97706;
    font-weight: 700;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 28px 58px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.25s ease;
}

.rank-row:hover {
    background: #fffbeb;
}

.rank-row span {
    grid-row: 1 / span 2;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: #d97706;
    font-weight: 800;
}

.rank-row img {
    grid-row: 1 / span 2;
    width: 58px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-row strong {
    color: #78350f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-main {
    padding: 34px 0 80px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    border-radius: 30px;
    padding: 56px;
    background:
        radial-gradient(circle at 84% 18%, rgba(251, 191, 36, 0.28), transparent 28%),
        linear-gradient(135deg, #78350f, #92400e 55%, #451a03);
    box-shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
}

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

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #fde68a;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: #92400e;
    font-size: 14px;
}

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

.category-list-large {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.category-cover {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.category-cover img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.category-cover span {
    position: absolute;
    inset: auto 12px 12px;
    border-radius: 999px;
    padding: 7px 10px;
    color: #78350f;
    background: #fef3c7;
    text-align: center;
    font-weight: 800;
}

.category-card-large h2 {
    margin: 8px 0 8px;
    color: #78350f;
    font-family: "Noto Serif SC", serif;
    font-size: 28px;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.mini-links a {
    border-radius: 999px;
    padding: 6px 10px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.filter-bar button {
    border: 1px solid rgba(253, 230, 138, 0.5);
    border-radius: 999px;
    padding: 9px 14px;
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.filter-bar button.is-active,
.filter-bar button:hover {
    color: #78350f;
    background: #fef3c7;
}

.empty-state {
    display: none;
    margin: 24px 0 70px;
    padding: 34px;
    border-radius: 20px;
    color: #92400e;
    background: #fff7ed;
    text-align: center;
    font-weight: 700;
}

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 64px 140px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 18px;
}

.ranking-number {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    font-size: 24px;
    font-weight: 900;
}

.ranking-cover img {
    width: 140px;
    height: 180px;
    border-radius: 18px;
    object-fit: cover;
}

.ranking-content h2 {
    margin: 0 0 10px;
    color: #78350f;
    font-family: "Noto Serif SC", serif;
    font-size: 26px;
}

.ranking-content p {
    margin: 0 0 12px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.movie-meta span {
    border-radius: 999px;
    padding: 5px 10px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 700;
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.28);
}

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

.player-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 24px;
    color: white;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.24));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: white;
    background: #d97706;
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.34);
    cursor: pointer;
    font-size: 30px;
}

.player-mask strong {
    font-size: 22px;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
}

.detail-article {
    margin-top: 24px;
    padding: 30px;
}

.detail-article h1 {
    margin: 0 0 14px;
    color: #78350f;
    font-family: "Noto Serif SC", serif;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.15;
}

.detail-article h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 28px;
}

.detail-article p {
    margin: 0 0 12px;
    font-size: 17px;
}

.lead-text {
    padding: 18px 20px;
    border-left: 5px solid #d97706;
    border-radius: 12px;
    background: #fffbeb;
    font-weight: 700;
}

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

.detail-sidebar {
    position: sticky;
    top: 104px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 22px 50px rgba(120, 53, 15, 0.2);
}

.side-card {
    margin-top: 18px;
    padding: 22px;
}

.side-card h2 {
    margin-bottom: 16px;
    font-size: 26px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.25s ease;
}

.compact-card:hover {
    background: #fffbeb;
}

.compact-card img {
    width: 90px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.compact-card strong {
    display: block;
    color: #78350f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.search-page .large-search {
    margin-top: 26px;
}

.search-result-head {
    margin-bottom: 24px;
    padding: 24px;
}

.search-result-head h2 {
    font-size: 28px;
}

.site-footer {
    margin-top: 40px;
    color: #fde68a;
    background: linear-gradient(135deg, #451a03, #78350f);
}

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

.footer-grid p {
    color: #fcd34d;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fffbeb;
    font-size: 20px;
}

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

.footer-links a {
    border-radius: 999px;
    padding: 7px 10px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #451a03;
    background: #fef3c7;
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    color: #fcd34d;
}

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

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 860px) {
    .topbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

    .menu-button {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        order: 4;
    }

    .main-nav.is-open {
        display: flex;
    }

    .header-search {
        width: 100%;
        order: 5;
    }

    .header-search input {
        width: 100%;
        flex: 1;
    }

    .quick-nav {
        padding-top: 4px;
    }

    .hero {
        min-height: 760px;
    }

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

    .hero-poster {
        width: min(260px, 70vw);
        transform: none;
    }

    .search-panel {
        grid-template-columns: 1fr;
        margin-top: -34px;
    }

    .search-panel form,
    .large-search {
        width: 100%;
    }

    .search-panel input,
    .large-search input {
        width: 100%;
        flex: 1;
    }

    .category-list-large,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        grid-template-columns: 48px 96px minmax(0, 1fr);
    }

    .ranking-cover img {
        width: 96px;
        height: 128px;
    }
}

@media (max-width: 620px) {
    .content-section,
    .page-main,
    .topbar,
    .quick-nav,
    .footer-grid,
    .copyright,
    .search-panel {
        width: min(100% - 20px, 1180px);
    }

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

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

    .movie-line {
        display: none;
    }

    .page-hero {
        padding: 36px 22px;
        border-radius: 22px;
    }

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

    .category-cover img {
        height: 210px;
    }

    .detail-article,
    .side-card,
    .ranking-box {
        padding: 20px;
    }

    .compact-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .compact-card img {
        width: 76px;
        height: 56px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 17px;
    }
}
