/* === RESET & BASE === */
* {
  left: 0;
  right: 0;
  padding: 0;
  margin: 0;
  outline: 0;
  user-select: none;
  text-decoration: none;
  will-change: transform, opacity, top, left, bottom, right, scroll-position, contents, auto;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.55;
  overflow-x: hidden;
}

a,
input,
select,
input::placeholder,
textarea,
button,
body {
  cursor: default;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  font-family: inherit;
}

i {
  font-size: var(--size-icon);
  color: var(--text-primary);
}



/* === raccoucis === */
.none {
  display: none !important;
}

.see {
  border: 3px solid green;
}

.see1 {
  border: 3px solid red;
}

.see2 {
  border: 3px solid blue;
}

.see3 {
  border: 3px solid yellow;
}

.flex-c {
  display: flex;
  align-items: center;
}

.flex-s {
  display: flex;
  align-items: flex-start;
}

.flex-e {
  display: flex;
  align-items: flex-end;
}

.flex-cc {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-cb {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-sb {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.flex-cl {
  display: flex;
  align-items: center;
  justify-content: left;
}

.flex-cr {
  display: flex;
  align-items: center;
  justify-content: right;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-col-c {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.iflex-c {
  display: inline-flex;
  align-items: center;
}

.grid-c {
  display: grid;
  place-content: center;
}

.grid-c1fr-r1fr {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1frS;
}

.grid-c2fr-c {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.grid-c3fr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}



/* === loader === */
.loader {
  --color-one: #ffbf48;
  --color-two: #be4a1d;
  --color-three: #ffbf4780;
  --color-four: #bf4a1d80;
  --color-five: #ffbf4740;
  --time-animation: 2s;
  --size: 1;
  position: relative;
  border-radius: 50%;
  transform: scale(var(--size));
  box-shadow:
    0 0 25px 0 var(--color-three),
    0 20px 50px 0 var(--color-four);
  animation: colorize calc(var(--time-animation) * 3) ease-in-out infinite;
  width: max-content;
  height: max-content;
}

.loader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border-top: solid 1px var(--color-one);
  border-bottom: solid 1px var(--color-two);
  background: linear-gradient(180deg, var(--color-five), var(--color-four));
  box-shadow:
    inset 0 10px 10px 0 var(--color-three),
    inset 0 -10px 10px 0 var(--color-four);
}

.loader .box {
  width: 100px;
  height: 100px;
  background: linear-gradient(180deg,
      var(--color-one) 30%,
      var(--color-two) 70%);
  mask: url(#clipping);
  -webkit-mask: url(#clipping);
}

.loader svg {
  position: absolute;
}

.loader svg #clipping {
  filter: contrast(15);
  animation: roundness calc(var(--time-animation) / 2) linear infinite;
}

.loader svg #clipping polygon {
  filter: blur(7px);
}

.loader svg #clipping polygon:nth-child(1) {
  transform-origin: 75% 25%;
  transform: rotate(90deg);
}

.loader svg #clipping polygon:nth-child(2) {
  transform-origin: 50% 50%;
  animation: rotation var(--time-animation) linear infinite reverse;
}

.loader svg #clipping polygon:nth-child(3) {
  transform-origin: 50% 60%;
  animation: rotation var(--time-animation) linear infinite;
  animation-delay: calc(var(--time-animation) / -3);
}

.loader svg #clipping polygon:nth-child(4) {
  transform-origin: 40% 40%;
  animation: rotation var(--time-animation) linear infinite reverse;
}

.loader svg #clipping polygon:nth-child(5) {
  transform-origin: 40% 40%;
  animation: rotation var(--time-animation) linear infinite reverse;
  animation-delay: calc(var(--time-animation) / -2);
}

.loader svg #clipping polygon:nth-child(6) {
  transform-origin: 60% 40%;
  animation: rotation var(--time-animation) linear infinite;
}

.loader svg #clipping polygon:nth-child(7) {
  transform-origin: 60% 40%;
  animation: rotation var(--time-animation) linear infinite;
  animation-delay: calc(var(--time-animation) / -1.5);
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes roundness {
  0% {
    filter: contrast(15);
  }

  20% {
    filter: contrast(3);
  }

  40% {
    filter: contrast(3);
  }

  60% {
    filter: contrast(15);
  }

  100% {
    filter: contrast(15);
  }
}

@keyframes colorize {
  0% {
    filter: hue-rotate(0deg);
  }

  20% {
    filter: hue-rotate(-30deg);
  }

  40% {
    filter: hue-rotate(-60deg);
  }

  60% {
    filter: hue-rotate(-90deg);
  }

  80% {
    filter: hue-rotate(-45deg);
  }

  100% {
    filter: hue-rotate(0deg);
  }
}



