/*
 * 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;
}

.vod-page-body .media-shell {
    position: static;
}

* {
    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;
}

.vod-page-body .media-content {
    padding-top: 76px;
}

.vod-page-body,
.vod-page-body .media-shell,
.vod-page-body .media-content {
    height: auto;
    min-height: 0;
    overflow: visible;
}

.media-content.vod-layout-content {
    display: block;
    padding-top: 74px;
    overflow: visible;
    transform: none;
}

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


/* Shared content */
/* 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 {
    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 {
    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);
}


/* 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: 12px 0 80px;
}

.favorite-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
    padding: 28px;
    border: 1px solid var(--ui-line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(12, 42, 47, 0.9), rgba(48, 14, 39, 0.78));
}

.favorite-page-heading h1 {
    margin: 4px 0 0;
    color: var(--ui-text);
    font-size: clamp(38px, 5vw, 76px);
    line-height: 0.95;
}

.favorite-page-heading p {
    max-width: 360px;
    margin: 0;
    color: var(--ui-muted);
    font-size: 17px;
    line-height: 1.45;
}

.favorite-section {
    margin-bottom: 34px;
    padding: 24px;
    border: 1px solid var(--ui-line);
    border-radius: 28px;
    background: rgba(15, 18, 34, 0.86);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

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

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

.favorite-count {
    min-width: 44px;
    padding: 7px 13px;
    border: 1px solid rgba(38, 231, 155, 0.3);
    border-radius: 999px;
    color: #d9ffef;
    background: rgba(13, 110, 76, 0.28);
    text-align: center;
    font-weight: 800;
}

.wish-list-page .favorite-grid {
    display: grid;
    gap: 16px;
}

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

.wish-list-page .favorite-card {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 18px;
    background: var(--ui-panel-solid);
    transform: none;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wish-list-page .favorite-card: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-video-card {
    aspect-ratio: 2 / 3;
}

.wish-list-page .favorite-card .delete {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 10px;
    right: 10px;
    left: auto;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    opacity: 1;
    border: 1px solid rgba(255, 107, 107, 0.36);
    border-radius: 50%;
    color: transparent;
    background: rgba(18, 9, 15, 0.82);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.wish-list-page .favorite-card .delete:hover {
    border-color: rgba(255, 107, 107, 0.72);
    background: rgba(157, 41, 56, 0.92);
    transform: scale(1.08);
}

.wish-list-page .favorite-card .delete::before,
.wish-list-page .favorite-card .delete::after {
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    content: "";
    background: #fff;
}

.wish-list-page .favorite-card .delete::before {
    transform: rotate(45deg);
}

.wish-list-page .favorite-card .delete::after {
    transform: rotate(-45deg);
}

.wish-list-page .favorite-card-link {
    position: absolute;
    inset: 0;
    display: block;
    color: inherit;
    text-decoration: none;
}

.wish-list-page .favorite-video-card .image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wish-list-page .favorite-card-gradient {
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(180deg, transparent, rgba(4, 7, 13, 0.94));
    pointer-events: none;
}

.favorite-card-copy {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 2;
    pointer-events: none;
}

.favorite-card-copy h3 {
    display: -webkit-box;
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--ui-text);
    font-size: 18px;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.favorite-card-copy p {
    display: flex;
    gap: 8px;
    margin: 0;
    color: var(--ui-soft);
    font-size: 13px;
    font-weight: 700;
}

.favorite-empty {
    grid-column: 1 / -1;
    padding: 34px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    color: var(--ui-muted);
    background: rgba(255, 255, 255, 0.035);
    text-align: center;
}

.favorite-empty strong,
.favorite-empty span {
    display: block;
}

.favorite-empty strong {
    margin-bottom: 8px;
    color: var(--ui-text);
    font-size: 20px;
}

/* Search */

.search-page {
    padding: 12px 0 80px;
}

.search-page-head {
    max-width: 840px;
    margin: 0 auto 28px;
    padding: 34px;
    border: 1px solid var(--ui-line);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(12, 42, 47, 0.9), rgba(48, 14, 39, 0.78));
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.search-page-head h1 {
    margin: 4px 0 22px;
    color: var(--ui-text);
    font-size: clamp(42px, 5vw, 78px);
    line-height: 0.95;
}

.search-page-form {
    position: relative;
    display: flex;
    max-width: 680px;
    margin: 0 auto;
}

.search-page-form input {
    width: 100%;
    height: 64px;
    padding: 0 74px 0 24px;
    border: 1px solid rgba(38, 231, 155, 0.22);
    border-radius: 999px;
    color: var(--ui-text);
    background: rgba(8, 15, 24, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 44px rgba(0, 0, 0, 0.24);
    font-size: 20px;
    font-weight: 700;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-page-form input:focus {
    border-color: rgba(38, 231, 155, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 5px rgba(38, 231, 155, 0.1), 0 18px 44px rgba(0, 0, 0, 0.24);
}

.search-page-form button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    border: 1px solid rgba(246, 165, 47, 0.34);
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9b2f, #d53d75) url("../../img/temp/search-link.svg") center / 21px no-repeat;
    box-shadow: 0 12px 28px rgba(231, 84, 53, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-page-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 34px rgba(231, 84, 53, 0.38);
}

.search-page-hint,
.search-page-status {
    color: var(--ui-muted);
}

.search-page-hint {
    margin: 16px 0 0;
    font-size: 16px;
}

.search-page-status {
    margin: 0 auto 18px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.search-page-results {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.search-result-card,
.search-result-placeholder {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 22px;
    background: rgba(15, 18, 34, 0.86);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.search-result-card {
    aspect-ratio: 2 / 3;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.search-result-card:hover {
    border-color: rgba(246, 165, 47, 0.58);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
    transform: translateY(-6px);
}

.search-result-poster,
.search-result-poster img,
.search-result-gradient {
    position: absolute;
    inset: 0;
}

.search-result-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-gradient {
    background: linear-gradient(180deg, rgba(4, 7, 13, 0.06), rgba(4, 7, 13, 0.94));
}

.search-result-copy {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 2;
}

.search-result-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ui-text);
    font-size: 20px;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-result-copy small {
    display: block;
    margin-top: 8px;
    color: var(--ui-soft);
    font-size: 14px;
    font-weight: 800;
}

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

.search-result-tags em {
    padding: 5px 8px;
    border: 1px solid rgba(38, 231, 155, 0.22);
    border-radius: 999px;
    color: #d9ffef;
    background: rgba(13, 110, 76, 0.24);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.search-result-placeholder {
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.04) 8%, rgba(255, 255, 255, 0.1) 18%, rgba(255, 255, 255, 0.04) 33%);
    background-size: 200% 100%;
    animation: loadingPlaceholder 1.2s linear infinite;
}

@keyframes loadingPlaceholder {
    to {
        background-position-x: -200%;
    }
}

/* 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-video {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .search-page-results {
        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-video {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .search-page-results {
        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-video {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-page-head {
        padding: 24px 16px;
    }

    .search-page-form input {
        height: 56px;
        padding-left: 18px;
        font-size: 17px;
    }

    .search-page-form button {
        top: 6px;
        right: 6px;
        width: 44px;
        height: 44px;
    }

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

    .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-video {
        gap: 10px;
    }

    .search-result-copy strong {
        font-size: 17px;
    }

    .search-result-tags {
        display: none;
    }

    .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;
    }
}
