/*
 * Gledam media interface
 * This layer intentionally replaces the legacy visual system while keeping
 * the DOM hooks used by the existing IPTV JavaScript.
 */

:root {
    --ui-bg: #080a11;
    --ui-bg-soft: #0d1220;
    --ui-panel: rgba(18, 22, 36, 0.9);
    --ui-panel-solid: #121725;
    --ui-panel-light: #1b2233;
    --ui-line: rgba(246, 165, 55, 0.14);
    --ui-text: #f7f3ef;
    --ui-muted: #a59baa;
    --ui-accent: #f6a52f;
    --ui-accent-strong: #e75435;
    --ui-blue: #168ba6;
    --ui-magenta: #a83278;
    --ui-danger: #ef4339;
    --ui-radius: 24px;
    --ui-radius-sm: 14px;
    --ui-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    --background-color: var(--ui-bg);
    --place-holder-second-color: var(--ui-panel-solid);
    --time-color: var(--ui-accent-strong);
    --ellipse-color: rgba(168, 50, 120, 0.12);
    --big-buttons: linear-gradient(135deg, #f7ad32, #e55234 58%, #a83278);
}

html {
    background: var(--ui-bg);
}

body,
input,
button,
textarea,
select {
    font-family: "Golos Text", "SourceSansPro", Arial, sans-serif;
}

body {
    color: var(--ui-text);
    background: radial-gradient(circle at 8% 12%, rgba(14, 126, 153, 0.2), transparent 30rem),
    radial-gradient(circle at 90% 24%, rgba(168, 50, 120, 0.14), transparent 28rem),
    radial-gradient(circle at 72% 88%, rgba(231, 84, 53, 0.1), transparent 34rem),
    var(--ui-bg);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    opacity: 0.25;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
}

.media-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(5, 13, 17, 0.88), rgba(8, 10, 17, 0.84), rgba(22, 5, 19, 0.86)),
    url("../img/index-first-block.jpg") center / cover no-repeat;
    /*opacity: 0.48;*/
}

.media-app .menubg,
.media-app .mobile-menu,
.media-app .media-shell,
.media-app .temporary-block-for-player,
.media-app > .login-form-popup {
    position: relative;
    z-index: 1;
}

* {
    outline: revert !important;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--ui-accent) !important;
    outline-offset: 3px;
}

.iptv-connection-error-message {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    max-width: min(420px, calc(100vw - 48px));
    padding: 16px 18px;
    transform: translateY(18px);
    transition: 0.25s ease;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(239, 67, 57, 0.38);
    border-radius: 16px;
    color: #fff0ed;
    background: rgba(48, 12, 14, 0.94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
}

.iptv-connection-error-message.is-visible {
    transform: translateY(0);
    opacity: 1;
}

html,
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.wrap {
    width: calc(100% - 16px);
    max-width: none;
}

.media-shell {
    overflow: visible;
}

.media-content {
    padding-top: 96px;
}

.ellipse-green,
.ellipse-white {
    display: none;
}

/* Header */

.new-header {
    position: fixed;
    inset: 4px 0 auto;
    z-index: 100;
    height: auto;
    padding: 0;
    background: transparent;
    transition: transform 0.25s ease;
}

.new-header .wrap {
    min-height: 66px;
    padding: 8px 12px 8px 18px;
    align-items: center;
    flex-wrap: nowrap;
    border: 1px solid var(--ui-line);
    border-radius: 18px;
    background: rgba(8, 19, 24, 0.82);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(24px);
}

.new-header.bg {
    background: transparent;
}

.new-header .logo,
.new-header .video-logo {
    position: static;
    width: auto;
    margin: 0 36px 0 0;
}

.new-header .logo a {
    display: flex;
    align-items: center;
}

.new-header .logo img {
    display: block;
    width: 46px;
    height: 46px;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 7px 14px rgba(231, 84, 53, 0.24));
}

.new-header nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

.new-header nav > ul {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.new-header nav ul li {
    margin: 0;
}

.new-header nav ul li > a {
    min-height: 42px;
    padding: 11px 16px;
    border-radius: 12px;
    color: var(--ui-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    transition: 0.2s ease;
}

.new-header nav ul li:hover > a,
.new-header nav ul li > a.active {
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.07);
}

.new-header nav ul li ul {
    top: 48px;
    min-width: 270px;
    padding: 10px;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: rgba(12, 27, 33, 0.98);
    box-shadow: var(--ui-shadow);
}

.new-header nav ul li ul::before {
    display: none;
}

.new-header nav ul li ul li a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ui-muted);
}

.new-header nav ul li ul li a:hover {
    color: var(--ui-text);
    background: rgba(246, 165, 47, 0.1);
}

.new-header nav .search-link,
.new-header .user-link {
    position: relative;
    width: 42px;
    height: 42px;
    margin: 0 0 0 8px;
    flex: 0 0 42px;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.04);
    background-position: center;
    background-repeat: no-repeat;
    transition: 0.2s ease;
}

.new-header nav .search-link:hover,
.new-header .user-link:hover {
    border-color: rgba(246, 165, 47, 0.5);
    background-color: rgba(168, 50, 120, 0.14);
}

.new-header nav form {
    top: 54px;
    right: 0;
    left: auto;
    width: min(460px, calc(100vw - 48px));
    height: auto;
    padding: 12px;
    border: 1px solid var(--ui-line);
    border-radius: 18px;
    background: rgba(12, 27, 33, 0.98);
    box-shadow: var(--ui-shadow);
}

.new-header nav form input[type="text"] {
    height: 48px;
    padding: 0 52px 0 16px;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.05);
}

.new-header nav form .window {
    position: static;
    width: 100%;
    max-height: 60vh;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ui-text);
}

.profile-block {
    top: 60px;
    right: 0;
    width: 300px;
    padding: 10px;
    border: 1px solid var(--ui-line);
    border-radius: 18px;
    background: rgba(12, 27, 33, 0.98);
    box-shadow: var(--ui-shadow);
}

.profile-block-wrapper {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

/* Shared content */

.page-heading {
    padding: 56px 0 32px;
}

.page-heading .eyebrow,
.auth-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--ui-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-heading h1 {
    margin: 0;
    color: var(--ui-text);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
}

.index-catalog-block {
    margin: 0 0 64px;
}

.index-catalog-block .wrap > .flex {
    margin-bottom: 20px;
    align-items: end;
}

.index-catalog-block h2 {
    margin: 0;
    color: var(--ui-text);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 650;
    letter-spacing: -0.035em;
}

.index-catalog-block .slider-wrapp {
    width: min(1480px, calc(100% - 64px));
    margin: 0 auto;
    overflow: visible;
}

.index-catalog-block .list .item,
.index-catalog-block .img-lg,
.index-catalog-block .img-sm,
#block-favorite-tv .swiper-slide {
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 18px;
    background: var(--ui-panel-solid);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.index-catalog-block .list .item:hover,
.index-catalog-block .img-lg:hover,
.index-catalog-block .img-sm:hover,
#block-favorite-tv .swiper-slide:hover {
    z-index: 2;
    border-color: rgba(246, 165, 47, 0.58);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
    transform: translateY(-7px);
}

