/* ========================================
   NAVBAR - MOBILE FIRST
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--navbar-height);
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    transition: background-color var(--transition-speed) ease;
}

.navbar:hover {
    background-color: rgba(0, 0, 0, 0.95);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 var(--page-side-padding);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.logo {
    flex: 0 0 auto;
    display: inline-block;

    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;

    color: var(--debug-logo-color);
    text-decoration: none;

    letter-spacing: 2px;
    cursor: pointer;

    transition:
        transform var(--transition-speed),
        color var(--transition-speed);
}

.logo:hover {
    transform: scale(1.05);
}

.logo:visited {
    color: var(--debug-logo-color);
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    min-width: 0;
}

.nav-links a {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    transition: color var(--transition-speed);
}

.nav-links a:not(.active) {
    display: none;
}

body:not(.has-active-nav-link) .nav-links {
    display: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-secondary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-red);
}

.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex: 0 0 auto;
}

/* ========== SEARCH ========== */

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 36px;
    min-width: 36px;
    height: 36px;
    flex: 0 0 auto;
}

.navbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-primary);
}

.navbar-icon i {
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 2;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform var(--transition-speed);
}

.search-icon:hover,
.search-clear-btn:hover,
.search-icon:focus-visible,
.search-clear-btn:focus-visible {
    transform: translateY(-50%) scale(1.1);
}

.search-input {
    position: absolute;
    right: 0;
    width: 0;
    min-width: 0;
    max-width: calc(100vw - 7.5rem);
    padding: 0.5rem;
    border: 1px solid var(--text-primary);
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition:
        width var(--transition-speed),
        opacity var(--transition-speed),
        padding var(--transition-speed);
}

.search-container:focus-within .search-input,
.search-input:focus {
    width: calc(100vw - 7.5rem - var(--page-side-padding));
    padding-right: 4.2rem;
    opacity: 1;
    pointer-events: all;
}

.search-input:focus {
    outline: none;
}

.search-input:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.search-clear-btn {
    position: absolute;
    top: 50%;
    right: 2.35rem;
    z-index: 3;
    border: none;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform var(--transition-speed);
}

/* Remove native browser search clear button */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

/* ========== SEARCH SUGGESTIONS ========== */

.search-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 1100;
    width: calc(100vw - 7.5rem);
    min-width: 0;
    max-width: calc(100vw - 7.5rem);
    max-height: 360px;
    padding: 0.4rem;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(
            180deg,
            rgba(24, 24, 24, 0.98) 0%,
            rgba(16, 16, 16, 0.98) 100%
        );
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-suggestions.hidden {
    display: none;
}

.search-suggestion-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    min-height: 60px;
    padding: 0.55rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.search-suggestion-item:hover,
.search-suggestion-item:focus-visible,
.search-suggestion-item.is-active {
    background-color: rgba(255, 255, 255, 0.06);
}

.search-suggestion-poster {
    width: 44px;
    aspect-ratio: 2 / 3;
    border-radius: 4px;
    background-color: #222;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    flex-shrink: 0;
}

.search-suggestion-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.search-suggestion-title {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-meta {
    color: var(--text-secondary);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-empty,
.search-suggestion-loading {
    padding: 0.85rem 0.9rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.22);
}

.search-icon {
    border: none;
    background: transparent;
}

/* ========== MOBILE MENU ========== */

.mobile-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: none;
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition:
        background-color var(--transition-speed),
        transform var(--transition-speed);
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.mobile-menu-line {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background-color: currentColor;
}

.mobile-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: -0.35rem;
    z-index: 1100;
    width: min(245px, calc(100vw - (var(--page-side-padding) * 2)));
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--primary-red);
    border-radius: 6px;
    background: linear-gradient(
        180deg,
        rgba(24, 24, 24, 0.98) 0%,
        rgba(10, 10, 10, 0.98) 100%
    );
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 8px 18px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.mobile-menu-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(24, 24, 24, 0.98);
    transform: rotate(45deg);
}

.mobile-menu-dropdown a {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0.78rem 0.95rem 0.78rem 1rem;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        color var(--transition-speed),
        padding-left 0.2s ease;
}

.mobile-menu-dropdown a + a {
    margin-top: 0.15rem;
}

.mobile-menu-dropdown a::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 999px;
    background-color: var(--primary-red);
    transform: translateY(-50%);
    transition: height 0.2s ease;
}

.mobile-menu-dropdown a:hover,
.mobile-menu-dropdown a:focus-visible {
    padding-left: 1.2rem;
    background-color: rgba(255, 255, 255, 0.075);
}

.mobile-menu-dropdown a:hover::before,
.mobile-menu-dropdown a:focus-visible::before {
    height: 55%;
}

/* ========== PROFILE ========== */

.profile {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: 0.5rem;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-red), #ff4757);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-speed);
}

.avatar:hover {
    transform: scale(1.05);
}

