:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-50: #fdf2f8;
    --pink-500: #ec4899;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-soft: 0 20px 50px rgba(244, 63, 94, 0.16);
    --shadow-card: 0 10px 25px rgba(17, 24, 39, 0.09);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gray-50), rgba(255, 241, 242, 0.58), rgba(253, 242, 248, 0.65));
    color: var(--gray-900);
}

img {
    background: linear-gradient(135deg, var(--rose-100), var(--pink-50));
}

.screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(12px);
}

.site-header-inner {
    width: min(1280px, calc(100% - 2rem));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500), #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--rose-500);
}

.header-search {
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-nav input,
.filter-panel input,
.filter-panel select,
.search-page-form input {
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: #ffffff;
    color: var(--gray-900);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
    width: 12rem;
    padding: 0.6rem 1rem;
}

.header-search input:focus,
.mobile-nav input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-page-form input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--rose-500);
}

.mobile-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--gray-700);
}

.mobile-toggle span {
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 1rem;
    border-top: 1px solid var(--gray-200);
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    color: var(--gray-700);
    font-weight: 600;
}

.mobile-nav input {
    width: 100%;
    padding: 0.7rem 1rem;
}

.mobile-nav.is-open {
    display: block;
    animation: fadeIn 0.25s ease;
}

.site-main {
    min-height: 70vh;
}

.hero-section {
    position: relative;
    height: 520px;
    margin-bottom: 3rem;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.92), rgba(236, 72, 153, 0.92), rgba(251, 113, 133, 0.92));
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: radial-gradient(circle at 1px 1px, #ffffff 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-carousel,
.hero-slide {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0 0 0 auto;
    width: 52%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(159, 18, 57, 0.98) 0%, rgba(244, 63, 94, 0.88) 36%, rgba(236, 72, 153, 0.46) 64%, rgba(17, 24, 39, 0.32) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 2rem));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1280px;
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    font-weight: 700;
}

.hero-content h1 {
    max-width: 820px;
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.05em;
    margin-bottom: 0.9rem;
}

.hero-content h2 {
    max-width: 720px;
    font-size: clamp(1.35rem, 3vw, 2.3rem);
    line-height: 1.15;
    color: var(--rose-100);
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-content p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.13rem;
    line-height: 1.8;
    margin-bottom: 1.7rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.primary-button,
.ghost-button,
.search-page-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    padding: 0.82rem 1.55rem;
    color: var(--rose-500);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ghost-button {
    padding: 0.82rem 1.55rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(4px);
}

.primary-button:hover,
.ghost-button:hover,
.search-page-form button:hover {
    transform: translateY(-2px);
}

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

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 2.1rem;
    background: #ffffff;
}

.section-block {
    margin-bottom: 4rem;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading span,
.page-hero span,
.detail-kicker {
    display: inline-block;
    color: var(--rose-500);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.section-heading h2,
.page-hero h1,
.content-card h2,
.content-side-card h2,
.ranking-sidebar h2,
.tag-panel h2 {
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.section-heading a {
    color: var(--rose-500);
    font-weight: 800;
}

.featured-grid,
.movie-grid,
.category-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

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

.featured-card,
.movie-card,
.category-tile,
.ranking-panel,
.tag-panel,
.content-card,
.content-side-card,
.player-card,
.ranking-sidebar,
.search-result-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.featured-card {
    position: relative;
    height: 24rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover,
.movie-card:hover,
.category-tile:hover,
.search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(17, 24, 39, 0.14);
}

.featured-card img,
.featured-card a {
    width: 100%;
    height: 100%;
}

.featured-card img {
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.featured-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.32), transparent);
}

.featured-card-overlay span,
.movie-type {
    display: inline-flex;
    width: fit-content;
    padding: 0.25rem 0.65rem;
    color: #ffffff;
    background: var(--rose-500);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.featured-card-overlay h2 {
    font-size: 1.55rem;
    font-weight: 900;
    margin: 0.8rem 0 0.4rem;
}

.featured-card-overlay p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.soft-panel {
    padding: 2rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.82), rgba(253, 242, 248, 0.72));
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-search-wrap {
    flex: 1 1 280px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 2.8rem;
    padding: 0 1rem;
}

.filter-panel select {
    width: auto;
    min-width: 9rem;
}

.result-count {
    color: var(--gray-500);
    font-weight: 700;
}

.movie-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.movie-cover {
    position: relative;
    height: 13rem;
    overflow: hidden;
}

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

.movie-card:hover .movie-cover img {
    transform: scale(1.1);
}

.movie-cover-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
    transition: opacity 0.25s ease;
}

.movie-cover-mask span {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(3px);
}

.movie-card:hover .movie-cover-mask {
    opacity: 1;
}

.movie-type {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
}

.movie-duration {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.18rem 0.55rem;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    border-radius: 0.45rem;
    background: rgba(0, 0, 0, 0.76);
}

.rank-badge {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.22rem 0.55rem;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.72rem;
}

.movie-card-body {
    padding: 1rem;
}

.movie-card-body h2 {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    transition: color 0.2s ease;
}

.movie-card:hover .movie-card-body h2 {
    color: var(--rose-500);
}

.movie-card-body p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9rem;
}

.movie-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.8rem;
}

.movie-tags,
.detail-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.movie-tags {
    margin-top: 0.8rem;
}

.movie-tags span,
.detail-tags span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--rose-50);
    color: var(--rose-600);
    font-size: 0.75rem;
    font-weight: 800;
}

