:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --cyan: #0891b2;
    --blue: #2563eb;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --panel: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
    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: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--slate);
}

.logo span:last-child {
    font-size: 26px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.25);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link,
.mobile-link {
    position: relative;
    color: #334155;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--teal);
    transition: right 0.24s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--teal);
}

.nav-link:hover::after,
.nav-link.active::after {
    right: 0;
}

.top-search,
.mobile-search,
.large-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
    width: 210px;
    padding: 10px 14px;
}

.top-search button,
.mobile-search button,
.large-search button,
.clear-filter {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.2);
}

.top-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--slate);
    background: #f1f5f9;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

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

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: var(--slate);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.03);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.28), transparent 32%), radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.22), transparent 28%), linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.92));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
    align-items: center;
    gap: 52px;
    padding: 76px 0 120px;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 14px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.03;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 7px 13px;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.eyebrow.dark {
    color: var(--teal-dark);
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.14);
}

.hero-one-line {
    max-width: 720px;
    margin: 0 0 16px;
    color: #cffafe;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.7;
}

.hero-meta {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn {
    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;
}

.primary-btn {
    color: var(--teal-dark);
    background: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.secondary-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.ghost-btn {
    color: #cffafe;
    border: 1px solid rgba(207, 250, 254, 0.35);
}

.text-btn {
    min-height: 40px;
    color: #fff;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

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

.hero-poster {
    position: relative;
    width: min(380px, 100%);
    justify-self: end;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-control-panel {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-prev,
.hero-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    opacity: 0.62;
}

.hero-dot.is-active {
    width: 26px;
    border-radius: 999px;
    opacity: 1;
    background: #fff;
}

.floating-search-card {
    position: relative;
    z-index: 6;
    width: min(1180px, calc(100% - 32px));
    margin: -70px auto 0;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.floating-search-card h2,
.section-head h2,
.page-hero h1,
.detail-info-card h1,
.detail-info-card h2,
.rank-panel h2,
.category-overview-card h2 {
    margin: 0;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1.16;
}

.floating-search-card h2,
.section-head h2,
.rank-panel h2 {
    font-size: clamp(25px, 3.2vw, 36px);
}

.floating-search-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.large-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
}

.large-search button {
    padding: 14px 22px;
}

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

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

.section-head a,
.compact-head a {
    color: var(--teal-dark);
    font-weight: 900;
}

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

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

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

.movie-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-card-link {
    display: grid;
    height: 100%;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #0d9488);
}

.movie-card:not(.movie-card-compact) .poster-frame {
    aspect-ratio: 3 / 4;
}

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

.movie-card:hover img,
.mini-card:hover img {
    transform: scale(1.08);
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.72));
    opacity: 0.78;
}

.movie-badge,
.movie-year,
.rank-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.movie-badge {
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.movie-year {
    right: 12px;
    bottom: 12px;
    padding: 4px 9px;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(12px);
}

.rank-mark {
    left: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #eab308);
    box-shadow: 0 10px 18px rgba(234, 88, 12, 0.25);
}

.movie-card-body {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px;
}

.movie-card-body strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body em {
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-line {
    color: #475569;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.detail-tags a {
    border-radius: 999px;
    padding: 5px 9px;
    color: #0f766e;
    background: rgba(13, 148, 136, 0.1);
    font-size: 12px;
    font-weight: 800;
}

.soft-section {
    background: linear-gradient(180deg, #f1f5f9, #ffffff);
}

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

.rank-panel,
.side-card,
.detail-info-card,
.player-card,
.category-overview-card,
.filter-panel {
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.rank-panel {
    padding: 24px;
}

.sticky-panel {
    position: sticky;
    top: 92px;
}

.rank-mini-list,
.channel-mini-list {
    display: grid;
    gap: 14px;
}

.mini-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
    background: #f8fafc;
    transform: translateX(3px);
}

.mini-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate), var(--teal));
}

.mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.mini-rank {
    position: absolute;
    z-index: 2;
    top: 6px;
    left: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #eab308);
    font-size: 12px;
    font-weight: 900;
}

.mini-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.mini-body strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.mini-body em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

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

.channel-card {
    border-radius: var(--radius);
    padding: 24px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.channel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-size: 22px;
    font-weight: 950;
}

.channel-head strong {
    color: var(--teal-dark);
    font-size: 14px;
}

.channel-card p {
    color: var(--muted);
    margin: 10px 0 18px;
}

.inner-page {
    min-height: 64vh;
}

.page-hero {
    position: relative;
    padding: 76px max(16px, calc((100vw - 1180px) / 2)) 78px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #0d9488 52%, #0891b2 100%);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.2), transparent 28%), radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.16), transparent 22%);
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    margin: 14px 0;
    max-width: 900px;
    color: #fff;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 950;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #cffafe;
    font-size: 19px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(160px, 0.45fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 28px;
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: var(--text);
}

.clear-filter {
    min-height: 44px;
    padding: 0 18px;
}

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

.no-result {
    margin: 40px 0 0;
    padding: 28px;
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
}

.category-overview-text p {
    color: var(--muted);
    margin: 14px 0 20px;
}

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

.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 76px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    margin-bottom: 22px;
    font-size: 14px;
}

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

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

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
}

.player-card {
    overflow: hidden;
    background: #020617;
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
    backdrop-filter: blur(1px);
}

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

.play-circle {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-left: 6px;
    color: var(--teal-dark);
    background: #fff;
    font-size: 38px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
    transition: transform 0.2s ease;
}

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

.detail-info-card {
    padding: 28px;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.detail-info-card h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 950;
}

.type-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    font-weight: 900;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: #475569;
}

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: #f1f5f9;
    font-weight: 800;
}

.one-line {
    margin: 22px 0;
    color: #0f766e;
    font-size: 18px;
    font-weight: 800;
}

.detail-info-card h2 {
    margin: 24px 0 10px;
    font-size: 24px;
    font-weight: 950;
}

.detail-info-card p {
    color: #334155;
    font-size: 16px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.poster-card {
    padding: 18px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--slate), var(--teal));
}

.full-btn {
    width: 100%;
    margin-top: 16px;
    color: #fff;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.side-card {
    padding: 20px;
}

.site-footer {
    margin-top: 40px;
    padding: 46px max(16px, calc((100vw - 1180px) / 2));
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
}

.footer-logo span:last-child {
    color: #fff;
    font-size: 22px;
}

.site-footer p {
    color: #94a3b8;
}

.site-footer strong {
    display: block;
    margin-bottom: 12px;
    color: #fff;
}

.site-footer nav {
    display: grid;
    gap: 8px;
}

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

.copyright {
    margin: 34px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    text-align: center;
}

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

@media (max-width: 1120px) {
    .listing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .two-column-area,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 54px;
    }

    .hero-poster {
        justify-self: start;
        width: min(280px, 70vw);
    }

    .floating-search-card,
    .category-overview-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-search-wrap {
        grid-column: 1 / -1;
    }

    .channel-grid,
    .featured-grid,
    .preview-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .logo span:last-child {
        font-size: 21px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

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

    .floating-search-card {
        margin-top: -44px;
        padding: 20px;
    }

    .large-search,
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .listing-grid,
    .channel-grid,
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .detail-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .detail-info-card,
    .rank-panel,
    .side-card {
        padding: 18px;
    }

    .play-circle {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