.index-catalog-block .list .item img,
.index-catalog-block .image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.index-catalog-block .list .item .play,
.wish-list-page .list .item .play {
    background-color: rgba(7, 16, 20, 0.38);
    backdrop-filter: blur(3px);
}

.index-catalog-block .list .item .play::after,
.wish-list-page .list .item .play::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    content: "";
    background: rgba(239, 111, 42, 0.94) url("../img/temp/play.svg") center / 18px no-repeat;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -45%) scale(0.85);
    transition: 0.25s ease;
}

.index-catalog-block .list .item:hover .play::after,
.wish-list-page .list .item:hover .play::after {
    transform: translate(-50%, -50%) scale(1);
}

.slick-prev,
.slick-next,
.swiper-button-prev,
.swiper-button-next {
    border: 1px solid var(--ui-line) !important;
    border-radius: 50% !important;
    background-color: rgba(12, 27, 33, 0.92) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

/* Video landing */

.index-slider-nav {
    padding: 38px 0 18px;
    background: transparent;
}

.index-slider-nav .select {
    position: relative;
    width: max-content;
}

.index-slider-nav .select .link {
    display: flex;
    min-width: 190px;
    min-height: 44px;
    padding: 11px 42px 11px 16px;
    align-items: center;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    color: var(--ui-text);
    background-color: rgba(255, 255, 255, 0.04);
}

.index-slider-nav .select ul {
    top: 52px;
    min-width: 260px;
    max-height: 420px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: var(--ui-panel-solid);
    box-shadow: var(--ui-shadow);
}

.index-page-slider {
    width: min(1480px, calc(100% - 64px));
    margin: 0 auto 56px;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 30px;
    background: var(--ui-panel-solid);
    box-shadow: var(--ui-shadow);
}

.index-page-slider .item {
    height: min(68vh, 720px);
    min-height: 560px;
    border-radius: 30px;
}

.index-page-slider .item::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background: linear-gradient(90deg, rgba(6, 14, 18, 0.98) 0%, rgba(6, 14, 18, 0.72) 38%, rgba(6, 14, 18, 0.08) 72%),
    linear-gradient(0deg, rgba(6, 14, 18, 0.78), transparent 45%);
}

.index-page-slider .item .info {
    top: 50%;
    z-index: 2;
}

.index-page-slider .item .info h3 {
    width: min(680px, 62vw);
    margin-bottom: 22px;
    color: var(--ui-text);
    font-size: clamp(44px, 6vw, 82px);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.index-page-slider .item .info p {
    width: min(610px, 60vw);
    color: rgba(243, 248, 247, 0.72);
    font-size: 17px;
    line-height: 1.65;
}

.index-page-slider .item .info .tags span,
.serial-page .main-block .tags span {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
}

.index-page-slider .item .button {
    z-index: 3;
    bottom: 52px;
}

.index-page-slider .item .button button,
.serial-page .main-block .buttons button,
.index-catalog-block .more-video-button,
.index-catalog-block .more-video-button-render {
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    color: #130b09;
    background: var(--big-buttons);
    box-shadow: 0 12px 30px rgba(231, 84, 53, 0.26);
}

.index-page-slider .item .button button:hover,
.serial-page .main-block .buttons button:hover {
    box-shadow: 0 16px 36px rgba(246, 165, 47, 0.34);
    transform: translateY(-2px);
}

.index-page-slider .slick-dots {
    bottom: 26px;
    left: auto;
    right: 32px;
    width: auto;
}

.index-page-slider .slick-dots li button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.index-page-slider .slick-dots li.slick-active button {
    width: 30px;
    background: var(--ui-accent);
}

.slider-cart {
    display: none;
}

/* TV overview */

.tv-page {
    --tv-column-gap: 12px;
    --tv-column-width: calc((100vw - 16px - (var(--tv-column-gap) * 2)) / 3);
    --tv-column-1: 8px;
    --tv-column-2: calc(8px + var(--tv-column-width) + var(--tv-column-gap));
    --tv-column-3: calc(8px + (var(--tv-column-width) + var(--tv-column-gap)) * 2);
    padding: 8px 0 72px;
}

.tv-page .wrap {
    width: calc(100% - 16px);
    max-width: none;
    min-height: calc(100vh - 82px);
}

.tv-page .tv-page-flex {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(520px, 34vw);
    gap: 18px !important;
    align-items: start;
}

.tv-page .tv-page-player-preview {
    position: fixed;
    top: 74px;
    left: 8px;
    z-index: 2;
    width: calc(100vw - clamp(520px, 34vw, 680px) - 34px);
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: calc(100vh - 82px);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 24px;
    background: #05080f;
    box-shadow: var(--ui-shadow);
}

.tv-page .tv-page-player-poster {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 32px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(5, 9, 15, 0.12), rgba(5, 9, 15, 0.82)),
    url("../img/index-first-block.jpg") center / cover no-repeat;
}

.tv-page .tv-page-player-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 46%, rgba(246, 165, 47, 0.16), transparent 24%),
    linear-gradient(90deg, rgba(5, 20, 27, 0.76), rgba(10, 7, 15, 0.55), rgba(35, 8, 26, 0.72));
}

.tv-page .tv-page-player-poster img {
    width: clamp(92px, 8vw, 152px);
    height: clamp(92px, 8vw, 152px);
    object-fit: contain;
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.45));
}

