* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    color: #0f172a;
    background: #f8fafc;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.mobile-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: #2563eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
}

.brand-name {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-subtitle {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 600;
    color: #334155;
}

.desktop-nav a,
.nav-dropdown > button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #334155;
    transition: color 0.2s ease;
}

.nav-dropdown > button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.desktop-nav a:hover,
.nav-dropdown > button:hover {
    color: #2563eb;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    display: grid;
    width: 260px;
    padding: 12px;
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-panel a {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.nav-dropdown-panel a:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

.header-search {
    display: flex;
    align-items: center;
    width: min(320px, 30vw);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
}

.header-search button {
    width: 42px;
    height: 42px;
    border: 0;
    color: #64748b;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #0f172a;
    background: #f1f5f9;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 18px 20px 24px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #334155;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 660px;
    color: #ffffff;
    background: #0f172a;
    overflow: hidden;
}

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

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

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 560px;
    padding-top: 28px;
    padding-bottom: 120px;
}

.hero-copy {
    width: min(680px, 100%);
}

.hero-kicker {
    margin: 0 0 16px;
    color: #60a5fa;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero-summary {
    max-width: 680px;
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.hero-tags span {
    padding: 7px 12px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

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

.hero-actions > span {
    padding: 11px 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.btn-primary,
.btn-glass,
.btn-plain {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

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

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.btn-plain {
    color: #2563eb;
    background: #eff6ff;
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 118px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: 0.25s ease;
}

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

.hero-panel-wrap {
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    z-index: 5;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(260px, 440px) 1fr;
    gap: 20px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.hero-search {
    display: flex;
    overflow: hidden;
    background: #ffffff;
    border-radius: 14px;
}

.hero-search input {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 0;
    outline: 0;
    color: #0f172a;
}

.hero-search button {
    padding: 0 18px;
    border: 0;
    color: #ffffff;
    background: #2563eb;
    font-weight: 800;
    cursor: pointer;
}

.hero-category-links {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hero-category-links::-webkit-scrollbar {
    display: none;
}

.hero-category-links a {
    flex: 0 0 auto;
    padding: 12px 14px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 800;
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.5), transparent 34%), linear-gradient(135deg, #0f172a, #1e3a8a);
}

.page-hero p {
    max-width: 780px;
    margin: 0 0 14px;
    color: #bfdbfe;
    font-weight: 800;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero .page-description {
    max-width: 860px;
    margin: 20px 0 0;
    color: #dbeafe;
    font-weight: 500;
    line-height: 1.8;
}

.main-content {
    padding: 56px 0 72px;
}

.section-block {
    margin: 0 auto;
    padding: 58px 0;
}

.section-block + .section-block {
    border-top: 1px solid #e2e8f0;
}

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

.section-heading p {
    margin: 0 0 8px;
    color: #2563eb;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

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

.movie-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
    border-color: #cbd5e1;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
    transform: translateY(-4px);
}

.movie-poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

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

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

.movie-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .movie-card-shade {
    opacity: 1;
}

.movie-badge {
    position: absolute;
    z-index: 2;
    padding: 5px 9px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-badge-left {
    top: 10px;
    left: 10px;
    background: rgba(37, 99, 235, 0.92);
}

.movie-badge-right {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.72);
}

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

.movie-card-body strong {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-body em {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 8px;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    font-style: normal;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-meta {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    color: #64748b;
    font-size: 13px;
}

.movie-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.movie-card-tags span {
    padding: 4px 7px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 12px;
}

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

.category-tile {
    display: grid;
    gap: 12px;
    min-height: 190px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:nth-child(3n+2) {
    background: linear-gradient(135deg, #0f172a, #1e40af);
}

.category-tile:nth-child(3n+3) {
    background: linear-gradient(135deg, #312e81, #2563eb);
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(37, 99, 235, 0.28);
}

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

.category-tile strong {
    color: #dbeafe;
    font-weight: 500;
    line-height: 1.7;
}

.category-tile em {
    align-self: end;
    font-style: normal;
    font-weight: 900;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 220px));
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: 0;
    color: #0f172a;
    background: #f8fafc;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 64px 180px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: #2563eb;
    border-radius: 14px;
    font-weight: 900;
}

.ranking-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
    border-radius: 14px;
}

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

.ranking-info strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.ranking-info p {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: #64748b;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: end;
    color: #64748b;
    font-size: 13px;
}

.ranking-meta span {
    padding: 6px 10px;
    background: #f1f5f9;
    border-radius: 999px;
}

.detail-hero {
    position: relative;
    padding: 46px 0 68px;
    color: #ffffff;
    background: #0f172a;
    overflow: hidden;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    filter: blur(2px);
}

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

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.74), #0f172a 88%);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #bfdbfe;
    font-size: 14px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    color: #ffffff;
    background: #2563eb;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.38);
}

.player-start span:first-child {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #2563eb;
    background: #ffffff;
    border-radius: 999px;
}

.detail-side {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    backdrop-filter: blur(12px);
}

.detail-side img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.detail-side-body {
    padding: 22px;
}

.detail-side h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.detail-side p {
    margin: 14px 0 0;
    color: #cbd5e1;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.detail-meta span,
.detail-tags span {
    padding: 6px 10px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

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

.detail-content {
    padding: 58px 0 72px;
}

.detail-text-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 28px;
}

.content-card {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.content-card + .content-card {
    margin-top: 18px;
}

.content-card h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.content-card p {
    margin: 0;
    color: #475569;
    line-height: 1.9;
}

.content-card p + p {
    margin-top: 16px;
}

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

.side-link-list a {
    display: grid;
    gap: 5px;
    padding: 12px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.side-link-list a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.side-link-list strong {
    font-weight: 900;
}

.side-link-list span {
    color: #64748b;
    font-size: 13px;
}

.search-shell {
    display: grid;
    gap: 22px;
}

.search-large {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.search-large input {
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    outline: 0;
}

.search-large input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.search-results-empty {
    padding: 26px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(180px, 0.6fr));
    gap: 40px;
    padding: 48px 0;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.site-footer p {
    max-width: 560px;
    margin: 0;
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
}

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

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding: 22px 16px;
    color: #94a3b8;
    border-top: 1px solid #1e293b;
    text-align: center;
}

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

    .mobile-menu-toggle {
        display: block;
    }

    body.mobile-open .mobile-nav {
        display: block;
    }

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

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 860px) {
    .hero {
        min-height: 760px;
    }

    .hero-content {
        min-height: 600px;
        padding-bottom: 190px;
    }

    .hero-dots {
        right: auto;
        bottom: 180px;
        left: 24px;
    }

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

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

    .ranking-item {
        grid-template-columns: 46px 120px 1fr;
    }

    .ranking-meta {
        grid-column: 2 / -1;
        justify-content: start;
    }

    .detail-side {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 580px) {
    .container-custom {
        width: min(100% - 24px, 1280px);
    }

    .brand-subtitle {
        display: none;
    }

    .hero {
        min-height: 820px;
    }

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

    .hero-summary {
        font-size: 16px;
    }

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

    .hero-actions a,
    .hero-actions span {
        width: 100%;
    }

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

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

    .ranking-item {
        grid-template-columns: 42px 1fr;
    }

    .ranking-cover {
        display: none;
    }

    .ranking-meta {
        grid-column: 1 / -1;
    }

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