﻿@font-face {
  font-family: "FontOne";
  src: url("/font-1.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FontTwo";
  src: url("/font-10.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0c11;
  --top: #23272e;
  --panel: #171a21;
  --panel-2: #12151b;
  --text: #e7ebf3;
  --muted: #8e8e8e;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #d83544;
  --radius: 12px;
  --font-main: "FontOne", sans-serif;
  --font-description: "FontTwo", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-main);
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 53, 68, 0.78) rgba(255, 255, 255, 0.08);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, rgba(216, 53, 68, 0.92), rgba(149, 30, 44, 0.92));
  border-radius: 999px;
  border: 2px solid rgba(11, 14, 19, 0.85);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, rgba(230, 79, 93, 0.95), rgba(165, 35, 50, 0.95));
}

.site-shell {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  background:#1d1d1d;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 0.7px, transparent 0.7px);
  background-size: 2px 2px;
  opacity: 0.08;
}

.topbar {
  background: #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.detail-main p {
    font-family: var(--font-description);
}

.pages a, .pages span {
    height: 38px;
    line-height: 23px;
    min-width: 40px;
    text-decoration: none !important;
    display: inline-block;
    font-weight: 700;
    padding: .5rem;
    position: relative;
    text-align: center;
    color: #e1e1e1;
}

.agreement p, .delete-adm-edit svg, .ongoing.profile_view_history .second, .pages a {
    color: #838383;
}

.pages {
    margin-top: 20px;
    text-align: left;
}

.brand a {
    text-decoration: none;
    color: #e5e5e5;
}

ol.comments-tree-list {
    margin-left: -50px;
}

.page_next-prev, .pages a:hover, .pages span {
    --tw-bg-opacity: 1;
    --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
    --tw-shadow-colored: 0 1px 2px 0;
    background-color: #2e2e2e;
    border-radius: .5rem;
    font-size: 1em;
    color: #fff;
}

textarea:focus-visible {
    outline: none;
}

textarea#dle-promt-text {
    background: #292929;
    border: 1px solid #ffffff1f;
    padding: 10px;
    color: #fff;
    margin-top: 15px;
    height: 120px !important;
}

.page_next-prev {
    content-visibility: hidden;
}

.page_next-prev {
    color: #fff;
    float: right;
    height: 36px;
    font-size: 1.5em;
}

.navigation {
    width: 100%;
    padding: 0 0 20px;
}

.topbar-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: 60px;
  width: min(1600px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-tabs {
  display: none;
}

.side-menu {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 11, 0.5);
  z-index: 65;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.side-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.side-menu-panel {
    width: min(332px, 92vw);
    height: 100%;
    background: #1e1e1e;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.side-menu-fixed {
  flex-shrink: 0;
}

.side-menu-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 53, 68, 0.86) rgba(255, 255, 255, 0.08);
}

.side-menu-scroll::-webkit-scrollbar {
  width: 8px;
}

.side-menu-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.side-menu-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, rgba(216, 53, 68, 0.95), rgba(149, 30, 44, 0.92));
  border-radius: 999px;
  border: 1px solid rgba(15, 20, 27, 0.85);
}



.side-menu.open .side-menu-panel {
  transform: translateX(0);
}

.side-menu-head {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.side-menu-close {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #8e8e8e;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.side-menu-brand {
  font-family: var(--font-main);
  font-size: 2.28rem;
  line-height: 1;
  color: #d8e0ee;
}

.side-menu-brand::first-letter {
  color: var(--accent);
}

.side-menu-list {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.side-menu-list a {
  min-height: 42px;
  text-decoration: none;
  color: #8e8e8e;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
}

.side-menu-list a .ui-icon {
  width: 15px;
  height: 15px;
  opacity: 0.78;
}

.side-menu-list a:hover {
  color: #f1f6ff;
  background: rgba(255, 255, 255, 0.03);
}

.side-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  margin: 6px 0;
}

.side-menu-list-genres a {
  min-height: 40px;
  gap: 0;
}

.side-menu-list-genres a.active {
  color: #8e8e8e;
  font-weight: 700;
  border-left: 4px solid #d83544;
  padding-left: 10px;
}

.menu-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #8e8e8e;
  font-size: 0.94rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.menu-btn-lines {
  width: 30px;
  height: 30px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.menu-btn-line {
  width: 100%;
  height: 2px;
  background: #686868;
  transition: transform 0.24s ease, opacity 0.22s ease;
}

.menu-btn.is-open .menu-btn-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.is-open .menu-btn-line:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open .menu-btn-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.ui-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.brand {
  font-family: var(--font-main);
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
  line-height: 1;
      margin-top: -6px;
}

.brand::first-letter {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 10px;
}

.main-nav a {
  color: #c1cada;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.main-nav a:hover {
  color: #f0f5ff;
  background: rgba(255, 255, 255, 0.06);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-wrap {
border: 1px solid rgb(255 255 255 / 8%);
    background: #282828;
    border-radius: 0;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
}

.search-icon {
  color: #ffffff47;
  display: flex;
  align-items: center;
}

.search-wrap input {
  width: min(660px, 55vw);
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  font-family: var(--font-description);
  outline: none;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #8e8e8e;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.auth-btn {
  height: 36px;
  border-radius: 0;
  border: none;
  background: #d83544;
  color: #ffffff;
  font-size: 0.83rem;
  font-weight: 700;
  font-family: var(--font-main);
  padding: 0 18px;
  cursor: pointer;
  white-space: nowrap;
}

.auth-mobile-icon {
  display: none;
}

.mobile-search-btn {
  display: none;
}

.mobile-search-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #1d1d1d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  z-index: 30;
  gap: 8px;
  align-items: center;
}

.mobile-search-dropdown.open {
  display: flex;
}

.mobile-search-field {
flex: 1;
    height: 38px;
    background: #222222;
    border: 1px solid rgb(255 255 255 / 8%);
    color: #f1f6ff;
    font-size: 0.9rem;
  font-family: var(--font-description);
    padding: 0 10px;
    outline: none;
}

.mobile-search-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #8f98aa;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hero {
  height: 470px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -40px 90px rgba(0, 0, 0, 0.35);
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.hero.dragging {
  cursor: grabbing;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 18%;
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.04);
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 18%;
  transition: opacity 0.55s ease;
  will-change: opacity;
}

.hero-bg-layer.behind {
  z-index: 0;
  opacity: 1;
}

.hero-bg-layer.front {
  z-index: 1;
  opacity: 0;
}

.hero-bg-layer.front.visible {
  opacity: 1;
}

/* Pure-HTML slide system */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.55s ease;
  will-change: opacity;
  overflow: hidden;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 18%;
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.04);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
     background: linear-gradient(0deg, rgb(19 19 19) 0%, rgb(19 19 19 / 61%) 35%, rgb(19 19 19 / 54%) 58%, rgba(8, 11, 16, 0.55) 100%), linear-gradient(to top, rgba(9, 12, 17, 0.9), rgba(9, 12, 17, 0.04) 60%);
}

