html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #20120a;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 202, 118, 0.35), transparent 32rem),
        radial-gradient(circle at 92% 6%, rgba(255, 135, 77, 0.24), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #fffaf4 42%, #fff7ed 100%);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    min-height: 100vh;
}

body.is-nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.82);
    border-bottom: 1px solid rgba(146, 64, 14, 0.12);
    backdrop-filter: blur(18px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #7c2d12;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff7ed;
    background: linear-gradient(135deg, #f59e0b, #ea580c 58%, #7c2d12);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.32);
}

.logo-text {
    font-size: 20px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #78350f;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff7ed;
    background: linear-gradient(135deg, #d97706, #ea580c);
    transform: translateY(-1px);
}

.header-search {
    width: 300px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(146, 64, 14, 0.16);
    background: rgba(255, 255, 255, 0.74);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.07);
}

.header-search input {
    width: 100%;
    padding: 11px 6px 11px 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #431407;
}

.header-search button {
    border: 0;
    padding: 10px 16px;
    color: #fff7ed;
    background: #c2410c;
    cursor: pointer;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 13px;
    background: rgba(254, 215, 170, 0.62);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #7c2d12;
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    width: min(1220px, calc(100% - 32px));
    margin: 30px auto 0;
    min-height: 620px;
    border-radius: 36px;
    overflow: hidden;
    background: #431407;
    box-shadow: 0 34px 80px rgba(67, 20, 7, 0.28);
}

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    filter: saturate(1.18) contrast(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 36%, rgba(251, 146, 60, 0.36), transparent 24rem),
        linear-gradient(90deg, rgba(32, 18, 10, 0.94) 0%, rgba(67, 20, 7, 0.78) 45%, rgba(67, 20, 7, 0.32) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    gap: 48px;
    align-items: center;
    padding: 72px;
}

.hero-copy {
    color: #fff7ed;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: rgba(254, 215, 170, 0.86);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-copy .eyebrow {
    color: #ffedd5;
    background: rgba(251, 146, 60, 0.22);
    border: 1px solid rgba(254, 215, 170, 0.32);
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 237, 213, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffedd5;
    background: rgba(255, 247, 237, 0.13);
    border: 1px solid rgba(255, 237, 213, 0.18);
}

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

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

.btn-primary,
.btn-ghost,
.btn-small,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    min-height: 48px;
    padding: 0 24px;
    color: #fff7ed;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.35);
}

.btn-ghost {
    min-height: 48px;
    padding: 0 22px;
    color: #ffedd5;
    border: 1px solid rgba(255, 237, 213, 0.36);
    background: rgba(255, 247, 237, 0.08);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-small:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4.15;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 237, 213, 0.32);
    border-radius: inherit;
}

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

.hero-control {
    position: absolute;
    z-index: 4;
    left: 72px;
    right: 72px;
    bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-arrow,
.hero-dot {
    pointer-events: auto;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 237, 213, 0.28);
    border-radius: 50%;
    color: #ffedd5;
    background: rgba(255, 247, 237, 0.1);
    font-size: 26px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 237, 213, 0.38);
}

.hero-dot.active {
    width: 30px;
    background: #fed7aa;
}

.home-search-section,
.section-block,
.page-hero,
.player-section {
    width: min(1220px, calc(100% - 32px));
    margin: 34px auto 0;
}

.home-search-section,
.page-hero {
    padding: 42px;
    border: 1px solid rgba(146, 64, 14, 0.12);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 20px 52px rgba(120, 53, 15, 0.08);
}