/* ========================================
   HERO - MOBILE FIRST
   ======================================== */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: var(--hero-height);
    padding: 0 var(--page-side-padding) 2rem;
    background:
        radial-gradient(
            circle at top left,
            rgba(229, 9, 20, 0.18) 0%,
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #181818 0%,
            #141414 45%,
            #101010 100%
        );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.05) 0px,
            rgba(0, 0, 0, 0.05) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.05) 0px,
            rgba(0, 0, 0, 0.05) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 95px;
    margin-bottom: 1.25rem;
    object-fit: contain;
    object-position: left center;
    filter:
        drop-shadow(0 4px 18px rgba(0, 0, 0, 0.65))
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.hero-logo.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-description {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    --hero-button-height: 2.4rem;
    --favorite-icon-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: var(--hero-button-height);
    padding: 0 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color var(--transition-speed),
        color var(--transition-speed),
        transform var(--transition-speed);
}

.btn i {
    font-size: 1rem;
    line-height: 1;
}

.btn-play {
    background-color: var(--text-primary);
    color: #000;
}

.btn-play:hover,
.btn-play:focus-visible {
    background-color: rgba(255, 255, 255, 0.85);
    transform: scale(1.05);
}

.btn-info {
    background-color: rgba(109, 109, 110, 0.7);
    color: var(--text-primary);
}

.btn-info:hover,
.btn-info:focus-visible {
    background-color: rgba(109, 109, 110, 0.5);
    transform: scale(1.05);
}

.btn-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-disabled:hover,
.btn-disabled:focus-visible {
    transform: none;
    background-color: rgba(109, 109, 110, 0.7);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.hero-meta span {
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rating {
    color: #46d369;
    font-weight: 600;
}

.hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: linear-gradient(to top, var(--dark-bg), transparent);
    pointer-events: none;
}

/* ========================================
   CONTENT / ROWS / CARDS - MOBILE FIRST
   ======================================== */

.content {
    position: relative;
    z-index: 3;
    padding: 1.5rem var(--page-side-padding);
}

.movie-row {
    margin-bottom: var(--content-section-gap);
}

.row-title {
    margin: 0 0 1rem;
    padding-left: 0;
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 700;
}

.row-title-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.row-title-link:hover,
.row-title-link:focus-visible {
    color: var(--text-secondary);
}

.row-wrapper {
    position: relative;
    overflow: visible;
}

.row-container {
    display: flex;
    gap: var(--cards-row-gap);
    padding: var(--cards-row-padding);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) rgba(255, 255, 255, 0.03);
}

.row-container::-webkit-scrollbar {
    height: 8px;
}

.row-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
}

.row-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.movie-card {
    position: relative;
    flex: 0 0 var(--card-width);
    min-width: var(--card-width);
    border-radius: var(--border-radius);
    overflow: visible;
    cursor: pointer;
    transition: transform var(--transition-speed) ease;
}

.movie-card:focus-within {
    z-index: 30;
}

@media (hover: hover) and (pointer: fine) {
    .movie-card:hover,
    .movie-card:focus-within {
        transform: scale(1.05);
        z-index: 30;
    }
}

.movie-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: visible;
    border-radius: var(--border-radius);
    background-color: #222;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.static-card-preview {
    background:
        linear-gradient(135deg, rgba(229, 9, 20, 0.9) 0%, rgba(40, 40, 40, 1) 55%, rgba(10, 10, 10, 1) 100%);
}

.rank {
    position: absolute;
    left: 5px;
    bottom: 5px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.22);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.movie-info {
    padding: 0.7rem 0 0;
}

.movie-info h4 {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-stats {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.row-empty {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================================
   LISTING / GRID PAGES - MOBILE FIRST
======================================== */

.listing-page {
    min-height: 100vh;
    padding:
        calc(var(--navbar-height) + 2rem)
        var(--page-side-padding)
        3rem;
}

.listing-section {
    width: 100%;
}

.listing-header {
    margin-bottom: 1.25rem;
}

.listing-header .row-title {
    margin-bottom: 0.35rem;
}

.listing-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.listing-wrapper {
    position: relative;
    overflow: visible;
}

.listing-empty {
    margin: 1rem 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap-y) var(--grid-gap-x);
    padding: var(--cards-row-padding);
}

.cards-grid .movie-card {
    width: 100%;
    min-width: 0;
    flex: unset;
}

.cards-grid .movie-thumbnail {
    width: 100%;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

.load-more-btn {
    justify-content: center;
    min-width: 260px;
    height: 3rem;
    padding: 0 2rem;
    border-radius: var(--border-radius);
    background-color: rgba(109, 109, 110, 0.7);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

.load-more-btn:hover,
.load-more-btn:focus-visible {
    background-color: rgba(109, 109, 110, 0.5);
    transform: scale(1.04);
}

/* ========================================
   PLAYER OVERLAY - MOBILE FIRST
======================================== */

.player-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    isolation: isolate;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    padding:
        calc(var(--navbar-height) + 1rem)
        var(--page-side-padding)
        2rem;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.player-overlay-content {
    position: relative;
    width: min(100%, 1280px);
    pointer-events: auto;
    z-index: 1;
    max-height: 85vh;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.65),
        0 10px 25px rgba(0, 0, 0, 0.45);
}

.player-overlay-content iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.player-close {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 100000;
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.72);
    color: #ffffff;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.player-close i {
    font-size: 1.35rem;
    line-height: 1;
    pointer-events: none;
}

.player-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.06);
}