.tv-page .tv-page-player-poster span {
    max-width: 440px;
    color: var(--ui-text);
    font-size: clamp(18px, 1.5vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.tv-page .tv-page-player-mount {
    display: none;
    width: 100%;
    height: 100%;
}

.tv-page .tv-page-player-preview.is-playing .tv-page-player-poster {
    display: none;
}

.tv-page .tv-page-player-preview.is-playing .tv-page-player-mount {
    display: block;
}

.tv-page .tv-page-player-mount .block-tv-player,
.tv-page .tv-page-player-mount #tv-player {
    width: 100%;
    height: 100% !important;
}

.tv-page .tv-page-player-preview.is-loading .tv-page-player-mount {
    opacity: 0.58;
}

.tv-page .tv-page-now-info {
    position: fixed;
    top: calc(74px + ((100vw - clamp(520px, 34vw, 680px) - 34px) * 9 / 16) + 14px);
    left: 8px;
    z-index: 2;
    width: calc(100vw - clamp(520px, 34vw, 680px) - 34px);
    min-height: 0;
    padding: 0 2px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.tv-page .tv-page-now-empty {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    color: var(--ui-muted);
    font-size: 16px;
    text-align: center;
}

.tv-page .tv-now-main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.tv-page .tv-now-logo {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    object-fit: contain;
    border: 1px solid rgba(42, 230, 139, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.tv-page .tv-now-copy {
    min-width: 0;
}

.tv-page .tv-now-badges {
    display: flex;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 7px;
}

.tv-page .tv-now-badges span {
    display: inline-flex;
    max-width: 180px;
    padding: 5px 9px;
    overflow: hidden;
    border: 1px solid rgba(42, 230, 139, 0.22);
    border-radius: 999px;
    color: #9affca;
    background: rgba(42, 230, 139, 0.09);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.tv-page .tv-now-copy h2,
.tv-page .tv-now-main h2 {
    margin: 0 0 6px;
    color: var(--ui-text);
    font-size: clamp(20px, 1.7vw, 30px);
    line-height: 1.12;
}

.tv-page .tv-now-copy h3 {
    display: flex;
    margin: 0 0 8px;
    align-items: baseline;
    gap: 10px;
    overflow: hidden;
    color: #dff8ec;
    font-size: clamp(16px, 1.2vw, 22px);
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-page .tv-now-copy h3 span {
    flex: 0 0 auto;
    color: #2ae68b;
    font-size: 0.82em;
}

.tv-page .tv-now-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ui-muted);
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tv-page .tv-now-progress {
    height: 5px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.tv-page .tv-now-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2ae68b, #9affca);
    box-shadow: 0 0 18px rgba(42, 230, 139, 0.4);
}

.tv-page .tv-now-skeleton {
    width: min(100%, 420px);
    height: 14px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(42, 230, 139, 0.14), rgba(255, 255, 255, 0.06));
    background-size: 220% 100%;
    animation: tv-program-placeholder 1.15s linear infinite;
}

.tv-page .tv-now-skeleton-short {
    width: 190px;
}

.tv-page .tv-program-guide-button {
    position: fixed;
    top: 74px;
    right: 8px;
    z-index: 3;
    width: clamp(520px, 34.8vw, 680px);
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--ui-muted);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    backdrop-filter: blur(18px);
}

.tv-page.is-guide-mode .tv-program-guide-button {
    border-color: rgba(42, 230, 139, 0.5);
    color: #dff8ec;
    background: linear-gradient(135deg, rgba(42, 230, 139, 0.22), rgba(168, 50, 120, 0.14));
}

.tv-page .tv-guide-archive-panel {
    display: none;
}

.tv-page.is-guide-mode .tv-page-player-preview {
    left: var(--tv-column-1);
    width: var(--tv-column-width);
}

.tv-page.is-guide-mode .tv-page-now-info {
    left: var(--tv-column-1);
    top: calc(74px + (var(--tv-column-width) * 9 / 16) + 14px);
    width: var(--tv-column-width);
}

.tv-page.is-guide-mode .tv-program-guide-button {
    right: auto;
    left: var(--tv-column-2);
    width: var(--tv-column-width);
}

.tv-page.is-guide-mode nav {
    right: auto;
    left: var(--tv-column-2);
    width: var(--tv-column-width);
}

.tv-page.is-guide-mode .tv-category-panel {
    width: var(--tv-column-width);
}

.tv-page.is-guide-mode .tv-guide-archive-panel {
    position: fixed;
    top: 74px;
    left: var(--tv-column-3);
    z-index: 2;
    display: block;
    width: var(--tv-column-width);
    height: calc(100vh - 78px);
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    background: var(--ui-panel);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
}

.tv-page .tv-guide-date-carousel {
    display: flex;
    padding: 12px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tv-page .tv-guide-date-carousel::-webkit-scrollbar {
    height: 6px;
}

.tv-page .tv-guide-date {
    display: inline-flex;
    min-width: 72px;
    min-height: 58px;
    padding: 8px 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--ui-muted);
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
}

.tv-page .tv-guide-date span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.tv-page .tv-guide-date strong {
    color: var(--ui-text);
    font-size: 15px;
    line-height: 1;
}

.tv-page .tv-guide-date.is-past {
    border-color: rgba(246, 165, 47, 0.24);
    color: #f6c27b;
    background: rgba(246, 165, 47, 0.09);
}

.tv-page .tv-guide-date.is-past strong {
    color: #ffd79a;
}

.tv-page .tv-guide-date.is-today {
    border-color: rgba(42, 230, 139, 0.28);
    color: #b8f5d3;
    background: rgba(42, 230, 139, 0.08);
}

.tv-page .tv-guide-date.is-today strong {
    color: #dff8ec;
}

.tv-page .tv-guide-date.is-active {
    border-color: rgba(42, 230, 139, 0.56);
    color: #9affca;
    background: rgba(42, 230, 139, 0.14);
    box-shadow: inset 0 -3px #2ae68b;
}

.tv-page .tv-guide-program-list {
    height: calc(100% - 86px);
    padding: 0 12px 12px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.tv-page .tv-guide-program-list::-webkit-scrollbar {
    width: 6px;
}

.tv-page .tv-guide-empty {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    color: var(--ui-muted);
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.tv-page .tv-guide-program {
    display: grid;
    min-height: 76px;
    margin-bottom: 8px;
    padding: 12px;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.tv-page .tv-guide-program.current {
    border-color: rgba(42, 230, 139, 0.48);
    background: rgba(42, 230, 139, 0.12);
    box-shadow: inset 3px 0 #2ae68b;
}

.tv-page .tv-guide-program.archive {
    opacity: 0.72;
}

.tv-page .tv-guide-program-time {
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.tv-page .tv-guide-program.archive .tv-guide-program-time {
    color: #f6a52f;
}

.tv-page .tv-guide-program.current .tv-guide-program-time {
    color: #2ae68b;
}

.tv-page .tv-guide-program.future .tv-guide-program-time {
    color: #8d98a8;
}

.tv-page .tv-guide-program.future {
    cursor: not-allowed;
}

.tv-page .tv-guide-program.is-playing {
    border-color: rgba(42, 230, 139, 0.72);
    box-shadow: inset 3px 0 #2ae68b, 0 0 0 1px rgba(42, 230, 139, 0.12);
}

.tv-page .tv-guide-program-copy {
    min-width: 0;
}

.tv-page .tv-guide-program-copy h4 {
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--ui-text);
    font-size: 16px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-page .tv-guide-program-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ui-muted);
    font-size: 13px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tv-page .tv-guide-program-skeleton {
    height: 76px;
    margin-bottom: 8px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(42, 230, 139, 0.11), rgba(255, 255, 255, 0.045));
    background-size: 220% 100%;
    animation: tv-program-placeholder 1.15s linear infinite;
}

.tv-page nav {
    position: fixed;
    top: 126px;
    right: 8px;
    z-index: 2;
    width: clamp(520px, 34vw, 680px);
    max-height: calc(100vh - 138px);
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    background: var(--ui-panel);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
}

.tv-page nav > ul {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 4px;
}

.tv-page nav ul li a {
    min-height: 48px;
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
    color: var(--ui-muted);
}

.tv-page nav ul li a:hover,
.tv-page nav ul li a.active {
    color: var(--ui-text);
    background: linear-gradient(90deg, rgba(168, 50, 120, 0.18), rgba(246, 165, 47, 0.08));
}

.tv-page nav ul li a.active {
    box-shadow: inset 3px 0 var(--ui-accent);
}

.tv-page .tv-category-panel {
    grid-column: 2;
    justify-self: end;
    width: clamp(520px, 34.8vw, 680px);
    max-width: 100%;
    margin-top: 0;
}

.tv-page .tv-category-item {
    overflow: hidden;
    border-radius: 14px;
}

.tv-page .tv-category-trigger {
    justify-content: space-between;
}

.tv-page .tv-category-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.tv-page .tv-category-title,
.tv-page .tv-category-title span,
.tv-page .tv-category-count {
    float: none;
}

.tv-page .tv-category-icon {
    position: relative;
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(246, 165, 47, 0.18);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
}

.tv-page .tv-category-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.tv-page .tv-category-item.is-broadcasting .tv-category-icon {
    border-color: rgba(42, 230, 139, 0.74);
    background: rgba(42, 230, 139, 0.16);
    box-shadow: 0 0 0 4px rgba(42, 230, 139, 0.08);
}

.tv-page .tv-category-item.is-broadcasting .tv-category-icon img {
    display: none;
}

.tv-page .tv-category-item.is-broadcasting .tv-category-icon::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #2ae68b;
    box-shadow: 0 0 18px rgba(42, 230, 139, 0.86);
}

.tv-page .tv-category-item.is-broadcasting .tv-category-icon::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(42, 230, 139, 0.72);
    border-radius: 999px;
    animation: tv-live-pulse 1.25s ease-out infinite;
}

@keyframes tv-live-pulse {
    from {
        opacity: 0.9;
        transform: scale(0.72);
    }

    to {
        opacity: 0;
        transform: scale(1.45);
    }
}

.tv-page .tv-category-title .category-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-page .tv-category-count {
    flex: 0 0 auto;
    color: var(--ui-accent);
    font-size: 13px;
}

.tv-page .tv-category-channels {
    display: none;
    width: 100%;
    padding: 8px 0 12px 8px;
}

.tv-page .tv-category-item.is-open .tv-category-channels {
    display: flex;
    flex-direction: column;
}

.tv-page .tv-category-channels li {
    width: 100%;
}

.tv-page .tv-category-channels li a {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 96px;
    padding: 12px 10px;
    gap: 18px;
    color: var(--ui-muted);
    font-size: 16px;
}

.tv-page .tv-category-channels li a:hover {
    color: var(--ui-text);
}

.tv-page .tv-category-channels li a.is-active {
    color: var(--ui-text);
    background: linear-gradient(90deg, rgba(42, 230, 139, 0.18), rgba(42, 230, 139, 0.06));
    box-shadow: inset 3px 0 #2ae68b;
}

.tv-page .tv-category-channel img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: contain;
    border-radius: 8px;
}

.tv-page .tv-category-channel-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    float: none;
}

.tv-page .tv-category-channel-name,
.tv-page .tv-category-channel-program {
    display: block;
    float: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-page .tv-category-channel-name {
    color: var(--ui-text);
    font-size: 18px;
    font-weight: 700;
}

.tv-page .tv-category-channel-program {
    min-height: 36px;
    color: var(--ui-muted);
    font-size: 13px;
    line-height: 1.35;
    opacity: 0.78;
    white-space: normal;
}

.tv-page .tv-category-channel-program.is-loading {
    display: flex;
    width: min(100%, 320px);
    flex-direction: column;
    gap: 7px;
    color: transparent;
    font-size: 0;
}

.tv-page .tv-category-channel-program.is-loading::before,
.tv-page .tv-category-channel-program.is-loading::after {
    content: "";
    display: block;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(246, 165, 47, 0.14), rgba(255, 255, 255, 0.06));
    background-size: 220% 100%;
    animation: tv-program-placeholder 1.15s linear infinite;
}

.tv-page .tv-category-channel-program.is-loading::before {
    width: 42%;
}

.tv-page .tv-category-channel-program.is-loading::after {
    width: 86%;
}

.tv-page nav .tv-category-trigger .tv-category-title,
.tv-page nav .tv-category-trigger .tv-category-title span,
.tv-page nav .tv-category-trigger .tv-category-count {
    display: inline-flex;
    float: none;
}

.tv-page nav .tv-category-trigger .category-name {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-page nav .tv-category-channel .tv-category-channel-info {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    float: none;
}

.tv-page nav .tv-category-channel .tv-category-channel-name {
    display: block;
    float: none;
    color: var(--ui-text);
    font-size: 18px;
    font-weight: 700;
}

.tv-page nav .tv-category-channel .tv-category-channel-program {
    display: block;
    float: none;
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 400;
}

@keyframes tv-program-placeholder {
    from {
        background-position: 120% 0;
    }

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

.tv-page .wrap-container-list,
.tv-page .tv-page-menu {
    width: 100%;
    min-width: 0;
}

.tv-page .toggle {
    min-height: 56px;
    margin-bottom: 14px;
    padding: 8px 10px;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: var(--ui-panel);
}

.tv-page .toggle-container {
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.tv-page .switch-slider {
    border-radius: 9px;
    background: var(--ui-accent-strong);
}

.tv-page .list {
    width: 100%;
    gap: 12px;
}

.tv-page .list .item.channel {
    width: 100%;
    min-height: 176px;
    margin: 0;
    padding: 12px;
    align-items: stretch;
    border: 1px solid var(--ui-line);
    border-radius: 18px;
    background: var(--ui-panel);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.15);
    transition: 0.25s ease;
}

.tv-page .list .item.channel:hover {
    border-color: rgba(246, 165, 47, 0.46);
    background: var(--ui-panel-light);
    transform: translateY(-2px);
}

.tv-page .list .item .image {
    width: 42%;
    height: auto !important;
    min-height: 150px;
    margin: 0;
    flex: 0 0 42%;
    overflow: hidden;
    border-radius: 12px;
}

.tv-page .list .item .info {
    width: auto;
    min-width: 0;
    padding: 4px 6px 4px 16px;
    flex: 1;
}

.tv-page .info .platform {
    color: var(--ui-muted);
}

.tv-page .info .platform img {
    border-radius: 6px;
}

.tv-page .list .item h4 {
    margin: 10px 0 7px;
    color: var(--ui-text);
    font-size: 18px;
}

.tv-page .list .item p {
    color: var(--ui-muted);
    line-height: 1.45;
}

.tv-page .list .item .time,
.tv-page #channel-list-by-category.wide-list .info .time {
    position: static;
    margin-top: 8px;
    color: var(--ui-accent);
}

.tv-page .wide-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tv-page .wide-list .item {
    width: 100%;
    display: block;
}

.tv-page .wide-list .item .image {
    width: 100%;
    min-height: 145px;
}

.tv-page .wide-list .item .info {
    padding: 14px 4px 4px;
}

.tv-page .tv-page-menu {
    overflow: hidden auto;
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    background: var(--ui-panel);
}

.tv-page .tv-page-flex > .tv-page-menu {
    display: none;
}

.static-block-player {
    top: 106px;
    padding: 10px;
    border-bottom: 1px solid var(--ui-line);
    background: var(--ui-panel-solid);
}

.block-tv-player,
.block-player-channel-page {
    border-radius: 16px;
    background: #000;
}

.date-slider {
    padding: 10px 42px;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: var(--ui-panel);
}

.date-slider .date {
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--ui-muted);
}

.date-slider .date.slick-current,
.date-slider .date.slick-current.current,
.date-slider .program-archive.current {
    border-color: rgba(246, 165, 47, 0.48);
    color: var(--ui-text);
    background: linear-gradient(135deg, rgba(168, 50, 120, 0.2), rgba(246, 165, 47, 0.12));
}

/* Channel page */

.tv-page .channel-date-slider {
    position: sticky;
    top: 102px;
    z-index: 20;
    margin-bottom: 18px;
    backdrop-filter: blur(18px);
}

.flex-slider-for {
    height: calc(100vh - 210px);
    min-height: 620px;
    flex-wrap: nowrap;
    gap: 18px;
}

.tv-page .video.block-player-and-info {
    width: 66%;
    padding: 14px;
    overflow-y: auto;
    border: 1px solid var(--ui-line);
    border-radius: 22px;
    background: var(--ui-panel);
}

.tv-page .list.small.program-list {
    width: 34%;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--ui-line);
    border-radius: 22px;
    background: var(--ui-panel);
}