.centered {
    text-align: center;
    align-items: center;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.content-card h2,
.player-section h2 {
    margin: 10px 0 0;
    color: #431407;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.page-hero p,
.home-search-section p {
    color: #7c2d12;
    line-height: 1.8;
}

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

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

.big-search {
    width: min(760px, 100%);
    margin: 26px auto 0;
    display: flex;
    border: 1px solid rgba(146, 64, 14, 0.16);
    background: #fffaf4;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(120, 53, 15, 0.1);
}

.big-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 18px 22px;
    color: #431407;
    background: transparent;
}

.big-search button {
    border: 0;
    padding: 0 28px;
    color: #fff7ed;
    background: linear-gradient(135deg, #d97706, #ea580c);
    font-weight: 900;
    cursor: pointer;
}

.text-link {
    color: #c2410c;
    font-weight: 900;
}

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

.channel-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 24px;
    background: #431407;
    color: #fff7ed;
    box-shadow: 0 18px 38px rgba(120, 53, 15, 0.14);
}

.channel-card img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    opacity: 0.62;
    transform: scale(1.02);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.channel-card:hover img {
    opacity: 0.78;
    transform: scale(1.08);
}

.channel-card span,
.channel-card strong {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
}

.channel-card span {
    bottom: 54px;
    color: rgba(255, 237, 213, 0.82);
    font-size: 13px;
}

.channel-card strong {
    bottom: 20px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(146, 64, 14, 0.12);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 16px 34px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(120, 53, 15, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fdba74);
}

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

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

.poster-year {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(67, 20, 7, 0.72);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

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

.movie-title {
    color: #431407;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.35;
}

.movie-title:hover,
.ranking-info h2 a:hover {
    color: #c2410c;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.movie-meta span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fdba74;
}

.movie-card p {
    margin: 0;
    color: #7c2d12;
    font-size: 13px;
    line-height: 1.65;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
    border: 1px solid rgba(146, 64, 14, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 20px 46px rgba(120, 53, 15, 0.1);
}

.compact {
    align-items: center;
    margin-bottom: 14px;
}

.compact h2 {
    font-size: 28px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 34px 48px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    background: #fff7ed;
}

.rank-num,
.ranking-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff7ed;
    background: linear-gradient(135deg, #f59e0b, #c2410c);
    font-weight: 950;
}

.rank-num {
    width: 30px;
    height: 30px;
    border-radius: 12px;
}

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

.rank-title {
    min-width: 0;
    color: #431407;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-year {
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
}

.category-overview-grid {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(146, 64, 14, 0.12);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 16px 34px rgba(120, 53, 15, 0.08);
}

.category-cover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    overflow: hidden;
    border-radius: 20px;
    background: #fed7aa;
}

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

.category-overview-body h2 {
    margin: 12px 0 8px;
    color: #431407;
    font-size: 30px;
    letter-spacing: -0.05em;
}

.category-overview-body p {
    margin: 0 0 16px;
    color: #7c2d12;
    line-height: 1.75;
}

.btn-small {
    padding: 9px 15px;
    color: #fff7ed;
    background: #c2410c;
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 160px 160px 180px;
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid rgba(146, 64, 14, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 14px 32px rgba(120, 53, 15, 0.07);
}

.filter-panel label {
    display: grid;
    gap: 8px;
}

.filter-panel span {
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(146, 64, 14, 0.16);
    border-radius: 16px;
    outline: 0;
    padding: 12px 14px;
    color: #431407;
    background: #fffaf4;
}

.empty-state {
    display: none;
    padding: 28px;
    text-align: center;
    color: #9a3412;
    border-radius: 22px;
    background: rgba(254, 215, 170, 0.42);
    font-weight: 900;
}

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

.mini-spotlight-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.mini-spotlight {
    flex: 0 0 150px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 247, 237, 0.8);
    box-shadow: 0 14px 26px rgba(120, 53, 15, 0.1);
}

.mini-spotlight img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.mini-spotlight span {
    display: block;
    margin-top: 8px;
    color: #431407;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 62px 100px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(146, 64, 14, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 14px 30px rgba(120, 53, 15, 0.08);
}

.ranking-index {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    font-size: 20px;
}

.ranking-poster img {
    width: 100px;
    height: 132px;
    object-fit: cover;
    border-radius: 18px;
}

.ranking-info h2 {
    margin: 0 0 8px;
    color: #431407;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.ranking-info p {
    margin: 10px 0;
    color: #7c2d12;
    line-height: 1.7;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #fff7ed;
    background-image: var(--detail-bg);
    background-position: center;
    background-size: cover;
}

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 36%, rgba(251, 146, 60, 0.38), transparent 24rem),
        linear-gradient(90deg, rgba(32, 18, 10, 0.94), rgba(67, 20, 7, 0.78) 52%, rgba(67, 20, 7, 0.36));
    backdrop-filter: blur(2px);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 560px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 54px 0;
}

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

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