.player-close:active {
    transform: scale(0.96);
}

html.player-open {
    overflow: hidden;
}

body.player-open {
    position: fixed;
    overflow: hidden;
    width: 100%;
}

/* ========================================
   FOOTER - MOBILE FIRST
   ======================================== */

.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem var(--page-side-padding) 1.5rem;
    color: var(--text-secondary);
}

.footer .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.2rem;
    align-items: start;
}

.footer-brand .logo {
    display: inline-block;
    margin: 0 0 1.2rem;
    font-size: 2rem;
}

.footer-description {
    max-width: 100%;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
}

.footer-title {
    position: relative;
    margin: 0 0 1.45rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 800;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 1.8rem;
    height: 0.16rem;
    border-radius: 999px;
    background: var(--primary-red);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    margin-bottom: 1rem;
}

.footer-link:last-child {
    margin-bottom: 0;
}

.footer-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-link a i {
    width: 1rem;
    font-size: 0.85rem;
    color: currentColor;
    text-align: center;
}

.footer-link a:hover,
.footer-link a:focus-visible {
    color: var(--text-primary);
    transform: translateX(3px);
}

.footer-divider {
    width: 100%;
    height: 1px;
    margin: 2.4rem 0 1.4rem;
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.copyright {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.4;
}

.copyright a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.copyright a:hover,
.copyright a:focus-visible {
    color: var(--primary-red-hover);
}

/* ========================================
   MOVIE DETAILS PAGE
======================================== */

.movie-details-page {
    display: flex;
    flex-direction: column;
}

/* ========================================
   FAVORITE BUTTON
======================================== */

.hero-buttons .btn.btn-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 var(--hero-button-height);

    width: var(--hero-button-height);
    min-width: var(--hero-button-height);
    max-width: var(--hero-button-height);

    height: var(--hero-button-height);
    min-height: var(--hero-button-height);
    max-height: var(--hero-button-height);

    aspect-ratio: 1 / 1;

    padding: 0;

    overflow: hidden;
}