.tv-page .program-list .item {
    min-height: 136px;
    padding: 10px;
    border-bottom: 1px solid var(--ui-line);
}

.tv-page .program-list .item .image {
    width: 120px;
    min-height: 104px;
    flex: 0 0 120px;
}

/* Movie detail */

.serial-page {
    padding-bottom: 72px;
}

.serial-page .main-block {
    width: min(1480px, calc(100% - 64px));
    min-height: min(76vh, 760px);
    margin: 38px auto 44px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 30px;
    box-shadow: var(--ui-shadow);
}

.serial-page .main-block::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(5, 13, 17, 0.98), rgba(5, 13, 17, 0.72) 45%, rgba(5, 13, 17, 0.1));
}

.serial-page .main-block .wrap {
    position: relative;
    z-index: 2;
    min-height: min(76vh, 760px);
    padding-top: clamp(140px, 18vh, 220px);
}

.serial-page .main-block h1 {
    width: min(760px, 70%);
    color: var(--ui-text);
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.serial-page .main-block > .wrap > p {
    width: min(620px, 60%);
    color: rgba(243, 248, 247, 0.72);
    font-size: 17px;
    line-height: 1.65;
}

.serial-page .main-block .buttons {
    display: flex;
    gap: 10px;
}

.serial-page .main-block .buttons button.other {
    border: 1px solid var(--ui-line);
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.serial-page .tabs {
    padding: 8px 0 32px;
}

.serial-page .tabs .tabNavigation {
    display: flex;
    width: max-content;
    margin-bottom: 26px;
    padding: 5px;
    gap: 4px;
    border: 1px solid var(--ui-line);
    border-radius: 14px;
    background: var(--ui-panel);
}

.serial-page .tabs .tabNavigation li {
    margin: 0;
}

.serial-page .tabs .tabNavigation li a {
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    color: var(--ui-muted);
}

.serial-page .tabs .tabNavigation li a.selected {
    color: var(--ui-text);
    background: linear-gradient(135deg, rgba(168, 50, 120, 0.22), rgba(246, 165, 47, 0.12));
}

.serial-page .tabs .series .tabNavigation2 {
    gap: 8px;
}

.serial-page .tabs .series .tabNavigation2 li a {
    border: 1px solid var(--ui-line);
    border-radius: 999px;
    color: var(--ui-muted);
    background: transparent;
}

.serial-page .tabs .series .tabNavigation2 li a.selected {
    border-color: var(--ui-accent-strong);
    color: #160b08;
    background: var(--ui-accent);
}

.serial-page .tabs .about {
    gap: 18px;
}

.serial-page .tabs .about .info1,
.serial-page .tabs .about .info2 {
    padding: 22px;
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    background: var(--ui-panel);
}

/* Favorites */

.wish-list-page {
    padding: 24px 0 80px;
}

.favorite-section {
    margin-bottom: 54px;
}

.favorite-section h2 {
    margin: 0 0 20px;
    color: var(--ui-text);
    font-size: 28px;
    font-weight: 650;
}

.wish-list-page .list.favorite-page-tv,
.wish-list-page .list.favorite-page-video {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.wish-list-page .list .item,
.wish-list-page .favorite-page-tv .item {
    width: 100%;
    height: auto;
    min-height: 180px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 18px;
    background: var(--ui-panel-solid);
    transform: none;
    box-shadow: none;
}

.wish-list-page .list .item:hover {
    z-index: 2;
    border-color: rgba(246, 165, 47, 0.54);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    transform: translateY(-5px);
}

.wish-list-page .favorite-page-video .item {
    aspect-ratio: 2 / 3;
}

.wish-list-page .favorite-page-tv .item {
    aspect-ratio: 16 / 9;
}

.wish-list-page .list .item .delete {
    top: 10px;
    right: 10px;
    left: auto;
    width: 38px;
    height: 38px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: transparent;
    background: rgba(7, 16, 20, 0.82);
}

.wish-list-page .list .item .delete i {
    inset: 0;
    margin: auto;
}

.wish-list-page .list .item .play {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    background: rgba(7, 16, 20, 0.18);
}

.wish-list-page .list .item .play:hover {
    width: 100%;
    height: 100%;
}

/* Authentication */

.auth-page {
    min-height: 100vh;
    overflow: auto;
    overflow-x: hidden;
    background: radial-gradient(circle at 12% 18%, rgba(13, 128, 155, 0.24), transparent 30rem),
    radial-gradient(circle at 88% 72%, rgba(168, 50, 120, 0.2), transparent 30rem),
    radial-gradient(circle at 70% 100%, rgba(231, 84, 53, 0.13), transparent 32rem),
    var(--ui-bg);
}

.auth-page .page.login {
    min-height: 100vh;
    padding: 36px 0;
}

.auth-page .login-page {
    width: 100%;
    padding: 0;
}

.auth-page .login-page > .wrap {
    display: grid;
    min-height: calc(100vh - 110px);
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

.auth-intro,
.auth-panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 28px;
    box-shadow: var(--ui-shadow);
}

.auth-intro {
    display: flex;
    padding: clamp(32px, 5vw, 72px);
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, rgba(5, 9, 18, 0.92) 0%, rgba(5, 9, 18, 0.52) 48%, rgba(18, 8, 18, 0.2) 100%),
    url("../img/index-first-block.jpg") 54% center / cover no-repeat;
}

.auth-intro::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(0deg, rgba(7, 8, 14, 0.86), transparent 56%),
    linear-gradient(135deg, rgba(13, 128, 155, 0.12), transparent 45%, rgba(231, 84, 53, 0.12));
}

.auth-intro > * {
    position: relative;
    z-index: 1;
}

.auth-intro .logo {
    position: absolute;
    top: 34px;
    left: clamp(32px, 5vw, 72px);
    text-align: left;
}

.auth-intro .logo img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(231, 84, 53, 0.28));
}