/* === TYPOGRAPHY === */
.heading-display {
  font-family: var(--font-display);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.heading-1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-family: var(--font-display);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.heading-2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.heading-3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}



/* === BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-2xs);
  padding: 0.2rem var(--gap-xs);
  border-radius: var(--radius-pill);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: max-content;
  z-index: 5;
}

.badge-accent {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.badge-success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.badge-warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.badge-error {
  background: var(--color-error-soft);
  color: var(--color-error);
}

.badge-info {
  background: var(--color-info-soft);
  color: var(--color-info);
}

.badge-neutral {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}



/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-xs);
  padding: 0.65rem var(--gap-lg);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  border: none;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 0 20px rgba(245, 100, 22, 0.4);
}

.btn-primary:active {
  background: var(--color-accent-active);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: var(--stroke-width) solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: var(--stroke-width) solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  background: var(--bg-overlay-light);
  border-color: rgba(255, 255, 255, 0.35);
}



/* === btn-icon === */
.btn-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: var(--stroke-width) solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;

  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.06);
}

/*.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: var(--stroke-width) solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.btn-icon:hover {
  background: var(--bg-hover);
}

.btn-icon-ghost {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-primary);
  flex-shrink: 0;
}

.btn-icon-ghost:hover {
  background: var(--bg-overlay-light);
}

.btn-lg {
  padding: 0.85rem var(--gap-xl);
  font-size: var(--text-base);
}

.btn-sm {
  padding: 0.45rem var(--gap-sm);
  font-size: var(--text-xs);
}*/



/* === CARD === */
.card {
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: var(--stroke-width) solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--bg-active);
}



/* === POSTER / MEDIA CARD === */
.media-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.media-card:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.media-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-tertiary);
}

.media-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-scrim-full-full);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card:hover .media-card__overlay {
  opacity: 1;
}

.media-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--gap-sm);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  transform: translateY(4px);
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.media-card:hover .media-card__info {
  opacity: 1;
  transform: translateY(0);
}



/* === logo === */
.logo {
  color: var(--color-accent);
  text-decoration: none;
  transition: all var(--transition-ease);
  font-weight: var(--font-weight-medium);
}

.logo.logo-grand {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-black);
}

@media (max-width: 950px) {
  .logo:hover {
    transform: scale(1.05);
  }
}

.logo .fim {
  color: var(--text-primary);
  z-index: 1;
}

.logo .a {
  color: var(--text-muted);
}

.logo.logo-grand .a {
  margin: 0 0 0 -5pt;
  z-index: 2;
}

.logo.logo-grand .gogo {
  margin: 0 0 0 -7pt;
  z-index: 3;
}



/* === RATING === */
.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-2xs);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-warning);
}

.rating i {
  color: var(--color-warning);
  font-size: var(--text-xs);
  margin-bottom: 0.33rem;
}



/* === DIVIDER === */
.divider {
  height: 1px;
  background: var(--color-divider);
  width: 100%;
}



/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gap-xl);
}

@media (max-width: 768px) {
  .container {
    padding-inline: var(--gap-md);
  }
}



/* === SECTION HEADER === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.section-header__accent {
  display: block;
  width: 4px;
  height: 1.2em;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}



/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-active);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}



/* === SKELETON === */
.skeleton {
  background: var(--skeleton-bg);
  border-radius: var(--radius-sm);
  animation: shimmer 2s infinite;
  background-image: var(--skeleton-wave);
  background-size: var(--skeleton-size);
}



/* === SCROLL ROW === */
.scroll-row {
  display: flex;
  gap: var(--gap-sm);
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: var(--gap-sm);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}



/* === logo === */
.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  width: calc(var(--size-icon) * 2);
}



/* === rating === */
.detail-hero__rating-block {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
  flex-wrap: wrap;
}

.detail-hero__rating-block .detail-hero__score {
  display: grid;
  align-items: center;
  gap: var(--gap-xs);
}

.detail-hero__rating-block .detail-hero__score .detail-hero__score-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.detail-hero__rating-block .detail-hero__score .detail-hero__votes {
  margin-top: -5pt;
}

.detail-hero__rating-block .detail-hero__stars {
  display: flex;
  gap: 3px;
}

.detail-hero__rating-block .detail-hero__stars svg {
  color: var(--color-warning);
}

.detail-hero__rating-block .detail-hero__votes {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}