.detail-copy h1 {
    color: #fff7ed;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
}

.detail-meta {
    margin: 18px 0;
    color: #fed7aa;
    font-size: 14px;
}

.detail-one-line {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 237, 213, 0.9);
    font-size: 19px;
    line-height: 1.9;
}

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

.player-section {
    scroll-margin-top: 90px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #0f0804;
    box-shadow: 0 30px 70px rgba(32, 18, 10, 0.34);
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #0f0804;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff7ed;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(251, 146, 60, 0.35), rgba(15, 8, 4, 0.68) 44%, rgba(15, 8, 4, 0.88));
    cursor: pointer;
}

.player-start.hidden {
    display: none;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff7ed;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 20px 44px rgba(234, 88, 12, 0.35);
    font-size: 34px;
    text-indent: 4px;
}

.player-start strong {
    font-size: 22px;
}

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

.content-card {
    padding: 26px;
    border: 1px solid rgba(146, 64, 14, 0.12);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 16px 34px rgba(120, 53, 15, 0.08);
}

.content-card h2 {
    font-size: 28px;
}

.content-card p {
    color: #7c2d12;
    line-height: 2;
    font-size: 16px;
}

.site-footer {
    margin-top: 54px;
    padding: 42px 0;
    color: #fed7aa;
    background: linear-gradient(135deg, #431407, #7c2d12);
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.footer-logo {
    color: #ffedd5;
}

.footer-brand p {
    margin: 14px 0 0;
    color: rgba(255, 237, 213, 0.76);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 237, 213, 0.86);
    background: rgba(255, 247, 237, 0.08);
}

.footer-links a:hover {
    color: #431407;
    background: #fed7aa;
}

[data-movie-card].is-hidden {
    display: none;
}

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

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

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

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

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

    .ranking-panel {
        position: static;
    }

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

@media (max-width: 820px) {
    .header-inner {
        height: 68px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 250, 244, 0.96);
        box-shadow: 0 24px 60px rgba(67, 20, 7, 0.22);
    }

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

    .nav-link {
        text-align: center;
    }

    .hero {
        min-height: 760px;
        border-radius: 26px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
        padding: 32px;
    }

    .hero-poster {
        width: min(220px, 70vw);
        margin: 0 auto;
        order: -1;
    }

    .hero-control {
        left: 28px;
        right: 28px;
        bottom: 22px;
    }

    .home-search-section,
    .section-block,
    .page-hero,
    .player-section,
    .category-overview-grid {
        width: min(100% - 24px, 1220px);
    }

    .home-search-section,
    .page-hero {
        padding: 28px;
    }

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

    .big-search button {
        min-height: 48px;
    }

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

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

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

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

    .ranking-item {
        grid-template-columns: 46px 82px minmax(0, 1fr);
    }

    .ranking-item .btn-small {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .ranking-index {
        width: 40px;
        height: 40px;
    }

    .ranking-poster img {
        width: 82px;
        height: 112px;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 34px 0;
    }

    .detail-poster {
        width: min(260px, 72vw);
        margin: 0 auto;
    }

    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .logo-text {
        font-size: 17px;
    }

    .hero h1,
    .detail-copy h1 {
        font-size: 40px;
    }

    .hero p,
    .detail-one-line,
    .page-hero p {
        font-size: 15px;
    }

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

    .movie-card {
        border-radius: 22px;
    }

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

    .rank-year {
        display: none;
    }
}