.auth-intro h1 {
    max-width: 680px;
    margin: 0 0 22px;
    color: var(--ui-text);
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.auth-copy {
    max-width: 540px;
    overflow-wrap: anywhere;
    color: rgba(243, 248, 247, 0.7);
    font-size: 17px;
    line-height: 1.65;
}

.auth-panel {
    display: flex;
    padding: clamp(28px, 4vw, 58px);
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, rgba(20, 24, 39, 0.96), rgba(13, 15, 26, 0.98)),
    var(--ui-panel);
    backdrop-filter: blur(24px);
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-heading span {
    color: var(--ui-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-heading h2 {
    margin: 8px 0 0;
    font-size: 38px;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.auth-page .login-page .content {
    margin: 0;
}

.auth-page .login-page .content form {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    transform: none;
}

.auth-page .login-page .content form h3 {
    color: var(--ui-text);
    text-align: left;
}

.auth-page .login-page .content form .field {
    margin-bottom: 14px;
}

.auth-page .login-page .content form .field .field-input {
    min-height: 58px;
    border: 1px solid var(--ui-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.auth-page .login-page .content form .field .field-input svg {
    left: 17px;
}

.auth-page .login-page .content form .field input[type="text"],
.auth-page .login-page .content form .field input[type="password"],
.auth-page .login-page .content form .field input.phone {
    min-height: 58px;
    padding: 0 50px;
    border: 1px solid var(--ui-line) !important;
    border-radius: 14px;
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.045);
}

.auth-page .login-page .content form .field .field-input input {
    padding-left: 54px;
    border: 0 !important;
    background: transparent;
}

.auth-page .login-page .content form .pass-link {
    margin: 4px 0 20px;
    text-align: right;
}

.auth-page .login-page .content form .pass-link a {
    color: var(--ui-muted);
}

.auth-page .login-page .content form button {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    color: #160b08;
    background: var(--big-buttons);
    box-shadow: 0 14px 34px rgba(231, 84, 53, 0.26);
}

.auth-page .login-page .content .list.flex {
    display: grid;
    width: 100%;
    min-width: 0;
    margin-top: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.auth-page .login-page .content .list .item {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    margin: 0;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.auth-page .login-page .content .list .item:nth-child(2n) {
    margin-left: 0;
}

.auth-page .login-page .content .list .item img {
    width: 24px;
    height: 24px;
}

.auth-page .login-page .content .list .item h3 {
    margin: 8px 0 3px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.auth-page .login-page .content .list .item p {
    color: var(--ui-muted);
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.auth-intro .login-page__films {
    display: none;
    position: absolute;
    right: -70px;
    bottom: -55px;
    left: auto;
    z-index: 1;
    width: 520px;
    height: 180px;
    gap: 9px;
    opacity: 0.7;
    transform: rotate(-6deg);
}

.auth-intro .login-page__films .films-block {
    position: static;
    width: 92px;
    height: 138px;
    flex: 0 0 92px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transform: none !important;
}

.auth-page .login-page-footer {
    position: static;
    min-height: 38px;
    padding-top: 14px;
}

.auth-page .login-page-footer .login-page__copyright {
    justify-content: center;
    color: var(--ui-muted);
}

#forgot-password .countries {
    right: 10px;
    left: auto;
    width: auto;
    border: 0;
}

#forgot-password .field input.phone {
    padding-right: 118px;
    padding-left: 18px;
}

#forgot-password .countries .link {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

#forgot-password .countries .select {
    right: 0;
    left: auto;
    border: 1px solid var(--ui-line);
    border-radius: 14px;
    background: var(--ui-panel-solid);
    box-shadow: var(--ui-shadow);
}

.login-form-popup {
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 6, 12, 0.74);
    backdrop-filter: blur(14px);
}

.login-form-popup .window {
    position: relative;
    top: auto;
    left: auto;
    width: min(460px, 100%);
    padding: 34px;
    transform: none;
    text-align: left;
    border: 1px solid var(--ui-line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(20, 24, 39, 0.98), rgba(13, 15, 26, 0.98)),
    var(--ui-panel);
    box-shadow: var(--ui-shadow);
}

.login-form-popup .window .close {
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ui-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04) url("../img/temp/close.svg") center / 14px no-repeat;
}

.login-form-popup .window h3 {
    margin: 0 44px 22px 0;
    padding: 0;
    color: var(--ui-text);
    font-size: 28px;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.login-form-popup .window p {
    color: var(--ui-muted);
    font-size: 16px;
    line-height: 1.5;
}

.login-form-popup .window p span {
    color: var(--ui-text);
    font-weight: 700;
}

.login-form-popup .window .field {
    position: relative;
    margin-bottom: 14px;
}

.login-form-popup .window input.phone {
    width: 100%;
    min-height: 58px;
    padding: 0 18px 0 118px;
    border: 1px solid var(--ui-line) !important;
    border-radius: 14px;
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.045);
    font-size: 16px;
}

.login-form-popup .window .countries {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 5;
}

.login-form-popup .window .countries .link {
    display: inline-flex;
    min-width: 94px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--ui-line);
    border-radius: 10px;
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.06);
    font-size: 15px;
    line-height: 1;
}

.login-form-popup .window .countries .select {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    width: 220px;
    max-height: 230px;
    overflow-y: auto;
    border: 1px solid var(--ui-line);
    border-radius: 14px;
    background: var(--ui-panel-solid);
    box-shadow: var(--ui-shadow);
}

.login-form-popup .window .countries .select .radio {
    display: none;
}

.login-form-popup .window .countries .select label {
    display: flex;
    padding: 12px 14px;
    align-items: center;
    gap: 8px;
    color: var(--ui-muted);
    cursor: pointer;
}

.login-form-popup .window .countries .select label:hover {
    color: var(--ui-text);
    background: rgba(246, 165, 47, 0.08);
}

.login-form-popup .window .input-text {
    display: block;
    margin: 0 0 12px;
    color: #ff8a76 !important;
    font-size: 14px;
    line-height: 1.45;
}

.login-form-popup .window button {
    width: 100%;
    min-height: 56px;
    margin-top: 10px;
    border: 0;
    border-radius: 14px;
    color: #160b08;
    background: var(--big-buttons);
    box-shadow: 0 14px 34px rgba(231, 84, 53, 0.26);
}

/* Responsive */

@media (max-width: 1500px) {
    .tv-page .tv-program-guide-button {
        min-height: 42px;
        font-size: 14px;
    }

    .tv-page nav {
        padding: 8px;
    }

    .tv-page .tv-category-trigger {
        min-height: 42px;
        padding: 7px 9px;
        gap: 8px;
        font-size: 13px;
    }

    .tv-page .tv-category-icon {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        border-radius: 9px;
    }

    .tv-page .tv-category-icon img {
        width: 18px;
        height: 18px;
    }

    .tv-page .tv-category-count {
        font-size: 11px;
    }

    .tv-page .tv-category-channels {
        padding: 6px 0 8px 6px;
    }

    .tv-page .tv-category-channels li a {
        min-width: 0;
        min-height: 56px;
        padding: 7px 8px;
        gap: 10px;
        font-size: 12px;
    }

    .tv-page .tv-category-channel img {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }

    .tv-page nav .tv-category-channel .tv-category-channel-name {
        font-size: 13px;
    }

    .tv-page nav .tv-category-channel .tv-category-channel-program {
        min-height: 26px;
        font-size: 10px;
        line-height: 1.25;
    }

    .tv-page .tv-category-channel-program.is-loading::before,
    .tv-page .tv-category-channel-program.is-loading::after {
        height: 8px;
    }
}

@media (max-width: 1200px) {
    .wrap,
    .index-page-slider,
    .index-catalog-block .slider-wrapp,
    .serial-page .main-block {
        width: calc(100% - 14px);
        max-width: none;
    }

    .new-header {
        top: 4px;
    }

    .tv-page .tv-page-flex {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 42vw);
    }

    .tv-page .tv-page-player-preview {
        width: calc(100vw - clamp(360px, 42vw, 520px) - 34px);
    }

    .tv-page .tv-page-now-info {
        top: calc(74px + ((100vw - clamp(360px, 42vw, 520px) - 34px) * 9 / 16) + 14px);
        width: calc(100vw - clamp(360px, 42vw, 520px) - 34px);
    }

    .tv-page .tv-program-guide-button {
        width: clamp(360px, 42vw, 520px);
    }

    .tv-page nav {
        width: clamp(360px, 42vw, 520px);
    }

    .tv-page nav > ul {
        width: 100%;
        flex-direction: column;
    }

    .tv-page .tv-category-panel {
        width: clamp(360px, 42vw, 520px);
    }

    .tv-page .tv-page-menu {
        grid-column: 1 / -1;
    }

    .tv-page .wide-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wish-list-page .list.favorite-page-tv,
    .wish-list-page .list.favorite-page-video {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .serial-page .main-block h1,
    .serial-page .main-block > .wrap > p {
        width: 70%;
    }
}

@media (max-width: 991px) {
    .media-content {
        padding-top: 84px;
    }

    .new-header .wrap {
        min-height: 60px;
    }

    .new-header .logo {
        margin-right: 12px;
    }

    .new-header nav ul li > a {
        padding: 10px;
    }

    .tv-page .tv-page-flex {
        display: flex;
        flex-direction: column;
    }

    .tv-page .tv-page-player-preview {
        position: static;
        width: 100%;
        height: auto;
    }

    .tv-page .tv-page-now-info {
        position: static;
        width: 100%;
    }

    .tv-page .tv-program-guide-button {
        position: static;
        width: 100%;
        min-height: 42px;
        border-radius: 14px;
        font-size: 14px;
    }

    .tv-page.is-guide-mode .tv-page-player-preview,
    .tv-page.is-guide-mode .tv-page-now-info,
    .tv-page.is-guide-mode .tv-program-guide-button,
    .tv-page.is-guide-mode nav,
    .tv-page.is-guide-mode .tv-category-panel {
        left: auto;
        width: 100%;
    }

    .tv-page.is-guide-mode .tv-guide-archive-panel {
        display: none;
    }

    .tv-page .tv-category-panel {
        width: 100%;
        margin-top: 0;
    }

    .tv-page nav {
        position: static;
        width: 100%;
        max-height: none;
        overflow-x: auto;
    }

    .tv-page nav > ul {
        display: flex;
        width: max-content;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .tv-page .tv-category-channels {
        position: absolute;
        z-index: 5;
        width: min(360px, calc(100vw - 24px));
        max-width: none;
        max-height: 260px;
        padding: 6px;
        overflow-y: auto;
        border: 1px solid var(--ui-line);
        border-radius: 14px;
        background: var(--ui-panel-solid);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    }

    .tv-page nav > ul > li > a {
        min-width: max-content;
    }

    .tv-page .tv-category-channels li a {
        min-width: 0;
    }

    .tv-page .tv-category-trigger {
        min-height: 42px;
        padding: 7px 9px;
        font-size: 13px;
    }

    .tv-page .tv-category-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 9px;
    }

    .tv-page .tv-category-icon img {
        width: 18px;
        height: 18px;
    }

    .tv-page .tv-category-count {
        font-size: 11px;
    }

    .tv-page .tv-category-channels li a {
        min-height: 58px;
        padding: 7px 8px;
        gap: 10px;
    }

    .tv-page .tv-category-channel img {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .tv-page nav .tv-category-channel .tv-category-channel-name {
        font-size: 13px;
    }

    .tv-page nav .tv-category-channel .tv-category-channel-program {
        min-height: 28px;
        font-size: 11px;
        line-height: 1.25;
    }

    .tv-page .tv-category-channel-program.is-loading::before,
    .tv-page .tv-category-channel-program.is-loading::after {
        height: 8px;
    }

    .tv-page .wide-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flex-slider-for {
        height: auto;
        min-height: 0;
        flex-direction: column;
    }

    .tv-page .video.block-player-and-info,
    .tv-page .list.small.program-list {
        width: 100%;
    }

    .tv-page .list.small.program-list {
        max-height: 680px;
    }

    .auth-page .login-page > .wrap {
        grid-template-columns: 1fr;
    }

    .auth-intro {
        min-height: 520px;
    }

    .wish-list-page .list.favorite-page-tv,
    .wish-list-page .list.favorite-page-video {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .wrap,
    .index-page-slider,
    .index-catalog-block .slider-wrapp,
    .serial-page .main-block {
        width: calc(100% - 12px);
    }

    .new-header {
        inset: 6px 0 auto;
    }

    .new-header .wrap {
        padding: 7px 9px;
    }

    .new-header .logo img {
        width: 42px;
        height: 42px;
    }

    .new-header .user-link {
        margin-left: auto;
    }

    .index-page-slider .item {
        height: 650px;
        min-height: 650px;
    }

    .index-page-slider .item::before {
        background: linear-gradient(0deg, rgba(6, 14, 18, 0.98) 10%, rgba(6, 14, 18, 0.35) 75%);
    }

    .index-page-slider .item .info {
        position: absolute;
        top: auto;
        right: 0;
        bottom: 110px;
        left: 0;
        padding: 0;
    }

    .index-page-slider .item .info h3,
    .index-page-slider .item .info p {
        width: 100%;
    }

    .index-page-slider .item .info h3 {
        padding-top: 0;
        font-size: 42px;
    }

    .index-page-slider .item .info p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .index-page-slider .item .button {
        position: absolute;
        right: 0;
        bottom: 28px;
        left: 0;
        padding: 0;
    }

    .index-page-slider .slick-dots {
        display: none !important;
    }

    .tv-page {
        padding-top: 24px;
    }

    .tv-page .tv-now-main {
        gap: 12px;
    }

    .tv-page .tv-now-logo {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 14px;
    }

    .tv-page .tv-category-channels {
        width: min(320px, calc(100vw - 18px));
        max-height: 230px;
    }

    .tv-page .tv-category-trigger {
        min-height: 38px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .tv-page .tv-category-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .tv-page .tv-category-channels li a {
        min-height: 52px;
        gap: 8px;
    }

    .tv-page .tv-category-channel img {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .tv-page nav .tv-category-channel .tv-category-channel-name {
        font-size: 12px;
    }

    .tv-page nav .tv-category-channel .tv-category-channel-program {
        font-size: 10px;
    }

    .tv-page .list .item.channel {
        display: block;
    }

    .tv-page .list .item .image {
        width: 100%;
        min-height: 200px;
    }

    .tv-page .list .item .info {
        padding: 14px 4px 4px;
    }

    .tv-page .wide-list {
        grid-template-columns: 1fr;
    }

    .serial-page .main-block {
        min-height: 680px;
    }

    .serial-page .main-block::after {
        background: linear-gradient(0deg, rgba(5, 13, 17, 0.98) 12%, rgba(5, 13, 17, 0.25) 85%);
    }

    .serial-page .main-block .wrap {
        display: flex;
        min-height: 680px;
        padding-top: 250px;
        flex-direction: column;
        justify-content: flex-end;
    }

    .serial-page .main-block h1,
    .serial-page .main-block > .wrap > p {
        width: 100%;
    }

    .serial-page .main-block h1 {
        font-size: 48px;
    }

    .serial-page .main-block > .wrap > p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    .wish-list-page .list.favorite-page-tv,
    .wish-list-page .list.favorite-page-video {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-page .page.login {
        padding: 14px 0;
    }

    .auth-page .login-page > .wrap {
        width: calc(100% - 28px);
        min-height: 0;
    }

    .auth-intro {
        min-height: 410px;
        padding: 30px;
    }

    .auth-intro .logo {
        top: 26px;
        left: 30px;
    }

    .auth-intro h1 {
        font-size: 46px;
    }
}

@media (max-width: 575px) {
    .new-header nav {
        display: none;
    }

    .new-header .menu-button {
        display: flex;
        margin-right: 10px;
    }

    .mobile-menu {
        z-index: 150;
        width: min(88vw, 360px);
        padding: 82px 20px 24px;
        border-right: 1px solid var(--ui-line);
        background: rgba(8, 19, 24, 0.98);
        backdrop-filter: blur(24px);
    }

    .mobile-menu ul li a {
        border-radius: 10px;
        color: var(--ui-text);
    }

    .page-heading {
        padding-top: 34px;
    }

    .index-slider-nav {
        padding-top: 24px;
    }

    .index-page-slider {
        border-radius: 22px;
    }

    .index-page-slider .item {
        border-radius: 22px;
    }

    .index-catalog-block {
        margin-bottom: 44px;
    }

    .index-catalog-block h2 {
        font-size: 25px;
    }

    .tv-page .toggle {
        overflow-x: auto;
    }

    .tv-page .list .item .image {
        display: block;
        min-height: 170px;
    }

    .tv-page .program-list .item {
        display: flex;
    }

    .tv-page .program-list .item .image {
        display: block;
        width: 92px;
        min-height: 82px;
        flex: 0 0 92px;
    }

    .serial-page .tabs .tabNavigation {
        width: 100%;
    }

    .serial-page .tabs .tabNavigation li {
        flex: 1;
    }

    .serial-page .tabs .tabNavigation li a {
        text-align: center;
    }

    .wish-list-page .list.favorite-page-tv,
    .wish-list-page .list.favorite-page-video {
        gap: 10px;
    }

    .auth-intro {
        min-height: 360px;
    }

    .auth-intro h1 {
        font-size: 38px;
    }

    .auth-copy {
        font-size: 15px;
    }

    .auth-panel {
        padding: 28px 20px;
    }

    .auth-heading h2 {
        font-size: 30px;
        line-height: 1.1;
    }

    .auth-page .login-page .content form .field input[type="text"],
    .auth-page .login-page .content form .field input[type="password"],
    .auth-page .login-page .content form .field input.phone {
        max-width: 100%;
    }

    .auth-page .login-page .content .list.flex {
        grid-template-columns: 1fr;
    }
}
