@font-face {
    font-family: "Cairo";
    src: url("/assets/fonts/Cairo-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("/assets/fonts/Cairo-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("/assets/fonts/Cairo-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("/assets/fonts/Cairo-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("/assets/fonts/Cairo-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("/assets/fonts/Cairo-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

:root {
    --bg: #0b1020;
    --bg-2: #0f172a;
    --card: #121a2b;
    --card-2: #182235;
    --text: #ffffff;
    --muted: #9ca8bf;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #4f8cff;
    --accent-soft: rgba(79, 140, 255, 0.16);
    --danger: #eb1e1e;
    --radius: 18px;
    --radius-sm: 14px;
    --nav-h: 76px;
	--ui-scale: 0.85;
}

html,
body,
input,
button,
textarea,
select {
    font-family: "Cairo", sans-serif;
}

html,
body {
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    padding-bottom: calc(var(--nav-h) + 12px);
}

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

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

/* ===== Layout ===== */
.page {
    padding: 14px;
}

/* ===== Old desktop compatibility ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 16px 40px;
    background: linear-gradient(
        to right,
        rgba(15, 23, 42, 0.98),
        rgba(15, 23, 42, 0.85)
    );
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo span {
    color: var(--danger);
}

.nav {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: #cbd5f5;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: #ffffff;
}

.search {
    margin-left: auto;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 4px 8px;
}

.search input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 6px 10px;
    width: 180px;
    font-size: 14px;
}

.search input::placeholder {
    color: #cbd5f5;
}

.search button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
}

/* ===== Topbar ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: rgba(11, 16, 32, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.topbar .logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.topbar .logo span {
    color: var(--danger);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

/* ===== Home ===== */
.home-page {
    position: relative;
    min-height: calc(100vh - 90px);
    padding: 0;
}

.home-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-bg__image {
position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    transform: scale(1.03);
    opacity: 0.36;
}

.home-bg__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(79, 140, 255, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(11, 16, 32, 0.28), rgba(11, 16, 32, 0.78));
}

.home-content {
    position: relative;
    z-index: 1;
}

.hero-mobile {
    margin-bottom: 20px;
    padding: 20px 16px;
    border-radius: 22px;
    background: rgba(20, 28, 46, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-mobile__content h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.hero-mobile__content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.home-strip {
    margin-bottom: 26px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-inline: 2px;
}

.section-head h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
}

.section-head a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

/* ===== Horizontal cards ===== */
.cards-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.cards-row::-webkit-scrollbar {
    height: 6px;
}

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

.media-card {
    flex: 0 0 145px;
    scroll-snap-align: start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.media-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
}

.media-card:active {
    transform: scale(0.985);
}

.media-card__poster {
    aspect-ratio: 2 / 3;
    background: #0d1422;
    overflow: hidden;
}

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

.media-card__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
}

.media-card__body {
    padding: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.03));
}

.media-card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.media-card__meta span {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

/* ===== Section pages ===== */
.section-page {
    padding: 0;
}

.section-page__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-page__head h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
}

.section-page__count {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

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

.section-card {
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    color: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.section-card__poster {
    aspect-ratio: 2 / 3;
    background: #0d1422;
    overflow: hidden;
}

.section-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-card__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
}

.section-card__body {
    padding: 10px;
}

.section-card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    min-height: 42px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.section-card__meta span {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding-bottom: 8px;
}

.pagination__item {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.pagination__item.is-active {
    background: rgba(79, 140, 255, 0.18);
    border-color: rgba(79, 140, 255, 0.32);
}

.empty-state {
    padding: 20px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 16px;
}

/* ===== Movie / TV details ===== */
.movie-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
    text-align: center;
}

.movie-details__poster {
    background: #0d1422;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.movie-details__poster img {
    width: 100%;
    display: block;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.movie-details__content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.movie-details__content h1 {
    text-align: center;
}

.movie-details__meta {
    justify-content: center;
}

.movie-details__overview {
    text-align: center;
}

.movie-details__fallback {
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.movie-details__content h1 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.4;
}

.movie-details__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}

.movie-details__meta span {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.movie-details__overview {
    color: #d7deea;
    line-height: 1.9;
    margin-bottom: 16px;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    background: #e50914;
    color: #fff;
    font-weight: 700;
}

/* ===== Season tabs ===== */
.season-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.season-tabs::-webkit-scrollbar {
    height: 6px;
}

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

.season-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.season-tab.is-active {
    background: rgba(79, 140, 255, 0.18);
    border-color: rgba(79, 140, 255, 0.32);
}

/* ===== Bottom nav ===== */
.bottom-nav {
    position: fixed;
    right: 10px;
    left: 10px;
    bottom: 8px;
    z-index: 1001;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    background: rgba(12, 18, 32, 0.55);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.bottom-nav__item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 2px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bottom-nav__icon {
    font-size: 15px;
    line-height: 1;
}
.bottom-nav__label {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-only {
    display: flex;
}

/* ===== Search overlay ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.42);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.search-overlay__panel {
    position: relative;
    z-index: 2;
    width: calc(100% - 24px);
    max-width: 720px;
    margin: 80px auto 0;
    padding: 12px;
    border-radius: 22px;
    background: rgba(12, 18, 32, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.search-overlay__form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-overlay__form input {
    flex: 1;
    height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
}

.search-overlay__form input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.search-overlay__form button {
    height: 50px;
    padding: 0 18px;
    border: none;
    border-radius: 16px;
    background: #e50914;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

body.search-open {
    overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .search input {
        width: 120px;
    }
}

@media (max-width: 768px) {














    .home-bg__image {
opacity: 0.34;
        filter: blur(8px);
        transform: scale(1.02);
}

    .home-bg__overlay {
        background:
            radial-gradient(circle at top, rgba(79, 140, 255, 0.06), transparent 30%),
            linear-gradient(180deg, rgba(11, 16, 32, 0.24), rgba(11, 16, 32, 0.76));
    













}
}

@media (min-width: 768px) {
    body {
        padding-bottom: 20px;
    }

    .page {
        padding: 20px;
    }

    .hero-mobile__content h1 {
        font-size: 34px;
    }

    .media-card {
        flex-basis: 190px;
    }

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

    .movie-details {
        grid-template-columns: 280px 1fr;
        align-items: start;
    }

    .mobile-only {
        display: none;
    }
}

.sort-bar {
    margin-bottom: 16px;
}

.sort-bar__box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}

.sort-bar__icon {
    font-size: 16px;
    color: var(--muted);
    line-height: 1;
}

.sort-bar__box select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    padding-left: 4px;
    cursor: pointer;
}

.sort-bar__box option {
    color: #000;
}

/* ===== Global UI scale ===== */

body {
    font-size: calc(16px * var(--ui-scale));
}

.topbar {
    padding: calc(14px * var(--ui-scale));
}

.topbar .logo {
    font-size: calc(20px * var(--ui-scale));
}

.search-btn {
    width: calc(42px * var(--ui-scale));
    height: calc(42px * var(--ui-scale));
    font-size: calc(18px * var(--ui-scale));
    border-radius: calc(12px * var(--ui-scale));
}

.page {
    padding: calc(14px * var(--ui-scale));
}

.hero-mobile {
    padding: calc(20px * var(--ui-scale)) calc(16px * var(--ui-scale));
    border-radius: calc(22px * var(--ui-scale));
}

.hero-mobile__content h1 {
    font-size: calc(28px * var(--ui-scale));
}

.hero-mobile__content p {
    font-size: calc(14px * var(--ui-scale));
}

.section-head h2,
.section-page__head h1 {
    font-size: calc(19px * var(--ui-scale));
}

.section-head a,
.section-page__count {
    font-size: calc(13px * var(--ui-scale));
}

.cards-row {
    gap: calc(12px * var(--ui-scale));
}

.media-card {
    flex-basis: calc(145px * var(--ui-scale));
    border-radius: calc(18px * var(--ui-scale));
}

.media-card__body,
.section-card__body {
    padding: calc(10px * var(--ui-scale));
}

.media-card__title,
.section-card__title {
    font-size: calc(14px * var(--ui-scale));
    min-height: calc(42px * var(--ui-scale));
}

.media-card__meta,
.section-card__meta {
    font-size: calc(12px * var(--ui-scale));
    gap: calc(6px * var(--ui-scale));
}

.media-card__meta span,
.section-card__meta span {
    padding: calc(3px * var(--ui-scale)) calc(8px * var(--ui-scale));
}

.section-grid {
    gap: calc(12px * var(--ui-scale));
}

.section-card {
    border-radius: calc(18px * var(--ui-scale));
}

.pagination {
    gap: calc(8px * var(--ui-scale));
}

.pagination__item {
    min-width: calc(40px * var(--ui-scale));
    height: calc(40px * var(--ui-scale));
    font-size: calc(14px * var(--ui-scale));
    border-radius: calc(12px * var(--ui-scale));
}

.sort-bar__box {
    min-height: calc(46px * var(--ui-scale));
    padding: 0 calc(12px * var(--ui-scale));
    border-radius: calc(14px * var(--ui-scale));
}

.sort-bar__box select {
    font-size: calc(14px * var(--ui-scale));
}

.movie-details__content h1 {
    font-size: calc(24px * var(--ui-scale));
}

.movie-details__meta {
    font-size: calc(13px * var(--ui-scale));
}

.play-btn,
.player-action {
    font-size: calc(13px * var(--ui-scale));
    border-radius: calc(14px * var(--ui-scale));
}

.bottom-nav {
    right: calc(10px * var(--ui-scale));
    left: calc(10px * var(--ui-scale));
    bottom: calc(10px * var(--ui-scale));
    border-radius: calc(22px * var(--ui-scale));
}

.bottom-nav__item {
    font-size: calc(11px * var(--ui-scale));
    padding: calc(8px * var(--ui-scale)) calc(4px * var(--ui-scale));
}

.bottom-nav__icon {
    font-size: calc(18px * var(--ui-scale));
}

@media (min-width: 768px) {
    .page {
        padding: calc(20px * var(--ui-scale));
    }

    .hero-mobile__content h1 {
        font-size: calc(34px * var(--ui-scale));
    }

    .media-card {
        flex-basis: calc(190px * var(--ui-scale));
    }

    .section-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: calc(16px * var(--ui-scale));
    }

    .movie-details {
        grid-template-columns: calc(280px * var(--ui-scale)) 1fr;
    }
}
@media (max-width: 768px) {
    .bottom-nav {
        right: 8px !important;
        left: 8px !important;
        bottom: 1px !important;
        gap: 2px !important;
        padding: 4px 4px calc(4px + env(safe-area-inset-bottom)) !important;
        border-radius: 16px !important;
    }

    .bottom-nav__item {
        gap: 2px !important;
        padding: 4px 2px !important;
        border-radius: 10px !important;
        font-size: 8px !important;
    }

    .bottom-nav__icon {
        font-size: 14px !important;
    }

    .bottom-nav__label {
        line-height: 1.1 !important;
    }
}
.sort-bar {
    margin-bottom: 16px;
}

.sort-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.sort-trigger__icon {
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
}

.sort-sheet {
    position: fixed;
    inset: 0;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.sort-sheet.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sort-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5,10,20,.46);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.sort-sheet__panel {
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 12px;
    background: rgba(14, 18, 30, 0.88);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.36);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.sort-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.sort-sheet__head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

.sort-sheet__x {
    border: none;
    background: rgba(255,255,255,.06);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
}

.sort-sheet__list {
    display: grid;
}

.sort-sheet__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 0 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-top: 1px solid rgba(255,255,255,.05);
}

.sort-sheet__item:first-child {
    border-top: none;
}

.sort-sheet__item.is-active {
    background: rgba(79,140,255,.14);
}

.sort-sheet__check {
    color: #7dd3fc;
    font-size: 16px;
    font-weight: 900;
}

body.sort-sheet-open {
    overflow: hidden;
}

@media (min-width: 769px) {
    .sort-sheet__panel {
        right: auto;
        left: 20px;
        bottom: auto;
        top: 170px;
        width: 280px;
    }
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    transition: .2s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,.10);
}

.back-btn:active {
    transform: scale(.98);
}

.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(8, 12, 24, .78);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    cursor: pointer;
    transition: .18s ease;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.favorite-btn:hover {
    transform: scale(1.04);
}

.favorite-btn.is-active {
    background: rgba(229, 9, 20, .18);
    border-color: rgba(229, 9, 20, .42);
    color: #ff5a64;
}

.favorite-btn__text {
    transform: translateY(-1px);
}

.section-card,
.episode-card,
.movie-details__poster,
.player-video-wrap {
    position: relative;
}

.watch-badge {
    display: none;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(8, 12, 24, .82);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.section-card.is-watched .watch-badge,
.episode-card.is-watched .watch-badge {
    background: rgba(20, 120, 70, .88);
    border-color: rgba(90, 220, 140, .25);
}

.watch-progress {
    position: absolute;
    right: 10px;
    left: 10px;
    bottom: 0;
    z-index: 4;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}

.watch-progress__bar {
    width: 0;
    height: 100%;
    opacity: 0;
    border-radius: inherit;
    background: #e50914;
    transition: width .2s ease, opacity .2s ease;
}

.player-favorite-btn {
    top: 12px;
    left: 12px;
}

.player-watch-status {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 5;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(8, 12, 24, .78);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.player-watch-status.is-complete {
    background: rgba(20, 120, 70, .88);
    border-color: rgba(90, 220, 140, .25);
}

@media (max-width: 768px) {
    .favorite-btn {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .watch-badge {
        font-size: 11px;
        min-height: 26px;
        padding: 0 8px;
    }
}