.hero-buttons .btn.btn-favorite i {
    display: block;

    width: 1em;
    height: 1em;

    font-size: var(--favorite-icon-size);
    line-height: 1;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.hero-buttons .btn.btn-favorite[aria-pressed="true"] i {
    color: var(--primary-red);
    font-weight: 900;
}

.hero-buttons .btn.btn-favorite:hover i {
    transform: scale(1.08);
}

/* ========================================
   SOURCE SECTION
======================================== */

.source-section {
    width: 100%;
    padding: 2rem var(--page-side-padding) 0;
}

.source-header {
    margin-bottom: 0rem;
}

/* ========================================
   SOURCE ALERT
======================================== */

.source-section-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background-color: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.source-section-alert-icon {
    flex-shrink: 0;
    color: #facc15;
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.source-section-alert p {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.source-section-alert a {
    color: var(--text-primary);
    text-decoration: underline;
}

.source-section-alert a:hover {
    text-decoration: none;
}

/* ========================================
   SOURCE BUTTONS
======================================== */

.source-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.source-btn {
    border: none;
    outline: none;
    cursor: pointer;
    padding:
        0.85rem
        1.15rem;

    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255,255,255,0.08);
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.source-btn:hover {
    background: rgba(255,255,255,0.16);
}

.source-btn:active {
    transform: scale(0.98);
}

.source-btn.active {
    background: var(--primary-red);
}

/* ========================================
   MORE LIKE THIS
======================================== */

#more-like-this-section {
    padding: 3rem var(--page-side-padding) 0;
}

/* ========================================
   EPISODES SECTION
======================================== */

.episodes-section {
    width: 100%;
    padding: 2rem var(--page-side-padding) 0;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.episodes-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.episodes-title {
    margin-bottom: 0;
}

.episodes-container {
    display: flex;
    flex-direction: column;
}

/* ========================================
   SEASON DROPDOWN
======================================== */

.season-dropdown {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 200px;
}

.season-dropdown-native {
    display: none;
}

.season-dropdown-trigger {
    position: relative;
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 2.8rem 0.8rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: #242424;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.season-dropdown-trigger:hover {
    background-color: #2c2c2c;
    border-color: rgba(255, 255, 255, 0.3);
}

.season-dropdown-trigger:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.season-dropdown-trigger-label {
    display: block;
    pointer-events: none;
}

.season-dropdown-trigger-arrow {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.season-dropdown.is-open .season-dropdown-trigger {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.season-dropdown.is-open .season-dropdown-trigger-arrow {
    transform: translateY(-35%) rotate(-135deg);
}

.season-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    width: 100%;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background-color: #242424;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.season-dropdown-option {
    width: 100%;
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.season-dropdown-option:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.season-dropdown-option.is-selected {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ========================================
   EPISODE CARDS
======================================== */

.episode-card {
    position: relative;
    display: grid;
    grid-template-columns: 30px 96px 1fr 42px;
    gap: 0.6rem;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.episode-card:first-child {
    border-top: none;
}

.episode-card:hover,
.episode-card:focus-within {
    background-color: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.episode-number {
    padding-top: 0;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: rgba(255, 255, 255, 0.85);
}

.episode-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    background-color: #222;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: filter 0.25s ease;
}

.episode-card:hover .episode-thumbnail,
.episode-card:focus-within .episode-thumbnail {
    filter: brightness(1.1);
}

.episode-content {
    min-width: 0;
}

.episode-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.episode-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.episode-description {
    display: -webkit-box;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    line-height: 1.35;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.episode-duration {
    padding-top: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    text-align: right;
    white-space: nowrap;
}

.episode-card:hover .episode-title,
.episode-card:focus-within .episode-title,
.episode-card:hover .episode-duration,
.episode-card:focus-within .episode-duration {
    color: var(--text-primary);
}

/* ========================================
   SOURCE CHANGE FEEDBACK
======================================== */

.source-section.source-feedback {
    animation: sourceSectionFlash 0.25s ease;
}

@keyframes sourceSectionFlash {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

.episodes-section.source-loading {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

.btn-play.source-updated {
    animation: playButtonPulse 0.4s ease;
}

@keyframes playButtonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* ========================================
   SKELETON LOADING
   ======================================== */

.skeleton {
    position: relative;
    overflow: hidden;
    background: #202020;
    background-image: linear-gradient(
        90deg,
        #202020 0%,
        #2b2b2b 40%,
        #353535 50%,
        #2b2b2b 60%,
        #202020 100%
    );
    background-size: 220% 100%;
    animation: skeletonShimmer 1.45s ease-in-out infinite;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

.skeleton-line {
    display: block;
    width: 100%;
    height: 0.9rem;
    border-radius: 999px;
}

.skeleton-line.long {
    width: 89%;
}

.skeleton-line.medium {
    width: 68%;
}

.skeleton-line.short {
    width: 46%;
}

/* ========================================
   HERO SKELETON - MOBILE FIRST
   ======================================== */

.skeleton-hero {
    position: absolute;
    left: var(--page-side-padding);
    right: var(--page-side-padding);
    bottom: 2.2rem;
    z-index: 2;
    display: none;
    max-width: 100%;
    pointer-events: none;
}

.hero.hero-loading .hero-content {
    opacity: 0;
    visibility: hidden;
}

.hero.hero-loading .skeleton-hero {
    display: block;
}

.skeleton-hero-logo {
    width: min(100%, 360px);
    height: 4.45rem;
    margin-bottom: 1.25rem;
    border-radius: var(--border-radius);
}

.skeleton-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.skeleton-hero-button {
    width: 6.9rem;
    height: 2.4rem;
    border-radius: var(--border-radius);
}

.skeleton-hero-button.secondary {
    width: 8.9rem;
}

.skeleton-hero-description {
    display: grid;
    gap: 0.7rem;
    width: min(100%, 620px);
    margin-bottom: 1.4rem;
}

.skeleton-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skeleton-hero-meta-item {
    width: 5.4rem;
    height: 1.5rem;
    border-radius: 3px;
}

.skeleton-hero-meta-item:nth-child(1) {
    width: 5.65rem;
}

.skeleton-hero-meta-item:nth-child(2) {
    width: 3.2rem;
}

.skeleton-hero-meta-item:nth-child(3) {
    width: 3.5rem;
}

.skeleton-hero-meta-item:nth-child(4) {
    width: 3.5rem;
}

/* ========================================
   MOVIE CARD SKELETON - MOBILE FIRST
   ======================================== */

.skeleton-card {
    cursor: default;
    pointer-events: none;
}

.skeleton-card:hover,
.skeleton-card:focus-within {
    transform: none;
    z-index: auto;
}

.skeleton-thumbnail {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.skeleton-card .movie-info {
    display: grid;
    gap: 0.5rem;
    padding: 0.9rem 0 0.3rem;
}

.skeleton-card .skeleton-line.medium {
    height: 0.95rem;
    width: 82%;
}

.skeleton-card .skeleton-line.short {
    height: 0.75rem;
    width: 35%;
}

/* ========================================
   TABLET - 768px+
   Shared responsive rules
   ======================================== */

@media screen and (min-width: 768px) {
    /* ========== NAVBAR ========== */
    .navbar-container {
        gap: 1.25rem;
    }

    .navbar-left {
        gap: 1.25rem;
    }

    .logo {
        font-size: 1.75rem;
    }

    .search-container:focus-within .search-input,
    .search-input:focus,
    .search-suggestions {
        width: 320px;
        max-width: 320px;
    }
    
    /* ========== HERO ========== */

    .hero {
        padding-bottom: 3rem;
    }

    .hero-content {
        max-width: 560px;
    }

    .hero-logo {
        max-width: 280px;
        max-height: 120px;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2.6rem;
        margin-bottom: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 1.25rem;
    }

    .hero-buttons {
        --hero-button-height: 2.8rem;
        --favorite-icon-size: 1.05rem;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0 1.75rem;
    }

    /* ========== CONTENT / ROWS / CARDS ========== */

    .row-title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }

    .movie-info h4 {
        font-size: 0.95rem;
    }

    .movie-stats {
        font-size: 0.8rem;
    }

    .rank {
        font-size: 3.4rem;
    }

    /* ========== LISTING / GRID PAGES ========== */

    .listing-page {
        padding-top: calc(var(--navbar-height) + 2.25rem);
        padding-bottom: 3.5rem;
    }

    .listing-header {
        margin-bottom: 1.5rem;
    }

    .listing-subtitle,
    .listing-empty {
        font-size: 0.95rem;
    }

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

    .load-more-wrap {
        margin-top: 1.75rem;
    }

    .load-more-btn {
        min-width: 280px;
    }

    /* ========== PLAYER OVERLAY ========== */

    .player-overlay {
        padding:
            calc(var(--navbar-height) + 1.5rem)
            2rem
            2rem;
    }

    .player-close {
        top: 1.5rem;
        right: 1.5rem;
    }

    /* ========== EPISODES ========== */

    .episodes-section {
        padding-top: 2.25rem;
    }

    .episodes-header {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .season-dropdown {
        max-width: 220px;
    }

    .season-dropdown-trigger {
        min-height: 50px;
        padding: 0.85rem 2.9rem 0.85rem 1rem;
        font-size: 0.98rem;
    }

    .season-dropdown-option {
        min-height: 44px;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    .episode-card {
        grid-template-columns: 36px 120px 1fr 48px;
        gap: 0.75rem;
    }

    .episode-number {
        font-size: 1.5rem;
    }

    .episode-title {
        font-size: 1rem;
    }

    .episode-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .episode-duration {
        font-size: 0.9rem;
    }

    /* ========== FOOTER ========== */

    .footer {
        padding-top: 3.4rem;
        padding-bottom: 1.6rem;
    }

    .footer .container {
        max-width: 760px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.6rem 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 560px;
    }

    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    /* ========== SKELETON ========== */

    .skeleton-hero {
        bottom: 3rem;
        max-width: 560px;
    }

    .skeleton-hero-logo {
        width: min(100%, 460px);
        height: 4rem;
        margin-bottom: 1.25rem;
    }

    .skeleton-hero-buttons {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .skeleton-hero-button {
        height: 2.8rem;
    }

    .skeleton-hero-description {
        gap: 0.7rem;
        margin-bottom: 1.75rem;
    }

    .skeleton-hero-meta {
        gap: 0.5rem;
    }

    .skeleton-hero-meta-item {
        height: 1.65rem;
    }

    .skeleton-hero-meta-item:nth-child(1) {
        width: 5.65rem;
    }

    .skeleton-hero-meta-item:nth-child(2) {
        width: 3.2rem;
    }

    .skeleton-hero-meta-item:nth-child(3) {
        width: 3.5rem;
    }

    .skeleton-hero-meta-item:nth-child(4) {
        width: 3.5rem;
    }

    .skeleton-card .movie-info {
        gap: 0.5rem;
        padding: 0.9rem 0 0.3rem;
    }

    .skeleton-card .skeleton-line.medium {
        height: 1rem;
    }

    .skeleton-card .skeleton-line.short {
        height: 0.8rem;
    }
}

/* ========================================
   LAPTOP - 1024px+
   Shared responsive rules
   ======================================== */

@media screen and (min-width: 1024px) {
    /* ========== NAVBAR ========== */
    .navbar-left {
        gap: 2rem;
    }

    .logo {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    body:not(.has-active-nav-link) .nav-links {
        display: flex;
    }

    .nav-links a:not(.active) {
        display: inline;
    }

    .mobile-menu-container {
        display: none;
    }

    .navbar-right {
        gap: 1.5rem;
    }

    .profile {
        margin-left: 0;
    }

    .search-container {
        width: 320px;
        min-width: 44px;
    }

    .search-icon {
        right: 0.75rem;
    }

    .search-container:focus-within .search-input,
    .search-input:focus,
    .search-suggestions {
        width: 320px;
        max-width: 320px;
    }

    .search-clear-btn {
        right: 3.2rem;
    }

    /* ========== HERO ========== */

    .hero {
        padding-bottom: 4rem;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-logo {
        max-width: 420px;
        max-height: 160px;
        margin-bottom: 1.75rem;
    }

    .hero-title {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        --hero-button-height: 3rem;
        --favorite-icon-size: 1.1rem;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0 2rem;
        font-size: 1.1rem;
    }

    .hero-meta {
        gap: 0.9rem;
        font-size: 0.96rem;
    }

    .hero-meta span {
        padding: 0.34rem 0.85rem;
    }

    /* ========== CONTENT / ROWS / CARDS ========== */

    .row-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .movie-info {
        padding: 0.8rem 0;
    }

    .movie-info h4 {
        font-size: 1rem;
    }

    .movie-stats {
        font-size: 0.85rem;
    }

    .rank {
        font-size: 4rem;
    }

    /* ========== LISTING / GRID PAGES ========== */

    .listing-page {
        padding-top: calc(var(--navbar-height) + 2.5rem);
        padding-bottom: 4rem;
    }

    .listing-header {
        margin-bottom: 1.5rem;
    }

    .listing-subtitle,
    .listing-empty {
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(var(--card-width), 1fr));
    }

    .load-more-wrap {
        margin-top: 2rem;
    }

    .load-more-btn {
        min-width: 300px;
        height: 3.2rem;
        font-size: 1.05rem;
    }

    /* ========== DETAILS PAGE ========== */

    .source-section {
        padding-top: 2.5rem;
    }

    /* ========== PLAYER OVERLAY ========== */

    .player-overlay-content {
        width: min(92vw, 1400px);
        max-height: 82vh;
    }

    .player-close {
        top: 2rem;
        right: 2rem;

        width: 52px;
        height: 52px;
    }

    .player-close i {
        font-size: 1.5rem;
    }

    /* ========== EPISODES ========== */

    .episodes-section {
        padding-top: 2.5rem;
    }

    .episodes-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .season-dropdown {
        max-width: 200px;
    }

    .season-dropdown-trigger {
        min-height: 52px;
        padding: 0.9rem 3rem 0.9rem 1rem;
        font-size: 1rem;
    }

    .season-dropdown-option {
        min-height: 44px;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    .episode-card {
        grid-template-columns: 70px 200px 1fr 70px;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .episode-number {
        font-size: 2.2rem;
    }

    .episode-top {
        gap: 1rem;
        margin-bottom: 0.4rem;
    }

    .episode-title {
        font-size: 1.1rem;
    }

    .episode-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .episode-duration {
        font-size: 1rem;
    }

    /* ========== FOOTER ========== */

    .footer {
        padding-top: 3.8rem;
        padding-bottom: 1.8rem;
    }

    .footer .container {
        max-width: 1150px;
    }

    .footer-grid {
        grid-template-columns: 1fr auto auto;
        gap: 6rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-brand .logo {
        font-size: 2.5rem;
    }

    .footer-description {
        max-width: 420px;
        font-size: 0.92rem;
    }

    .footer-title {
        font-size: 1.08rem;
    }

    .footer-link a {
        font-size: 0.92rem;
    }

    .footer-divider {
        margin: 3rem 0 1.6rem;
    }

    .copyright {
        font-size: 0.88rem;
    }

    /* ========== SKELETON ========== */

    .skeleton-hero {
        bottom: 4rem;
        max-width: 800px;
    }

    .skeleton-hero-logo {
        width: min(100%, 420px);
        height: 4.8rem;
        margin-bottom: 1.5rem;
    }

    .skeleton-hero-buttons {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .skeleton-hero-button {
        width: 8rem;
        height: 3rem;
    }

    .skeleton-hero-button.secondary {
        width: 10.8rem;
    }

    .skeleton-hero-description {
        width: min(100%, 800px);
        gap: 0.8rem;
        margin-bottom: 2.35rem;
    }

    .skeleton-line {
        height: 1.05rem;
    }

    .skeleton-hero-meta {
        gap: 1rem;
    }

    .skeleton-hero-meta-item {
        width: 6.4rem;
        height: 2.25rem;
    }

    .skeleton-hero-meta-item:nth-child(1) {
        width: 7rem;
    }

    .skeleton-hero-meta-item:nth-child(2) {
        width: 4rem;
    }

    .skeleton-hero-meta-item:nth-child(3) {
        width: 4.5rem;
    }

    .skeleton-hero-meta-item:nth-child(4) {
        width: 4.5rem;
    }

    .skeleton-card .movie-info {
        display: grid;
        gap: 0.6rem;
        padding: 1rem 0 0.9rem;
    }

    .skeleton-card .skeleton-line.medium {
        height: 1.1rem;
    }

    .skeleton-card .skeleton-line.short {
        height: 0.95rem;
    }
}

/* ========================================
   DESKTOP - 1440px+
   Shared responsive rules
   ======================================== */

@media screen and (min-width: 1440px) {
    /* ========== NAVBAR ========== */
    .nav-links {
        gap: 1.75rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .search-container {
        width: 360px;
    }

    .search-container:focus-within .search-input,
    .search-input:focus,
    .search-suggestions {
        width: 360px;
        max-width: 360px;
    }

    .search-clear-btn {
        right: 3.2rem;
    }

    /* ========== HERO ========== */

    .hero {
        padding-bottom: 5rem;
    }

    .hero-content {
        max-width: 1000px;
    }

    .hero-logo {
        max-width: 520px;
        max-height: 200px;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-description {
        max-width: 1000px;
        font-size: 1.2rem;
    }

    .btn {
        font-size: 1.15rem;
    }

    .hero-meta {
        font-size: 1rem;
    }

    /* ========== CONTENT / ROWS / CARDS ========== */

    .row-title {
        font-size: 2.2rem;
    }

    .movie-info h4 {
        font-size: 1.05rem;
    }

    .movie-stats {
        font-size: 0.9rem;
    }

    .rank {
        font-size: 4.5rem;
    }

    /* ========== LISTING / GRID PAGES ========== */

    .listing-page {
        padding-top: calc(var(--navbar-height) + 2.75rem);
    }

    .listing-subtitle,
    .listing-empty {
        font-size: 1.05rem;
    }

    /* ========== EPISODES ========== */

    .season-dropdown {
        max-width: 220px;
    }

    .season-dropdown-trigger {
        font-size: 1.02rem;
    }

    .season-dropdown-option {
        font-size: 0.98rem;
    }

    .episode-card {
        grid-template-columns: 76px 220px 1fr 76px;
        gap: 1.25rem;
    }

    .episode-number {
        font-size: 2.4rem;
    }

    .episode-title {
        font-size: 1.15rem;
    }

    .episode-description {
        font-size: 1rem;
    }

    .episode-duration {
        font-size: 1.02rem;
    }

    /* ========== FOOTER ========== */

    .footer .container {
        max-width: 1150px;
    }

    .footer-grid {
        gap: 6rem;
    }

    /* ========== SKELETON ========== */

    .skeleton-hero {
        bottom: 5.15rem;
        max-width: 1000px;
    }

    .skeleton-hero-logo {
        width: min(100%, 640px);
        height: 5.4rem;
        margin-bottom: 1.5rem;
    }

    .skeleton-hero-button {
        width: 8.1rem;
        height: 2.85rem;
    }

    .skeleton-hero-button.secondary {
        width: 10.8rem;
    }

    .skeleton-hero-description {
        width: min(100%, 1000px);
        margin-bottom: 2.35rem;
    }

    .skeleton-hero-meta-item {
        width: 6.8rem;
        height: 2.25rem;
    }

    .skeleton-hero-meta-item:nth-child(1) {
        width: 7.35rem;
    }

    .skeleton-hero-meta-item:nth-child(2) {
        width: 4rem;
    }

    .skeleton-hero-meta-item:nth-child(3) {
        width: 4.5rem;
    }

    .skeleton-hero-meta-item:nth-child(4) {
        width: 4.5rem;
    }

    .skeleton-card .movie-info {
        display: grid;
        gap: 0.6rem;
        padding: 1rem 0 0.9rem;
    }

    .skeleton-card .skeleton-line.medium {
        height: 1.15rem;
    }

    .skeleton-card .skeleton-line.short {
        height: 0.95rem;
    }
}

/* ========================================
   TV / VERY LARGE - 1920px+
   Shared responsive rules
   ======================================== */

@media screen and (min-width: 1920px) {
    /* ========== NAVBAR ========== */
    .navbar-container {
        max-width: 2400px;
    }

    .logo {
        font-size: 3rem;
        letter-spacing: 3px;
    }

    .nav-links {
        gap: 2.5rem;
    }

    .nav-links a {
        font-size: 1.3rem;
        font-weight: 500;
    }

    .nav-links a.active::after {
        bottom: -12px;
        height: 3px;
    }

    .search-container {
        width: 480px;
        height: 50px;
    }

    .navbar-icon {
        width: 50px;
        height: 50px;
    }

    .navbar-icon i {
        font-size: 24px;
    }

    .search-icon {
        right: 0;
    }

    .search-container:focus-within .search-input,
    .search-input:focus {
        width: 480px;
        max-width: 480px;
        height: 50px;
        padding-right: 6.4rem;
        font-size: 1.1rem;
    }

    .search-suggestions {
        width: 480px;
        max-width: 480px;
    }

    .search-clear-btn {
        right: 3.5rem;
    }

    .avatar {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        font-size: 1.1rem;
    }

    .navbar-right {
        gap: 2rem;
    }

    /* ========== HERO ========== */

    .hero {
        padding-bottom: 6rem;
    }

    .hero-content {
        max-width: 1200px;
    }

    .hero-logo {
        max-width: 700px;
        max-height: 260px;

        margin-bottom: 2.5rem;
    }

    .hero-title {
        font-size: 5.5rem;
    }

    .hero-description {
        max-width: 1100px;
        font-size: 1.45rem;
    }

    .hero-buttons {
        --hero-button-height: 3.7rem;
        --favorite-icon-size: 1.15rem;
    }

    .btn {
        padding: 0 2.4rem;
        font-size: 1.35rem;
    }

    .btn i {
        font-size: 1.25rem;
    }

    .hero-meta {
        gap: 1rem;
        font-size: 1.15rem;
    }

    .hero-meta span {
        padding: 0.35rem 0.9rem;
    }

    /* ========== CONTENT / ROWS / CARDS ========== */

    .content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .row-title {
        font-size: 2.6rem;
    }

    .movie-info h4 {
        font-size: 1.2rem;
    }

    .movie-stats {
        font-size: 1rem;
    }

    .rank {
        font-size: 5.2rem;
    }

    /* ========== FOOTER ========== */

    .footer {
        padding-top: 5rem;
        padding-bottom: 2.4rem;
    }

    .footer .container {
        max-width: 1500px;
    }

    .footer-grid {
        gap: 9rem;
    }

    .footer-brand .logo {
        font-size: 3rem;
    }

    .footer-description {
        max-width: 560px;
        font-size: 1.1rem;
        line-height: 1.55;
    }

    .footer-title {
        font-size: 1.25rem;
    }

    .footer-title::after {
        width: 2.4rem;
        height: 0.2rem;
    }

    .footer-link {
        margin-bottom: 1.2rem;
    }

    .footer-link a {
        gap: 0.8rem;
        font-size: 1.1rem;
    }

    .footer-link a i {
        width: 1.2rem;
        font-size: 1rem;
    }

    .footer-divider {
        margin: 3.5rem 0 2rem;
    }

    .copyright {
        font-size: 1rem;
    }

    /* ========== SKELETON ========== */

    .skeleton-hero {
        bottom: 6.2rem;
        max-width: 1200px;
    }

    .skeleton-hero-logo {
        width: min(100%, 660px);
        height: 6.6rem;
        margin-bottom: 2.5rem;
    }

    .skeleton-hero-button {
        width: 9.8rem;
        height: 3.7rem;
    }

    .skeleton-hero-button.secondary {
        width: 12.8rem;
    }

    .skeleton-line {
        height: 1.3rem;
    }

    .skeleton-hero-meta-item {
        width: 7.8rem;
        height: 2.6rem;
    }

    .skeleton-hero-meta-item:nth-child(1) {
        width: 8.25rem;
    }

    .skeleton-hero-meta-item:nth-child(2) {
        width: 4.5rem;
    }

    .skeleton-hero-meta-item:nth-child(3) {
        width: 5.25rem;
    }

    .skeleton-hero-meta-item:nth-child(4) {
        width: 5.25rem;
    }

    .skeleton-card .skeleton-line.medium {
        height: 1.3rem;
    }

    .skeleton-card .skeleton-line.short {
        height: 1rem;
    }
}

/* ========================================
   SMALL MOBILE - 379px-
   Shared responsive rules
   ======================================== */

@media screen and (max-width: 379px) {
    /* ========== NAVBAR ========== */
    .logo {
        font-size: 1.35rem;
        letter-spacing: 1.5px;
    }

    .navbar-right {
        gap: 0.5rem;
    }

    .search-container,
    .navbar-icon,
    .mobile-menu-toggle,
    .avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .navbar-icon i {
        font-size: 17px;
    }

    .search-input {
        max-width: calc(100vw - 6.8rem);
    }

    .search-container:focus-within .search-input,
    .search-input:focus {
        width: calc(100vw - 6.8rem - var(--page-side-padding));
    }

    .search-suggestions {
        width: min(260px, calc(100vw - (var(--page-side-padding) * 2)));
        max-width: min(260px, calc(100vw - (var(--page-side-padding) * 2)));
    }

    .mobile-menu-dropdown {
        right: -0.25rem;
        width: min(235px, calc(100vw - (var(--page-side-padding) * 2)));
    }

    /* ========== HERO ========== */

    .hero-logo {
        max-width: 180px;
        max-height: 75px;

        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .btn i {
        font-size: 0.9rem;
    }

    .hero-meta span {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }

    /* ========== CONTENT / ROWS / CARDS ========== */

    .row-title {
        font-size: 1.4rem;
    }

    .movie-info h4 {
        font-size: 0.84rem;
    }

    .movie-stats {
        font-size: 0.7rem;
    }

    .rank {
        font-size: 2.7rem;
    }

    /* ========== LISTING / GRID PAGES ========== */

    .listing-page {
        padding-top: calc(var(--navbar-height) + 1.5rem);
        padding-bottom: 2.5rem;
    }

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

    /* ========== EPISODES ========== */

    .season-dropdown {
        max-width: 180px;
    }

    .season-dropdown-trigger {
        min-height: 44px;
        padding: 0.72rem 2.6rem 0.72rem 0.9rem;
        font-size: 0.9rem;
    }

    .season-dropdown-trigger-arrow {
        right: 16px;
        width: 9px;
        height: 9px;
    }

    .season-dropdown-option {
        min-height: 40px;
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }

    .episode-card {
        grid-template-columns: 26px 82px 1fr 34px;
        gap: 0.5rem;
    }

    .episode-number {
        font-size: 1.05rem;
    }

    .episode-title {
        font-size: 0.86rem;
    }

    .episode-description {
        font-size: 0.74rem;
        -webkit-line-clamp: 2;
    }

    .episode-duration {
        font-size: 0.75rem;
    }

    /* ========== FOOTER ========== */

    .footer {
        padding-top: 2.5rem;
        padding-bottom: 1.3rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-brand .logo {
        font-size: 1.5rem;
    }

    .footer-description,
    .footer-link a,
    .copyright {
        font-size: 0.84rem;
    }

    /* ========== SKELETON ========== */

    .skeleton-hero-logo {
        width: min(100%, 260px);
        height: 1.9rem;
        margin-bottom: 1rem;
    }

    .skeleton-hero-button {
        width: 6.1rem;
        height: 2.2rem;
    }

    .skeleton-hero-button.secondary {
        width: 7.7rem;
    }

    .skeleton-line {
        height: 0.8rem;
    }

    .skeleton-hero-meta-item {
        width: 4.8rem;
        height: 1.55rem;
    }

    .skeleton-card .skeleton-line.medium {
        height: 0.9rem;
    }

    .skeleton-card .skeleton-line.short {
        height: 0.7rem;
    }
}