/* === header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: var(--blur-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header .header__inner {
  width: 100%;
  gap: var(--gap-md);
}



/* === header__actions === */
.header .header__actions {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-shrink: 0;
}

.header .header__actions .header__search-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
  border: none;
}

.header .header__actions .header__search-btn:hover {
  color: var(--text-primary);
  background: var(--bg-overlay-light);
}



/* === header__lang === */
.header .header__actions .header__lang {
  position: relative;
}

.header .header__actions .header__lang .header__lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 var(--gap-xs);
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border-color: var(--text-muted);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
  white-space: nowrap;
  text-transform: uppercase;
}

.header .header__actions .header__lang .header__lang-btn .header__lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.header .header__actions .header__lang .header__lang-btn .header__lang-chevron {
  transition: transform var(--transition-fast);
  opacity: 0.6;
}

.header .header__actions .header__lang.open .header__lang-btn .header__lang-chevron {
  transform: rotate(180deg);
}

.header .header__actions .header__lang .header__lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 196px;
  background: var(--bg-overlay);
  border: var(--stroke-width) solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 200;
}

[dir="rtl"] .header .header__actions .header__lang .header__lang-dropdown {
  right: auto;
  left: 0;
}

.header .header__actions .header__lang.open .header__lang-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.header .header__actions .header__lang .header__lang-dropdown .header__lang-option {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: start;
  order: 2;
}

.header .header__actions .header__lang .header__lang-dropdown .header__lang-option:hover {
  color: var(--text-primary);
}

.header .header__actions .header__lang .header__lang-dropdown .header__lang-option.active {
  color: var(--color-accent);
  background: var(--color-accent-soft);
  order: 1;
}

.header .header__actions .header__lang .header__lang-dropdown .header__lang-option .header__lang-option-flag {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.header .header__actions .header__btn-signup {
  font-size: var(--text-xs);
  padding: 0 var(--gap-md);
  height: 34px;
  border-radius: var(--radius-sm);
}

@media (max-width: 960px) {
  .header .header__nav {
    display: none;
  }

  .header .header__actions .header__btn-signup {
    display: none;
  }
}



/* === footer === */
.footer {
  background: var(--bg-secondary);
  border-top: var(--stroke-width) solid var(--color-divider);
  padding-top: var(--gap-3xl);
  padding-bottom: var(--gap-xl);
}

.footer .footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-xl);
  padding-bottom: var(--gap-3xl);
  border-bottom: var(--stroke-width) solid var(--color-divider);
  margin-bottom: var(--gap-xl);
}

.footer .footer__top .footer__brand .footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--gap-md);
  max-width: 280px;
}

.footer .footer__top .footer__brand .footer__social {
  display: flex;
  gap: var(--gap-xs);
  margin-top: var(--gap-lg);
}

.footer .footer__top .footer__brand .footer__social .footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: var(--stroke-width) solid var(--color-border);
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.footer .footer__top .footer__brand .footer__social .footer__social-link:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer .footer__top .footer__brand .footer__social .footer__social-link:hover i {
  color: var(--color-accent);
}

.footer .footer__top .footer__col i {
  font-size: var(--text-xs);
}

.footer .footer__top .footer__col .footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--gap-lg);
  gap: var(--gap-xs);
}

.footer .footer__top .footer__col .footer__col-title i {
  color: var(--color-accent);
}

.footer .footer__top .footer__col .footer__col-links {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.footer .footer__top .footer__col .footer__col-links .footer__col-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  gap: var(--gap-sm);
  transition: all var(--transition-fast);
  position: relative;
  width: max-content;
}

.footer .footer__top .footer__col .footer__col-links .footer__col-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: var(--stroke-width);
  background: linear-gradient(90deg, transparent, var(--color-accent));
  transition: all var(--transition-fast);
}

.footer .footer__top .footer__col .footer__col-links .footer__col-link:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

@media (min-width: 950px) {
  .footer .footer__top .footer__col .footer__col-links .footer__col-link:hover::before {
    width: 100%;
  }
}

.footer .footer__top .footer__col .footer__col-links .footer__col-link i {
  color: var(--text-muted);
  margin: -2pt 0 0;
}

.footer .footer__top .footer__col .footer__col-links .footer__col-link:hover i {
  color: var(--color-accent);
}


.footer .footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.footer .footer__bottom .footer__bottom-copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer .footer__bottom .footer__bottom-right {
  font-size: var(--text-xs);
  color: var(--text-muted);
  max-width: 520px;
  text-align: end;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .footer .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer .footer__top {
    grid-template-columns: 1fr;
  }

  .footer .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer .footer__bottom .footer__bottom-right {
    text-align: start;
  }
}