.movie-tags span {
    padding: 0.18rem 0.5rem;
}

.detail-tags span,
.tag-cloud a {
    padding: 0.45rem 0.8rem;
}

.category-tile {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-posters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    height: 8.5rem;
    margin-bottom: 1rem;
}

.category-posters img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
}

.category-tile h2 {
    font-size: 1.18rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.category-tile p {
    color: var(--gray-600);
    line-height: 1.65;
    font-size: 0.9rem;
}

.category-tile span {
    display: inline-flex;
    margin-top: 0.9rem;
    color: var(--rose-500);
    font-weight: 900;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.ranking-panel,
.tag-panel,
.ranking-sidebar {
    padding: 1.5rem;
}

.compact-list {
    display: grid;
    gap: 0.95rem;
}

.compact-card {
    position: relative;
    display: grid;
    grid-template-columns: 5.5rem 1fr auto;
    gap: 0.8rem;
    align-items: center;
}

.compact-card img {
    width: 5.5rem;
    height: 4rem;
    border-radius: 0.75rem;
    object-fit: cover;
}

.compact-card h3 {
    color: var(--gray-900);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.compact-card p {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.compact-rank {
    min-width: 2rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-500);
    background: var(--rose-50);
    border-radius: 999px;
    font-weight: 900;
}

.tag-panel p {
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0.6rem 0 1.25rem;
}

.page-top {
    padding-top: 2.5rem;
}

.page-hero {
    padding: 2.4rem;
    margin-bottom: 2rem;
    border-radius: 2rem;
    color: var(--gray-900);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 241, 242, 0.8));
    box-shadow: var(--shadow-card);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin-bottom: 0.8rem;
}

.page-hero p {
    max-width: 820px;
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--gray-500);
    font-weight: 700;
    margin-top: 1.2rem;
}

.breadcrumb a {
    color: var(--rose-500);
}

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

.detail-hero {
    padding-bottom: 2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
    gap: 1.5rem;
    align-items: stretch;
}

.player-card,
.detail-info {
    overflow: hidden;
    border-radius: 1.5rem;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
    overflow: hidden;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.2));
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 3;
}

.player-overlay span {
    width: 5.5rem;
    height: 5.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.25rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 18px 45px rgba(244, 63, 94, 0.4);
    font-size: 2rem;
}

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

.detail-info {
    padding: 1.6rem;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.detail-info h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

.detail-one-line {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1.05rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.2rem 0;
}

.detail-meta span,
.detail-meta a {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-weight: 800;
    font-size: 0.86rem;
}

.detail-meta a {
    color: var(--rose-500);
    background: var(--rose-50);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.55fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.content-card,
.content-side-card {
    padding: 1.6rem;
}

.content-card h2,
.content-side-card h2,
.ranking-sidebar h2,
.tag-panel h2 {
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
}

.content-card p {
    color: var(--gray-700);
    line-height: 1.95;
    margin-bottom: 1.4rem;
}

.content-side-card dl {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 0.8rem 1rem;
}

.content-side-card dt {
    color: var(--gray-500);
    font-weight: 800;
}

.content-side-card dd {
    color: var(--gray-900);
    font-weight: 700;
}

.search-page-form {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.4rem;
    max-width: 760px;
}

.search-page-form input {
    flex: 1;
    min-height: 3.2rem;
    padding: 0 1.2rem;
}

.search-page-form button {
    padding: 0 1.4rem;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.search-results {
    display: grid;
    gap: 1rem;
}

.search-result-card {
    display: grid;
    grid-template-columns: 8rem 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-card img {
    width: 8rem;
    height: 5.5rem;
    object-fit: cover;
    border-radius: 1rem;
}

.search-result-card h2 {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
}

.search-result-card p {
    color: var(--gray-600);
    line-height: 1.65;
}

.search-result-card span {
    color: var(--rose-500);
    font-weight: 900;
}

.site-footer {
    margin-top: 4rem;
    background: linear-gradient(135deg, #ffffff, var(--gray-100));
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: var(--gray-600);
    line-height: 1.8;
}

.site-footer h2 {
    color: var(--gray-900);
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.site-footer a:hover {
    color: var(--rose-500);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

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

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

    .site-logo {
        font-size: 1.35rem;
    }

    .hero-section {
        height: 620px;
    }

    .hero-slide img {
        inset: auto 0 0 0;
        width: 100%;
        height: 48%;
        opacity: 0.35;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(159, 18, 57, 0.98), rgba(244, 63, 94, 0.85), rgba(17, 24, 39, 0.5));
    }

    .hero-content {
        justify-content: flex-start;
        padding-top: 4.5rem;
    }

    .hero-actions,
    .search-page-form {
        flex-direction: column;
    }

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

    .soft-panel,
    .page-hero,
    .ranking-panel,
    .tag-panel,
    .content-card,
    .content-side-card,
    .detail-info {
        padding: 1.1rem;
        border-radius: 1.25rem;
    }

    .movie-cover {
        height: 10rem;
    }

    .search-result-card {
        grid-template-columns: 6rem 1fr;
    }

    .search-result-card span {
        grid-column: 1 / -1;
    }

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

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

    .movie-cover {
        height: 14rem;
    }

    .compact-card {
        grid-template-columns: 4.8rem 1fr auto;
    }

    .compact-card img {
        width: 4.8rem;
        height: 3.6rem;
    }
}