.hero-content {
  position: absolute;
  left: 160px;
  top: 112px;
  z-index: 4;
  max-width: 520px;
}

.hero-path {
  color: #dbe4f5;
  font-size: 0.84rem;
  margin-bottom: 86px;
  font-weight: 600;
}

.hero-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hero-title-link:hover h1 {
  opacity: 0.85;
}

.hero-content h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-family: var(--font-main);
  letter-spacing: 0.8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-title-ka {
  margin: 7px 0 0;
  color: rgba(219, 228, 245, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-sub {
  margin: 8px 0 0;
  color: #c4d1e6;
  font-size: 1.02rem;
  font-family: var(--font-description);
}

.hero-meta {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.imdb-badge {
  border: 1px solid #e8c84a;
  background: #000;
  color: #e8c84a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  font-family: var(--font-main);
  letter-spacing: 0.5px;
}

.hero-score {
  color: #f0f5ff;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-eps {
  color: #c4d1e6;
  font-size: 0.86rem;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.hero-btn {
padding: 9px 53px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    text-decoration: none;
    color: #edf4ff;
    background: rgba(10, 14, 20, 0.52);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.hero-btn-primary {
  background: #d83544;
  border-color: transparent;
  color: #ffffff;
}

.hero-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  font-size: 1rem;
  display: grid;
  place-items: center;
    background: #ffffff17;
    border: 1.5px solid rgb(255 255 255 / 0%);
}

.hero-btn-icon:hover {
    background: #ffffff29;
    border: 1.5px solid rgb(255 255 255 / 0%);
}

.hero-btn-icon .ui-icon {
  width: 17px;
  height: 17px;
}

.hero-dots {
  position: absolute;
  right: 190px;
  bottom: 88px;
  display: flex;
  gap: 9px;
  z-index: 4;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dots button.active {
  background: #ffffff;
}

.below-hero-wrap {
  width: 100%;
  margin: 0;
}

.feature-strip {
  background: #131313;
  padding: 14px 0;
  font-family: var(--font-main);
}

.feature-strip-inner {
  width: min(1600px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.feature-btn {
height: 70px;
    border: none;
    background: #1d1d1d;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feature-btn .ui-icon {
  width: 17px;
  height: 17px;
  opacity: 0.85;
}

.feature-btn .feature-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  opacity: 0.85;
}

.feature-btn:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.feature-btn.active {
  background: #252525;
  color: var(--accent);
}

.feature-btn.active .ui-icon {
  color: var(--accent);
}

#genreToggleBtn {
  position: relative;
  overflow: visible;
}

#genreToggleBtn.active::after {
content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #1d1d1d;
    z-index: 5;
    pointer-events: none;
}

.genre-dropdown {
  background: #1d1d1d;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.36s cubic-bezier(0.4, 0, 0.2, 1), padding 0.36s ease;
  padding: 0;
}

.genre-dropdown.open {
  max-height: 200px;
  padding: 16px 0;
}

.genre-dropdown-inner {
  width: min(1600px, calc(100% - 36px));
  margin: 0 auto;
}

.genre-card {
  flex: 0 0 180px;
  height: 100px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  transition: transform 0.2s ease;
}

.genre-card:hover {
  transform: scale(1.04);
}

.genre-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.18) 60%, transparent 100%);
}

.genre-card-label {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 8px 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}


.content {
  padding: 0;
}

.section {
  margin-top: 0;
  padding: 45px 0 45px;
  background: #111111;
  position: relative;
}

.section-inner {
  width: min(1600px, calc(100% - 36px));
  margin: 0 auto;
}

.section.with-backdrop {
    background-image: linear-gradient(rgb(19 19 19 / 72%)), var(--section-bg);
    background-size: cover;
    background-position: center top;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -10px 0px 10px 0px;
  font-size: 17px;
  font-weight: 600;
}

.section-icon {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

.section-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #d83544;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.see-all {
  color: #8f9ab0;
  text-decoration: none;
  font-size: 0.8rem;
}

.row {
  display: flex;
  gap: 14px;
  overflow: hidden;
  scroll-snap-type: none;
  scroll-behavior: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

.row::-webkit-scrollbar {
  display: none;
}

.row.dragging {
  cursor: grabbing;
}

.episodes-grid {
  touch-action: pan-y;
  overflow-x: auto;
  overscroll-behavior-x: none;
}

.episodes-grid.dragging {
  cursor: grabbing;
}

.card {
  background: transparent;
  border: 0;
  overflow: visible;
  transition: transform 0.2s ease, filter 0.2s ease;
  position: relative;
  flex: 0 0 calc((100% - 84px) / 6.5);
  scroll-snap-align: none;
}

.card-hit {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  z-index: 8;
}

.card.card-modal-open,
.card.card-modal-open:hover {
  transform: none;
  filter: none;
  z-index: auto;
  transition: none;
}

.poster {
  width: 100%;
  aspect-ratio: 0.73 / 1;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.card-body {
  padding: 7px 1px 0;
}

.poster-wrap {
  position: relative;
}

.row .card:not(.card-episode):not(.episode-mini) .poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(4, 7, 10, 0.92), rgba(4, 7, 10, 0));
  pointer-events: none;
  z-index: 1;
}

.tags {
  position: absolute;
  left: 6px;
  top: 6px;
  display: flex;
  gap: 6px;
}

.tag {
border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #d9e0ee;
    background: rgb(8 10 14 / 66%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.row .card:not(.card-episode):not(.episode-mini) .tags {
  left: 8px;
  right: 8px;
  bottom: 8px;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.row .card:not(.card-episode):not(.episode-mini) .tag {
  border-radius: 0;
  padding: 2px 6px;
  font-size: 0.61rem;
  font-weight: 600;
  color: #dde9f6;
  background: rgba(9, 13, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  line-height: 1;
}

.row .card:not(.card-episode):not(.episode-mini) .tag:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.row .card:not(.card-episode):not(.episode-mini) .tag:last-child {
  font-size: 0.78rem;
  color: #eff6ff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(9, 13, 18, 0.58);
  padding: 2px 8px;
}

.row .card:not(.card-episode):not(.episode-mini) a.tag:hover {
  background: rgba(216, 53, 68, 0.18);
  border-color: rgba(216, 53, 68, 0.55);
  color: #ffffff;
}

.card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f4f8ff;
  min-height: 44px;
}

.card-title-ka {
  margin-top: -22px;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(205, 214, 230, 0.72);
  line-height: 1.25;
}

.row .card:not(.card-episode):not(.episode-mini) .card-body {
  margin-top: 8px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  row-gap: 3px;
}

.row .card:not(.card-episode):not(.episode-mini) .card-body::after {
  content: "⋮";
  color: rgba(198, 210, 228, 0.82);
  font-size: 1.1rem;
  line-height: 1;
  grid-column: 2;
  grid-row: 1;
}

.row .card:not(.card-episode):not(.episode-mini) .card-title {
  grid-column: 1;
  margin: 0;
  min-height: 0;
  font-size: 0.95rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row .card:not(.card-episode):not(.episode-mini) .card-title-ka {
  grid-column: 1;
  margin-top: 0;
  font-size: 0.8rem;
  color: #8e8e8e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-meta {
  margin: 3px 0 0;
  font-size: 14px;
  color: #979797;
  font-weight: 700;
}

.section-special-episodes .section-inner {
  width: min(1600px, calc(100% - 36px));
}

.episodes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 14px;
  align-items: stretch;
}

.episodes-featured-col {
  min-width: 0;
}

.episodes-side-col {
  min-width: 0;
  min-height: 100%;
}

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

.card-episode,
.episode-mini {
  flex: initial;
  min-width: 0;
}

.card-episode .poster {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.card-episode-featured .poster {
  aspect-ratio: 16 / 11;
}

.card-episode .card-body {
  margin-top: -98px;
  position: relative;
  z-index: 3;
  padding: 25px 14px 21px;
  background: linear-gradient(to top, rgba(7, 10, 15, 0.95), rgba(7, 10, 15, 0.45));
  border-radius: 0 0 12px 12px;
}

.card-episode .card-title {
  min-height: 0;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-episode-featured .card-title {
  font-size: 1.9rem;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-mini .card-hit {
  height: 100%;
}

.episode-mini-thumb-wrap {
  position: relative;
}

.episode-mini-thumb {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.episode-mini-score {
  position: absolute;
  left: 8px;
  top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(7, 10, 15, 0.85);
  border-radius: 6px;
  color: #f1f6ff;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
}

.episode-mini-body {
  margin-top: -76px;
  position: relative;
  z-index: 2;
  padding: 21px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(to top, rgba(7, 10, 15, 0.95), rgba(7, 10, 15, 0.35));
}

.episode-mini-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
  color: #f3f8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-mini-title-ka {
  margin: 2px 0 0;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(206, 214, 228, 0.7);
  line-height: 1.2;
}

/* Separate title spacing rules only for the "ახალი ეპიზოდები" section */
.section-special-episodes .card-episode .card-title-ka {
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(214, 223, 236, 0.78);
}

.section-special-episodes .card-episode-featured .card-title-ka {
  margin-top: 8px;
  font-size: 0.94rem;
  color: rgba(224, 231, 241, 0.82);
}

.section-special-episodes .episode-mini-title-ka {
  margin-top: 5px;
  font-size: 0.76rem;
  color: rgba(214, 223, 236, 0.76);
}

.episode-mini-meta {
  margin: 4px 0 0;
  color: #b3b3b3;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(to top, rgba(6, 9, 14, 0.78), rgba(6, 9, 14, 0.08) 55%);
}

.hover-info {
  position: fixed;
  width: 340px;
  max-width: min(340px, calc(100vw - 24px));
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  background: linear-gradient(to bottom, rgba(28, 30, 35, 0.98), rgba(21, 24, 30, 0.96));
  padding: 12px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.hover-info.visible {
  opacity: 1;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 14, 0.72);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-dialog {
    width: 470px;
    height: 370px;
    max-width: calc(100vw - 24px);
    background: #1d1d1d;
    border: none;
    padding: 14px 20px 18px;
    position: relative;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
    display: flex;
    flex-direction: column;
}

.auth-close {
  position: absolute;
  right: 11px;
  top: 9px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #d2d8e4;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.auth-title {
  margin-bottom: 0;
  text-align: center;
  color: #c7c7c7;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.auth-form-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.auth-form-body .auth-label + .auth-input + .auth-label {
  margin-top: 6px;
}

.auth-label {
  display: block;
  width: 430px;
  max-width: 100%;
  margin: 0 auto;
  color: #8e8e8e;
  font-size: 0.95rem;
}

.auth-input {
    display: block;
    width: 430px;
    max-width: 100%;
    height: 44px;
    border: 1px solid rgb(255 255 255 / 27%);
    background: #1d1d1d;
    color: #f1f6ff;
    font-size: 0.95rem;
    padding: 0 12px;
    outline: none;
    margin: 0 auto;
}

.auth-input:focus {
  border-color: rgba(216, 53, 68, 0.75);
}

.auth-password-wrap {
  position: relative;
  width: 430px;
  max-width: 100%;
  margin: 0 auto;
}

.auth-password-wrap .auth-input {
  padding-right: 40px;
}

.auth-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: #8e8e8e;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.auth-eye .icon-eye {
  display: none;
}

.auth-eye.is-visible .icon-eye {
  display: block;
}

.auth-eye.is-visible .icon-eye-off {
  display: none;
}

.auth-actions {
  margin-top: 0;
  display: grid;
  width: 430px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(2, 215px);
  justify-content: center;
  gap: 0;
}

.auth-submit,
.auth-register {
  width: 215px;
  height: 40px;
  border: none;
  cursor: pointer;
  font-size: 0.99rem;
  font-family: var(--font-main);
}

.auth-submit {
  background: #d83544;
  color: #ffffff;
  font-weight: 700;
}

.auth-register {
  background: transparent;
  color: #8e8e8e;
}

.hero-info-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.72);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  display: grid;
  place-items: center;
  padding: 20px;
}

.hero-info-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.hero.hero-modal-open {
  cursor: default;
}

.hero.hero-modal-open .hero-content,
.hero.hero-modal-open .hero-dots,
.hero.hero-modal-open .hero-title-link,
.hero.hero-modal-open .hero-actions {
  pointer-events: none;
}

.hero.hero-modal-open .hero-title-link:hover h1 {
  opacity: 1;
}

.hero.hero-modal-open .hero-btn-icon:hover {
  background: #ffffff17;
  border: 1.5px solid rgb(255 255 255 / 0%);
}

.hero-info-dialog {
  --hero-info-bg: none;
  width: min(980px, calc(100vw - 60px));
  min-height: 450px;
  background: linear-gradient(to bottom, rgba(20, 23, 30, 0.97), rgba(16, 19, 26, 0.97));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
}

.hero-info-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.22;
  filter: saturate(1.1) contrast(1.04);
  transform: scale(1.04);
  pointer-events: none;
  z-index: 0;
  display: block;
}

.hero-info-dialog::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(9, 13, 18, 0.72) 0%, rgba(9, 13, 18, 0.18) 55%, rgba(9, 13, 18, 0.6) 100%),
    linear-gradient(to bottom, rgba(9, 13, 18, 0.1) 0%, rgba(9, 13, 18, 0.96) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-info-dialog > * {
  position: relative;
  z-index: 2;
}

.hero-info-bg-img {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.22;
  filter: saturate(1.1) contrast(1.04);
  transform: scale(1.04);
  pointer-events: none;
  z-index: 0 !important;
  display: block;
}

.hero-info-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.hero-info-left {
  display: flex;
  flex-direction: column;
}

.hero-info-poster {
  width: 100%;
  aspect-ratio: 0.72 / 1;
  object-fit: cover;
  border-radius: 0;
}

.hero-info-score-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-info-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-info-title {
  margin: 0;
  padding-right: 38px;
  font-size: 2rem;
  line-height: 1.06;
  font-family: var(--font-main);
}

.hero-info-subtitle {
  margin: 6px 0 0;
  color: #c6d0df;
  font-size: 1.08rem;
}

.hero-info-desc {
  margin: 12px 0 0;
  color: #d6deec;
  font-size: 0.97rem;
  line-height: 1.52;
  font-family: var(--font-description);
}

.hero-info-meta-grid {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  row-gap: 7px;
}

.hero-info-meta-grid dt {
  margin: 0;
  color: #9aa6bc;
  font-size: 0.92rem;
}

.hero-info-meta-grid dd {
  margin: 0;
  color: #f0f5ff;
  font-size: 0.94rem;
}

.hero-info-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-info-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #dbe4f2;
  cursor: pointer;
  font-size: 0.86rem;
  font-family: var(--font-main);
  text-decoration: none;
}

.hero-info-action-watch {
  background: #d83544;
  color: #ffffff;
  font-weight: 700;
}

.hover-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.hover-title strong {
  font-size: 0.8rem;
}

.hover-title span {
  font-size: 0.72rem;
}

.hover-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hover-meta i {
  font-style: normal;
  font-size: 0.62rem;
  border-radius: 4px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.09);
  color: #d4deef;
}

.hover-desc {
  margin: 10px 0 0;
  color: #c3ccdb;
  font-size: 0.72rem;
  line-height: 1.45;
  font-family: var(--font-description);
}

.hover-loading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dbe4f4;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.hover-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: #d83544;
  animation: spin 0.75s linear infinite;
}

.hover-skeleton {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  background-size: 180% 100%;
  animation: shimmer 1.2s ease infinite;
  margin-top: 8px;
}

.hover-skeleton.short {
  width: 68%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.promo-banner {
  min-height: 78px;
    width: min(1600px, calc(100% - 36px));
  margin: 14px auto 18px;
  padding: 14px 18px;
    border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 14px;
    background: linear-gradient(135deg, #171717 0%, #111111 100%);
  box-shadow: 0 10px 24px rgb(0 0 0 / 28%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: #e1f1ff;
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 1rem;
}

.promo-banner span {
  color: #bcc8d8;
  font-weight: 500;
  font-size: 0.9rem;
}

.promo-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  border: 1px solid rgb(216 53 68 / 68%);
  background: linear-gradient(to bottom, rgba(216, 53, 68, 0.95), rgba(149, 30, 44, 0.95));
}

.promo-banner-link:hover {
  filter: brightness(1.08);
}

@media (max-width: 700px) {
  .promo-banner {
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: 66px;
    padding: 12px 10px;
  }
}

.footer {
  width: 100%;
  margin: 0;
    padding: 28px 16px;
    background: #161616;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 380px));
    justify-content: center;
    gap: 22px;
}

.footer h3,
.footer h4 {
  margin: 0 0 10px;
}

.footer p,
.footer a {
  margin: 0 0 8px;
  color: var(--muted);
  text-decoration: none;
  display: block;
  font-size: 0.75rem;
}

@media (max-width: 1200px) {
  .hero-content {
    left: 40px;
  }

  .hero-dots {
    right: 40px;
  }
  
      .search-wrap input {
        width: max(100%, 42vw);
    }

  .section-inner {
    width: calc(100% - 20px);
  }
  form.mobile-search-form {
    width: 100%;
}
}

@media (max-width: 1350px) {
  .episodes-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  }

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

  .episodes-grid .episode-mini:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 999px) {
  .episodes-layout {
    grid-template-columns: 1fr;
  }

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

  .episodes-grid .episode-mini:nth-child(n + 5) {
    display: block;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: block;
    padding: 0;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .topbar-main {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .topbar-left {
    display: flex;
  }

  .brand {
    display: block;
  }

  .topbar-center {
    display: none;
  }

  .top-actions {
    justify-content: flex-end;
    gap: 8px;
  }

  .search-icon {
    display: none;
  }

  .auth-btn {
display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        background: #30343b00;
        border: 1px solid rgb(255 255 255 / 0%);
  }

  .auth-desktop-text {
    display: none;
  }

  .auth-mobile-icon {
    display: block;
    flex-shrink: 0;
  }

  .mobile-search-btn {
display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 1px solid rgb(255 255 255 / 0%);
        background: #30343b00;
        border-radius: 0;
        color: #d2d8e4;
        cursor: pointer;
        padding: 0;
  }

  .auth-btn i,
  .auth-btn svg {
    display: block;
    flex-shrink: 0;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
  }

  .mobile-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
    padding: 0 6px;
    background: #1e1e1e;
  }

  .mobile-tabs::-webkit-scrollbar {
    display: none;
  }

  .mobile-tabs a {
    text-decoration: none;
    color: #8d8d8d;
    font-size: 0.86rem;
    text-align: center;
    padding: 10px 12px 9px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mobile-tabs a.active {
    color: #d83544;
    border-bottom-color: #d83544;
  }

  .hero {
    height: 350px;
  }

  .hero-content {
    left: 14px;
    right: 16px;
    top: 70px;
  }

  .hero-path {
    margin-bottom: 38px;
    font-size: 0.74rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-sub {
    font-size: 0.8rem;
  }

  .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
  }

  .hero-info-modal {
    padding: 0;
    place-items: center;
    background: rgba(5, 8, 12, 0.82);
  }

  .auth-dialog {
    width: min(448px, calc(100vw - 20px));
    padding: 20px 16px 24px;
    height: auto;
  }

  .auth-title {
    font-size: 1.02rem;
    margin-bottom: 16px;
  }

  .auth-form-body {
    gap: 10px;
  }

  .auth-label {
    width: 100%;
    font-size: 0.88rem;
  }

  .auth-input {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
  }

  .auth-password-wrap {
    width: 100%;
  }

  .auth-actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  .auth-submit,
  .auth-register {
    width: 100%;
  }

  .hero-info-dialog {
    width: min(100vw, 560px);
    max-width: none;
    min-height: auto;
    max-height: min(84vh, 720px);
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 auto;
    padding: 16px 14px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.16);
  }

  .hero-info-left {
    display: none;
  }

  .hero-info-poster {
    width: 0;
    height: 0;
  }

  .hero-info-title {
    font-size: 1.32rem;
    line-height: 1.12;
    padding-right: 42px;
  }

  .hero-info-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #b2bfd5;
  }

  .hero-info-desc {
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.52;
    color: #d3def1;
  }

  .hero-info-meta-grid {
    margin-top: 12px;
    grid-template-columns: 102px 1fr;
    row-gap: 5px;
  }

  .hero-info-meta-grid dt,
  .hero-info-meta-grid dd {
    font-size: 0.76rem;
  }

  .hero-info-actions {
    margin-top: 12px;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-info-action {
    height: 40px;
    font-size: 0.82rem;
    padding: 0 10px;
    border-radius: 8px;
  }

  .hero-info-action-watch {
    grid-column: 1 / -1;
    height: 40px;
  }

  .hero-info-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.16);
  }

  .hero-info-dialog::-webkit-scrollbar {
    width: 5px;
  }

  .hero-info-dialog::-webkit-scrollbar-thumb {
    background: rgba(216, 53, 68, 0.72);
  }

  .hero-info-dialog::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
  }

  .hero-dots {
    right: 14px;
    bottom: 30px;
  }

  .feature-strip {
    padding: 10px 0;
    overflow: hidden;
  }

  .feature-strip-inner {
    width: 100%;
    margin: 0;
    padding: 0 10px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .feature-strip-inner::-webkit-scrollbar {
    display: none;
  }

  .feature-btn {
    flex: 0 0 calc((100% - 10px) / 2.2);
    min-width: 220px;
    height: 60px;
    font-size: 16px;
  }

  .row {
    gap: 10px;
  }

  .card {
    flex-basis: calc((100% - 20px) / 2.4);
  }

  .section {
    padding: 30px 10px 30px 10px;
  }

  .card-episode-featured {
    grid-column: auto;
    grid-row: auto;
  }

  .card-episode-featured .card-title {
    font-size: 1.22rem;
  }

  .episodes-layout {
    grid-template-columns: 1fr;
  }

  .episodes-featured-col {
    display: none;
  }

  .episodes-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: none;
    scroll-behavior: auto;
    scrollbar-width: none;
    position: relative;
    cursor: grab;
  }

  .episodes-grid::-webkit-scrollbar {
    display: none;
  }

  .episode-mini {
    flex: 0 0 calc((100% - 12px) / 2);
    scroll-snap-align: none;
  }

  .episode-mini .card-hit {
    height: auto;
  }

  .episode-mini-thumb {
    aspect-ratio: 16 / 10;
  }

  .episode-mini-body {
    margin-top: -48px;
    padding: 12px 10px 10px;
  }

  .episode-mini-title {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .episode-mini-meta {
    font-size: 0.68rem;
    gap: 10px;
  }

  .section-inner {
    width: calc(100% - 14px);
  }

  .promo-banner {
    width: calc(100% - 14px);
    margin: 12px auto 14px;
    font-size: 0.9rem;
    min-height: 64px;
  }

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







.fact-item a {
    text-decoration: none;
    color: #fff;
}

.detail-heading a {
    color: #ffffff80;
    text-decoration: none;
}

   .bb-editor textarea {
    width: 100%;
    height: 105px !important;
    background: #1d1d1d;
    border: 1px solid #3e3e3e;
    border-radius: 10px;
    padding: 10px;
    color: #b3b3b3;
}
    .bb-editor {
    margin-top: 10px;
}
    .comments_subscribe {
    visibility: hidden;
    }
    
    .save-buttons {
    text-align: left !important;
    margin-top: 0px;
    }
    .applychanges {
    background: #d83544;
    border: none;
    padding: 10px 20px 10px 20px;
    color: #fff;
    cursor: pointer;
}
     .cancelchanges {
    background: #d8354400;
    border: none;
    padding: 10px 20px 10px 20px;
    color: #fff;
    cursor: pointer;
}
    
    .comments-list, .comments-tree-list {
    list-style-type: none !important;
}

/* ან პირდაპირ მარკერზე რომ იმოქმედოს */
li::marker {
    content: none !important;
}
    dle-comments-list {
    margin-left: -40px !important;
}
    .ui-form {
    margin-left: -40px;
}
    .btn-big {
    background: #d83544;
    border: none;
    padding: 10px 40px 10px 40px;
    color: #fff;
}
    .form_submit {
    text-align: right;
    margin-top: -20px;
}








/* დეტალური ფეიჯი */
  .detail-stage {
        position: relative;
      }

      .detail-shell {
        width: min(1600px, calc(100% - 44px));
        margin: 0 auto;
        padding: 42px 0 56px;
        position: relative;
        z-index: 1;
      }

      .detail-top {
 --media-h: clamp(300px, 38vw, 520px);
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 14px;
    align-items: stretch;
      }

.detail-top-backdrop {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: clamp(300px, 56vw, 100%);
    overflow: hidden;
    pointer-events: none;
    z-index: 0;

    /* ნიღაბი, რომელიც ზემოთ აჩენს სურათს, ქვემოთ კი შლის */
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

      .detail-top-backdrop::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          to bottom,
          rgba(7, 10, 14, 0.18) 0%,
          rgba(7, 10, 14, 0.32) 38%,
          rgba(7, 10, 14, 0.62) 72%,
          #090d12 100%
        );
      }

      .detail-top-backdrop img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        opacity: 0.5;
      }

      .detail-top {
        position: relative;
        z-index: 1;
      }

      .detail-poster {
        height: var(--media-h);
        overflow: hidden;
        background: #0f141c;
      }

      .detail-poster-col {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      .detail-poster-votes {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
      }

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

      .detail-player {
        height: var(--media-h);
        overflow: hidden;
        position: relative;
        background: #0f141c;
      }

      .detail-player-cover {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .detail-player-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(10, 13, 18, 0.48), rgba(10, 13, 18, 0.12));
      }

      .detail-play-btn {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 58px;
        height: 58px;
        border-radius: 50%;
        border: none;
        background: rgba(22, 26, 32, 0.8);
        color: #fff;
        display: grid;
        place-items: center;
        cursor: pointer;
      }

      .detail-play-btn .ui-icon {
        width: 24px;
        height: 24px;
      }

      .detail-controls-row {
        margin-top: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .player-select-box {
        margin-top: 0;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
      }

      .detail-quick-actions {
        margin-top: 0;
        display: flex;
        flex-wrap: nowrap;
        gap: 9px;
        margin-left: auto;
      }

      .detail-action-btn {
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.04);
        color: #dbe5f6;
        border-radius: 8px;
        width: 42px;
        height: 42px;
        padding: 0;
        font-size: 0.82rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
      }

      .detail-action-btn-vote {
        width: auto;
        min-width: 78px;
        height: 38px;
        padding: 0 8px;
      }

      .detail-action-label {
        display: none;
      }

      .detail-action-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.24);
      }

      .detail-action-btn:active {
        transform: translateY(1px);
      }

      .detail-action-btn .ui-icon {
        width: 16px;
        height: 16px;
      }

      .detail-action-btn-vote.is-active {
        background: rgba(216, 53, 68, 0.22);
        border-color: rgba(216, 53, 68, 0.7);
        color: #ffffff;
      }

      .detail-action-btn-danger:hover {
        border-color: rgba(216, 53, 68, 0.55);
        background: rgba(216, 53, 68, 0.14);
      }

      .detail-action-count {
        min-width: 26px;
        height: 20px;
        border-radius: 999px;
        padding: 0 6px;
        font-size: 0.72rem;
        line-height: 20px;
        text-align: center;
        color: #fff;
        background: rgba(216, 53, 68, 0.72);
      }

      .player-tab {
      border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #d6deec;
    padding: 9px 15px;
    font-size: 0.84rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
      }

      .player-tab.is-active {
        background: #d83544;
        border-color: #d83544;
        color: #fff;
      }


      .tabs_box .player {
        display: none;
        position: relative;
        width: 100%;
        height: 100%;
      }

      .tabs_box .player.visible {
        display: block;
      }

      .detail-tabs {
        margin-top: 12px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
      }

      .detail-tab {
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.04);
        color: #d6deec;
        border-radius: 8px;
        padding: 9px 15px;
        font-size: 0.84rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
      }

      .detail-tab.active {
        background: #d83544;
        border-color: #d83544;
        color: #fff;
      }

      .detail-main {
        margin-top: 18px;
      }

      .detail-heading {
        display: flex;
        align-items: baseline;
        gap: 9px;
        flex-wrap: wrap;
      }

      .detail-title {
        margin: 0;
        font-family: var(--font-main);
        font-size: clamp(1.8rem, 2.6vw, 2.45rem);
        letter-spacing: 0.35px;
        line-height: 1;
      }

      .detail-year {
        color: #aeb8cb;
        font-size: 0.95rem;
      }

      .detail-ka {
        margin: 8px 0 0;
        color: rgba(213, 222, 235, 0.72);
        font-size: 0.96rem;
      }

      .detail-meta {
        margin-top: 10px;
        display: flex;
        gap: 7px;
        flex-wrap: wrap;
      }

      .meta-chip {
    padding: 8px 15px;
    font-size: 0.74rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cfd8e8;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.03);
      }

      .detail-imdb-chip {
color: #fff;
    font-weight: 700;
    display: inline-flex
;
    align-items: center;
    gap: 7px;
    border: none;
    background: none;
      }

      .detail-imdb-logo {
        width: 32px;
        height: 16px;
        flex-shrink: 0;
      }

      .detail-imdb-score-value {
        font-size: 16px;
        line-height: 1;
        color: #e2e2e2;
      }

      .detail-desc {
        margin-top: 16px;
        color: #c7d0df;
        line-height: 1.75;
        font-size: 0.95rem;
        max-width: 1100px;
        font-family: var(--font-description);
      }

      .detail-mobile-intro {
        display: none;
      }

      .detail-facts {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 18px;
      }

      .fact-item {
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.03);
        min-width: 110px;
      }

      .fact-item .label {
        display: block;
        color: #97a3b8;
        font-size: 0.72rem;
        margin-bottom: 5px;
      }

      .fact-item .value {
        color: #e5edf9;
        font-size: 0.96rem;
        font-weight: 600;
      }

      .detail-rec {
        margin-top: 28px;
      }

      .detail-rec-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
      }

      .detail-rec-title {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 700;
      }

      .detail-rec-row {
        display: flex;
        gap: 10px;
        overflow-x: hidden;
        overflow-y: visible;
        scroll-behavior: auto;
        scrollbar-width: none;
        padding-bottom: 8px;
        cursor: grab;
        user-select: none;
        touch-action: pan-y;
      }

      .detail-rec-row.dragging {
        cursor: grabbing;
      }

      .detail-rec-row::-webkit-scrollbar {
        display: none;
      }

      .mini-card {
        flex: 0 0 210px;
        min-width: 210px;
        text-decoration: none;
        color: inherit;
      }

      .mini-card-poster {
        position: relative;
        border-radius: 0;
        overflow: hidden;
        background: #12161d;
      }

      .mini-card-poster::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        height: 42%;
        background: linear-gradient(to top, rgba(4, 7, 10, 0.92), rgba(4, 7, 10, 0));
        pointer-events: none;
      }

      .mini-card img {
        width: 100%;
        aspect-ratio: 0.73 / 1;
        object-fit: cover;
        border-radius: 0;
        display: block;
      }

      .mini-card-quality {
        position: absolute;
        left: 8px;
        top: 8px;
        border: 1px solid rgba(193, 216, 238, 0.7);
        background: rgba(16, 31, 43, 0.58);
        color: #e8f2ff;
        font-size: 0.64rem;
        font-weight: 700;
        line-height: 1;
        padding: 3px 7px;
        z-index: 2;
      }

      .mini-card-meta {
        position: absolute;
        left: 8px;
        right: 8px;
        bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 2;
      }

      .mini-card-imdb {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.61rem;
        color: #dde9f6;
        background: rgba(9, 13, 18, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.22);
        padding: 2px 5px;
        line-height: 1;
      }

      .mini-card-imdb strong {
        font-size: 0.75rem;
        color: #ffffff;
      }

      .mini-card-year {
        font-size: 0.78rem;
        color: #eff6ff;
        border: 1px solid rgba(255, 255, 255, 0.45);
        background: rgba(9, 13, 18, 0.58);
        padding: 2px 8px;
        line-height: 1;
      }

      .mini-card-head {
        margin-top: 8px;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
      }

      .mini-card-title {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 600;
        color: #f1f6ff;
        line-height: 1.25;
        display: -webkit-box;
        line-clamp: 1;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .mini-card-menu {
        color: rgba(198, 210, 228, 0.82);
        font-size: 1.15rem;
        line-height: 1;
        margin-top: -1px;
        flex-shrink: 0;
      }

      .mini-card-subtitle {
        margin: 4px 0 0;
        font-size: 0.8rem;
        color: rgba(196, 208, 224, 0.7);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .detail-comments {
        margin-top: 30px;
      }

      .detail-comments h3 {
        margin: 0 0 10px;
        font-size: 0.92rem;
      }

      .detail-comments,
      .detail-comments * {
        font-family: var(--font-description);
      }

      .comment-box {
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 8px;
        background: transparent;
        color: #e6ecf6;
        padding: 12px 14px;
        min-height: 84px;
        resize: vertical;
      }

      .comment-row {
        margin-top: 10px;
        display: flex;
        justify-content: flex-end;
      }

      .comment-send {
        height: 34px;
        border: none;
        border-radius: 6px;
        padding: 0 16px;
        background: #d83544;
        color: #fff;
        font-size: 0.8rem;
        font-weight: 700;
        cursor: pointer;
      }

      .comment-form {
        margin-bottom: 24px;
      }

      .comment-form-actions {
        margin-top: 10px;
        display: flex;
        justify-content: flex-end;
      }

      .comments-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
      }

      .comment-item {
    display: flex;
    gap: 12px;
    padding: 20px 10px 20px 15px;
    border-radius: 10px;
      }

      .comment-avatar {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        background: var(--panel);
      }

      .comment-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .comment-content {
        flex: 1;
        min-width: 0;
      }

      .comment-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 6px;
        flex-wrap: wrap;
      }

      .comment-username {
        font-weight: 600;
        color: #e7ebf3;
        font-size: 0.9rem;
      }

      .comment-timestamp {
        font-size: 0.75rem;
        color: var(--muted);
        display: flex;
        align-items: center;
        gap: 4px;
      }

      .comment-text {
        margin: 0 0 10px;
        color: #d2d8e4;
        font-size: 0.88rem;
        line-height: 1.5;
        word-wrap: break-word;
      }

      .comment-actions {
        display: flex;
        gap: 12px;
        margin-top: 8px;
      }

      .comment-action-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        border: none;
        background: transparent;
        color: var(--muted);
        font-size: 0.8rem;
        cursor: pointer;
        padding: 2px 6px;
        border-radius: 4px;
        transition: all 0.15s ease;
      }

      .comment-action-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #e7ebf3;
      }

      .action-icon {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
      }

      .like-count {
        min-width: 16px;
        text-align: center;
      }

      .comment-like-btn.liked {
        color: #d83544;
      }

      .detail-footer {
        margin-top: 34px;
      }

      @media (max-width: 1100px) {
        .mini-card {
          flex: 0 0 180px;
          min-width: 180px;
        }
      }

      @media (max-width: 820px) {
        .detail-shell {
          width: calc(100% - 20px);
          padding: 14px 0 32px;
        }

        .topbar-center {
          display: none;
        }

        .detail-top {
          grid-template-columns: 1fr;
          gap: 10px;
        }

        .detail-top > div:not(.detail-poster-col) {
          order: 1;
        }

        .detail-poster {
          display: none;
        }

        .detail-poster-col {
          display: flex;
          order: 4;
          width: 100%;
          margin-top: 8px;
        }

        .detail-poster-votes {
          width: 100%;
          justify-content: center;
          gap: 10px;
        }

        .detail-player {
          height: clamp(230px, 60vw, 320px);
          border-radius: 8px;
        }

        .detail-tabs {
          margin-top: 10px;
          gap: 8px;
        }

        .detail-tab {
          padding: 8px 10px;
          font-size: 0.78rem;
        }

        .detail-main {
          margin-top: 12px;
        }

        .detail-controls-row {
          flex-direction: row;
          align-items: center;
          flex-wrap: wrap;
          gap: 10px;
        }

        .detail-quick-actions {
          margin-top: 0;
          gap: 8px;
          margin-left: 0;
          margin-left: auto;
          justify-content: flex-end;
          flex-wrap: nowrap;
        }

        .player-select-box {
          flex: 1 1 auto;
          min-width: 0;
        }

        .detail-action-btn {
          flex: 0 0 40px;
          width: 38px;
          height: 38px;
          justify-content: center;
          padding: 0;
          font-size: 0.78rem;
        }

        .detail-action-btn-vote {
          flex: 0 1 auto;
          min-width: 82px;
          height: 36px;
        }

        .detail-action-count {
          min-width: 24px;
          font-size: 0.68rem;
        }

        .detail-title {
          font-size: 1.9rem;
        }

        .detail-year {
          font-size: 0.9rem;
        }

        .detail-ka {
          margin-top: 4px;
          font-size: 0.92rem;
        }

        .detail-mobile-intro {
          display: grid;
          grid-template-columns: 108px 1fr;
          gap: 12px;
          margin-top: 12px;
          align-items: start;
        }

        .detail-mobile-intro img {
          width: 108px;
          height: 154px;
          object-fit: cover;
          border-radius: 8px;
          border: 1px solid rgba(255, 255, 255, 0.14);
          box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
        }

        .detail-mobile-desc {
          margin: 0;
          color: #c7d0df;
          font-size: 0.91rem;
          line-height: 1.66;
          font-family: var(--font-description);
        }

        .detail-desc {
          display: none;
        }

        .detail-meta {
          margin-top: 14px;
          gap: 8px;
        }

        .meta-chip {
          font-size: 0.72rem;
          padding: 5px 10px;
        }

        .detail-facts {
          display: grid;
          grid-template-columns: 1fr 1fr;
          margin-top: 14px;
          gap: 10px;
        }

        .fact-item {
          padding: 10px 12px;
        }

        .fact-item .value {
          font-size: 0.96rem;
        }

        .detail-rec {
          margin-top: 22px;
        }

        .detail-rec-row {
          gap: 10px;
          overflow-x: auto;
          padding-bottom: 8px;
        }

        .detail-rec-row::-webkit-scrollbar {
          display: none;
        }

        .mini-card {
          min-width: 120px;
          flex: 0 0 120px;
        }

        .mini-card-title {
          font-size: 0.76rem;
        }

        .mini-card-subtitle {
          font-size: 0.64rem;
        }

        .detail-comments {
          margin-top: 22px;
        }

        .comment-box {
          min-height: 72px;
          padding: 10px 12px;
          font-size: 0.88rem;
        }

        .comment-form-actions {
          justify-content: flex-end;
        }

        .comments-list {
          gap: 12px;
          margin-top: 16px;
        }

        .comment-item {
          gap: 10px;
          padding: 10px 12px;
        }

        .comment-avatar {
          width: 36px;
          height: 36px;
        }

        .comment-header {
          gap: 8px;
        }

        .comment-username {
          font-size: 0.85rem;
        }

        .comment-timestamp {
          font-size: 0.72rem;
        }

        .comment-text {
          font-size: 0.84rem;
          margin-bottom: 8px;
        }

        .comment-actions {
          gap: 8px;
          flex-wrap: wrap;
        }

        .comment-action-btn {
          font-size: 0.75rem;
          padding: 1px 5px;
        }

        .action-icon {
          width: 13px;
          height: 13px;
        }

        .detail-footer {
          margin-top: 24px;
        }
      } 