
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 60px;
  background: #232e3c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tabbar__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #8b9aad;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.tabbar__item--active {
  color: #5eb5f7;
}

.tabbar__icon {
  display: block;
}

.tabbar__label {
  font-size: 11px;
  font-weight: 500;
}
.layout-content {
  padding-bottom: 76px;
}

.layout__privacy {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(94, 181, 247, 0.2);
  color: #5eb5f7;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.1s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.layout__privacy:hover {
  background: rgba(94, 181, 247, 0.3);
}

.layout__privacy:active {
  background: rgba(94, 181, 247, 0.4);
  transform: scale(0.95);
}
.category-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px 16px;
  overflow-x: auto;
}

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

.category-tabs__item {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: #232e3c;
  color: #8b9aad;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.category-tabs__item--active {
  background: #5eb5f7;
  color: #ffffff;
}
.movie-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.movie-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.movie-card__poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #1a242f;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.movie-card__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.movie-card__link:hover .movie-card__poster {
  transform: scale(1.05);
}

/* Стили для красивой заглушки */
.movie-card__no-poster {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5c6c7a;
  font-size: 12px;
  font-weight: 500;
  background: linear-gradient(135deg, #1a242f 0%, #232e3c 100%);
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

.movie-card__rating {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffcc00;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.movie-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #ffffff;
}

.movie-card__year {
  font-size: 12px;
  color: #8c9baf;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 12px;
  padding: 0 16px;
}

@media (min-width: 600px) {
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .movie-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.movie-grid__empty {
  padding: 24px 16px;
  color: #8b9aad;
  font-size: 14px;
  text-align: center;
}
.new-releases {
  position: relative;
  margin-bottom: 30px;
}

.new-releases__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.new-releases__scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 4px 16px 12px 16px; /* Небольшой отступ для теней */
  scrollbar-width: none; /* Скрываем скроллбар в Firefox */
  -ms-overflow-style: none; /* Скрываем скроллбар в IE/Edge */
  scroll-behavior: smooth;
}

.new-releases__scroll::-webkit-scrollbar {
  display: none; /* Скрываем скроллбар в Chrome/Safari */
}

.new-releases__item {
  flex-shrink: 0;
  width: 140px; /* Ширина карточки в ленте */
}

.new-releases__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #1a242f;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
  padding: 0;
}

.new-releases__arrow:hover {
  background: #2a3b4c;
}
.home {
  padding: 16px 0 0 0;
  min-height: 100vh;
}

.home__title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  padding: 0 16px;
  margin-bottom: 16px;
}

.home__loading {
  padding: 24px 16px;
  color: #8b9aad;
  font-size: 14px;
  text-align: center;
}
.movie-page {
  min-height: 100vh;
  padding-bottom: 80px;
  background: #17212b;
  color: #ffffff;
}

.movie-page--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b9aad;
}

.movie-page__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: 60vh;
  overflow: hidden;
  background: #232e3c;
}

.movie-page__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.movie-page__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(23, 33, 43, 0) 60%,
    rgba(23, 33, 43, 0.95) 100%
  );
  pointer-events: none;
}

.movie-page__back {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.movie-page__back:active {
  background: rgba(0, 0, 0, 0.8);
}

.movie-page__info {
  padding: 0 16px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
}

.movie-page__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.movie-page__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #8b9aad;
  margin-bottom: 16px;
}

.movie-page__rating {
  color: #ffcc00;
  font-weight: 600;
}

.movie-page__dot {
  color: #4a5666;
}

.movie-page__description {
  font-size: 14px;
  line-height: 1.5;
  color: #c2cbd6;
  margin-bottom: 24px;
}

.movie-page__actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.movie-page__watch {
  flex: 1;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: #5eb5f7;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.movie-page__watch:active {
  background: #4aa3e6;
}

.movie-page__share {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: #232e3c;
  color: #8b9aad;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.movie-page__share:hover {
  background: #2c3a4a;
  color: #5eb5f7;
}

.movie-page__share:active {
  background: #1c2733;
  color: #ffffff;
}

.movie-page__toast {
  margin-top: 12px;
  padding: 10px 16px;
  background: rgba(94, 181, 247, 0.15);
  border: 1px solid rgba(94, 181, 247, 0.3);
  border-radius: 10px;
  color: #5eb5f7;
  font-size: 13px;
  text-align: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.movie-page__fav {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: #232e3c;
  color: #8b9aad;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.movie-page__fav:hover {
  background: #2c3a4a;
  color: #ffcc00;
}

.movie-page__fav:active {
  background: #1c2733;
  transform: scale(0.95);
}

.movie-page__fav--active {
  color: #ffcc00;
}

.movie-page__fav {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: #232e3c;
  color: #8b9aad;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.movie-page__fav:hover {
  background: #2c3a4a;
  color: #ffcc00;
}

.movie-page__fav--active {
  color: #ffcc00;
}

.movie-page__poster--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #5eb5f7;
  background: #232e3c;
  text-align: center;
  padding: 24px;
}
.search {
  padding: 16px 0 0 0;
  min-height: 100vh;
}

.search__input {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px 16px;
  padding: 12px 16px;
  background: #232e3c;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  outline: none;
}

.search__input::placeholder {
  color: #8b9aad;
}

.search__hint {
  padding: 24px 16px;
  color: #8b9aad;
  font-size: 14px;
  text-align: center;
}
.favorites {
  padding: 16px 0 0 0;
  min-height: 100vh;
}

.favorites__title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  padding: 0 16px;
  margin-bottom: 16px;
}

.favorites__hint {
  padding: 24px 16px;
  color: #8b9aad;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}
.collection {
  padding: 16px 0 0 0;
  min-height: 100vh;
}

.collection__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 16px 16px;
}

.collection__back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #232e3c;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.collection__title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #17212b;
  color: #ffffff;
  text-align: left;
}

.page {
  min-height: 100vh;
  padding: 16px;
}

.page h1 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #ffffff;
  text-align: left;
}

.page p {
  color: #8b9aad;
  font-size: 14px;
  text-align: left;
}

.page {
  min-height: 100vh;
  padding: 16px;
}