@import url(https://fonts.googleapis.com/css2?family=Material+Icons+Round&display=block);
@import url(https://fonts.googleapis.com/icon?family=Material+Icons+Round);
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Montserrat", "Segoe UI",
    "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
    "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #1b1b1b;
  color: white;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

.material-updates-round {
  font-family: "Material Symbols Rounded", sans-serif;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-size: 24px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 2%;
  position: fixed;
  width: 100%;
  z-index: 1000;
  background: transparent;
  color: white;
  margin-top: -12px;
}

.logo {
  font-size: 34px;
  margin-left: 40px;
  font-weight: normal;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  z-index: 1001;
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: fixed;
  top: 0;
  background-color: #333333f6;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 220px;
  padding-top: 60px;
  border-radius: 0 0 28px 28px;
  z-index: 999;
  margin-left: 0px;
  align-items: center;
  align-content: center;
}

.dropdown-menu-inner {
  width: 100%;
  padding-bottom: 20px;
}

.dropdown-menu a {
  color: white;
  padding: 12px;
  display: flex;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  align-items: center;
  align-content: center;
}

.dropdown-menu a:hover {
  background-color: #555555;

  border-radius: 28px;
}

.dropdown-container:hover .dropdown-menu {
  display: block;
}

.notification-dropdown,
.profile-dropdown {
  position: relative;
}

.header-profile-menu {
  position: absolute;
  right: 0;
  top: 64px;
  background-color: #333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  border-radius: 20px;
  z-index: 1002;
  padding: 15px;
  margin-top: 10px;
}

.notification-menu {
  max-height: 400px;
  display: block;
  position: fixed;
  right: 10px;
  top: 85px;
  background-color: #333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  border-radius: 20px;
  z-index: 1002;
  padding: 15px;
}

.notification-item,
.header-profile-menu a,
.header-profile-menu-item {
  color: white;
  padding: 12px;
  display: flex;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 10px;
  margin-bottom: 5px;
  align-items: center;
  cursor: pointer;
}

.notification-item:hover,
.header-profile-menu a:hover,
.header-profile-menu-item:hover {
  background-color: #636262;
}

.notification-item:last-child,
.header-profile-menu a:last-child,
.header-profile-menu-item:last-child {
  margin-bottom: 0;
}

.notification-time {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 5px;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
  margin-bottom: 10px;
}

.header-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #444;
  margin-bottom: 10px;
}

.notification-header h3,
.header-profile-header h3 {
  font-size: 1rem;
}

.header-profile-info {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #444;
  margin-bottom: 10px;
}

.header-profile-avatar-frame {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  z-index: 2;
  pointer-events: none;
}

.header-profile-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.header-profile-name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px) rotate(-5deg);
  }
  50% {
    transform: translateX(2px) rotate(5deg);
  }
  75% {
    transform: translateX(-2px) rotate(-5deg);
  }
  100% {
    transform: translateX(0);
  }
}

.btn-secondary.btn-small.animate-clear {
  animation: shake 0.4s ease-in-out;
}

.btn-secondary.btn-small {
  background: rgba(60, 60, 60, 0.7);
  color: white;
  border: 1px solid #555;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary.btn-small:hover {
  background: rgba(80, 80, 80, 0.7);
  transform: translateY(-1px);
}

.btn-secondary.btn-small:active {
  transform: scale(0.95);
}

.btn-secondary.btn-small:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-emoji3 {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.headersearch {
  position: relative;
  flex-grow: 1;
  max-width: 500px;
  margin: 0 50px;
}

.headersearch input {
  width: 100%;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  background: rgba(70, 70, 70, 0.815);
  color: rgb(255, 255, 255);
  outline: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-results-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #2a2a2a;
  border-radius: 30px;
  margin-top: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  max-height: 400px;
  overflow-y: hidden;
  padding: 15px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.results-header h4 {
  font-size: 0.9rem;
  margin: 0;
  color: #ffffff;
}

.filter-icon {
  color: #aaa;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-icon:hover {
  color: #a855f7;
}

.filter-panel {
  padding: 10px;
  margin-top: -30px;
  overflow-y: hidden;
}

.filter-section {
  margin-bottom: 15px;
}

.filter-section h5 {
  color: #aaa;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 170px;
  overflow-y: hidden;
}

.genre-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.genre-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.active-genre {
  background: #a855f7;
  color: white;
}

.year-select {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border-radius: 30px;
  background: #3a3a3a;
  color: #ffffff;
  border: 2px solid #a855f7;
  font-size: 0.9rem;
  -webkit-appearance: none;
          appearance: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.2);
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml;utf8,<svg fill=\"%23a855f7\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 10l5 5 5-5z\"/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.year-select:hover {
  background: #444444;
  border-color: #9333ea;
  box-shadow: 0 3px 8px rgba(168, 85, 247, 0.3);
  transform: scale(1.02);
}

.year-select:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.4);
  background: #444444;
}

.year-select option {
  background: #333;
  color: #ffffff;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.btn-apply {
  background: #a855f7;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-apply:hover {
  background: #9333ea;
}

.btn-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.results-list {
  max-height: 250px;
  overflow-y: hidden;
  margin-bottom: 10px;
}

.search-results,
.recommendations {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-item,
.recommendation-item {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover,
.recommendation-item:hover {
  background: rgba(168, 85, 247, 0.1);
}

.search-result-image,
.recommendation-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 15px;
}

.search-result-image-container {
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: 15px;
}

.search-result-frame {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  z-index: 2;
  pointer-events: none;
}

.search-result-title {
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recommendation-title {
  font-size: 14px;
  color: #fff;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-status {
  font-size: 0.7rem;
  color: #aaa;
  margin-top: 2px;
}

.no-results {
  color: #aaa;
  padding: 10px;
  text-align: center;
}

.loading {
  color: #aaa;
  padding: 10px;
  text-align: center;
}

.btn-load-more {
  width: 100%;
  padding: 8px;
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.btn-load-more:hover {
  background: rgba(168, 85, 247, 0.2);
}

.btn-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 3%;
}

.notification-icon {
  position: relative;
  cursor: pointer;
}

.notification-icon img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.notification-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #a855f7;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-button {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-button:hover {
  background: linear-gradient(135deg, #9333ea 0%, #6b21a8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.telegram-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.telegram-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.telegram-button-text {
  display: inline;
}

.telegram-button-icon {
  display: none;
}

.user-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 3px;
  cursor: pointer;
}

.user-avatar-frame {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  z-index: 2;
  pointer-events: none;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-sizing: border-box;
}

.user-avatar:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.user-avatar::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #222;
  z-index: 3;
}

.auth-button {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.auth-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.auth-controls {
  gap: 10px;
  display: contents;
}

.login-button {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgb(201, 86, 230);
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.login-button:hover {
  background: #9333ea;
}

.logout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1003;
}

.logout-modal-content {
  background: #333;
  padding: 20px;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.logout-modal-content h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.logout-modal-content p {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 20px;
}

.logout-modal-actions {
  display: flex;
  justify-content: space-around;
}

.btn-cancel,
.btn-confirm {
  padding: 10px 20px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-cancel {
  background: #636262;
  color: white;
}

.btn-cancel:hover {
  background: #4a4a4a;
}

.btn-confirm {
  background: #a855f7;
  color: white;
}

.btn-confirm:hover {
  background: #9333ea;
}

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

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-small.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.btn-small.btn-primary:hover {
  background: linear-gradient(135deg, #9333ea 0%, #6b21a8 100%);
  transform: translateY(-1px);
}

.btn-small.btn-secondary {
  background: rgba(60, 60, 60, 0.7);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: white;
  border: 1px solid #555;
}

.btn-small.btn-secondary:hover {
  background: rgba(80, 80, 80, 0.7);
  transform: translateY(-1px);
}

.notification-user {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.notification-avatar-container {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.notification-avatar-frame {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  z-index: 2;
  pointer-events: none;
}
.notification-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Убедитесь, что рамка сохраняет пропорции */
  display: block;
}

.notification-user-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-user-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notification-emoji {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.notification-type {
  font-size: 0.9rem;
  color: #ddd;
}

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(51, 51, 51, 0.9);
  z-index: 1000;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  height: 40px;
}

.bottom-nav-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  padding: 8px;
  transition: color 0.2s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: #a855f7;
}

.bottom-nav-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.bottom-nav-text {
  display: none;
}

@media (max-width: 768px) {
  .logo {
    font-size: 24px;
    margin-left: 16px;
  }

  .headersearch {
    max-width: 400px;
    margin: 0 20px;
  }

  .headersearch input {
    padding: 8px 18px;
    font-size: 15px;
  }

  .search-results-container {
    max-height: 500px;
    padding: 12px;
  }

  .filter-panel {
    padding: 8px;
    max-height: 260px;
  }

  .genre-list {
    max-height: 140px;
  }

  .year-select {
    padding: 9px 36px 9px 14px;
    font-size: 0.85rem;
    border-radius: 28px;
    background-size: 18px;
  }

  .btn-apply {
    padding: 7px 14px;
    font-size: 0.85rem;
  }

  .logout-modal-content {
    padding: 15px;
  }

  .logout-modal-content h3 {
    font-size: 1.1rem;
  }

  .logout-modal-content p {
    font-size: 0.9rem;
  }

  .btn-cancel,
  .btn-confirm {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .profile-emoji3 {
    width: 10px;
    height: 10px;
  }

  .premium-button {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .telegram-button {
    display: none;
  }

  .dropdown-container {
    display: none;
  }

  .bottom-nav {
    display: flex;
  }

  .bottom-nav-text {
    display: none;
  }

  .bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0 10px;
  }

  .logo {
    font-size: 22px;
    margin-left: 10px;
  }

  .headersearch {
    max-width: 100%;
    margin: 0 10px;
    flex-grow: 1;
  }

  .headersearch input {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 40px;
  }

  .headersearch input:focus {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 48px;
    z-index: 1002;
    border-radius: 0;
    background: rgba(70, 70, 70, 0.95);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    padding: 12px 16px;
  }

  .search-results-container {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 95%;
    height: 350px;
    background: #2a2a2a;
    border-radius: 0;
    margin-top: 0;
    padding: 10px;
    z-index: 1002;
    max-height: none;
    border-radius: 30px;
  }

  .results-header h4 {
    font-size: 0.85rem;
  }

  .filter-panel {
    padding: 6px;
    max-height: none;
  }

  .filter-section {
    margin-bottom: 12px;
  }

  .filter-section h5 {
    font-size: 0.85rem;
  }

  .genre-list {
    gap: 6px;
    max-height: none;
  }

  .genre-item {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .year-select {
    padding: 8px 32px 8px 12px;
    font-size: 0.8rem;
    border-radius: 25px;
    background-size: 16px;
    border-width: 1px;
  }

  .btn-apply {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .search-result-item,
  .recommendation-item {
    padding: 6px;
  }

  .search-result-image,
  .recommendation-image {
    width: 36px;
    height: 36px;
  }

  .search-result-image-container {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }

  .search-result-title {
    font-size: 13px;
  }

  .btn-load-more {
    padding: 6px;
    font-size: 0.8rem;
  }

  .notification-menu {
    max-height: 400px;
    max-width: 240px;
    position: fixed;
    right: 10px;
  }

  .icons {
    gap: 10px;
    margin-right: 10px;
  }

  .notification-icon img {
    width: 32px;
    height: 32px;
  }

  .user-avatar {
    width: 50px;
    height: 50px;
  }

  .logout-modal-content {
    padding: 10px;
    width: 95%;
  }

  .logout-modal-content h3 {
    font-size: 1rem;
  }

  .logout-modal-content p {
    font-size: 0.85rem;
  }

  .btn-cancel,
  .btn-confirm {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .profile-emoji3 {
    width: 10px;
    height: 10px;
  }

  .premium-button {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 15px;
  }

  .notification-poster {
    width: 32px;
    height: 32px;
  }

  .notification-poster-container {
    width: 32px;
    height: 32px;
  }

  .notification-avatar {
    width: 32px;
    height: 32px;
  }

  .notification-avatar-container {
    width: 32px;
    height: 32px;
  }

  .notification-user-name {
    font-size: 0.9rem;
  }

  .notification-emoji {
    width: 14px;
    height: 14px;
  }

  .notification-season-info strong {
    font-size: 0.8rem;
  }

  .notification-time {
    font-size: 0.75rem;
  }

  .btn-small {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .notification-header h3 {
    font-size: 0.95rem;
  }

  .bottom-nav-icon {
    font-size: 20px;
  }
}

.filter-panel,
.results-list,
.notification-menu {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aaaaaa #333333;
}

.filter-panel::-webkit-scrollbar,
.results-list::-webkit-scrollbar,
.notification-menu::-webkit-scrollbar {
  width: 4px;
}

.filter-panel::-webkit-scrollbar-track,
.results-list::-webkit-scrollbar-track,
.notification-menu::-webkit-scrollbar-track {
  background: #333333;
  border-radius: 10px;
}

.filter-panel::-webkit-scrollbar-thumb,
.results-list::-webkit-scrollbar-thumb,
.notification-menu::-webkit-scrollbar-thumb {
  background: #aaaaaa;
  border-radius: 10px;
}

.filter-panel::-webkit-scrollbar-thumb:hover,
.results-list::-webkit-scrollbar-thumb:hover,
.notification-menu::-webkit-scrollbar-thumb:hover {
  background: #999999;
}

.search-mode-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-toggle-btn {
  padding: 4px 8px;
  border-radius: 15px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.mode-toggle-btn.active {
  background: #a855f7;
  color: white;
  cursor: default;
}

.mode-toggle-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.2);
}

.mode-toggle-btn:disabled {
  opacity: 1;
  cursor: default;
}

.notification-icon .material-updates-round {
  font-size: 24px;
  color: #fff;
  transition: color 0.2s ease;
}

.notification-icon:hover .material-updates-round {
  color: #a855f7;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.notification-header h3 {
  font-size: 1rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
}

.notification-item {
  color: white;
  padding: 12px;
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  border-radius: 10px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.notification-item:hover {
  background-color: #636262;
}

.notification-item:last-child {
  margin-bottom: 0;
}

.notification-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.notification-season-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-decoration: none;
  color: #fff;
}

.notification-poster-container {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.notification-poster {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.notification-season-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-season-info strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.notification-item.error {
  color: #ff6b6b;
  text-align: center;
  text-decoration: none;
}

.notification-season-container,
.notification-user-name,
.notification-item a {
  text-decoration: none !important;
}

.btn-secondary.btn-small {
  background: rgba(60, 60, 60, 0.7);
  color: white;
  border: 1px solid #555;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary.btn-small:hover {
  background: rgba(80, 80, 80, 0.7);
  transform: translateY(-1px);
}

.premium-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.premium-modal {
  background: rgba(40, 40, 40, 0.9);
  border-radius: 20px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.premium-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.premium-modal-close:hover {
  color: #a855f7;
}

.premium-modal-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.premium-modal-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 20px;
}

.premium-benefits {
  margin-bottom: 30px;
}

.benefits-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 10px;
}

.benefit-icon {
  color: #a855f7;
  font-size: 1.2rem;
}

.subscription-plans {
  margin-bottom: 20px;
}

.plans-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: 15px;
  gap: 15px;
}

.plan-card {
  background: rgba(60, 60, 60, 0.7);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.plan-duration {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 1.2rem;
  color: #a855f7;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.plan-discount {
  color: #858585;
  font-size: 0.8rem;
}

.plan-button {
  background: #a855f7;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.plan-button:hover {
  background: #9333ea;
  transform: translateY(-2px);
}

.premium-terms {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 20px;
}

/* Медиа-запрос для экранов до 768px (планшеты и телефоны) */
@media (max-width: 768px) {
  .premium-modal {
    padding: 20px;
    border-radius: 15px;
    max-width: 95%;
  }

  .premium-modal-title {
    font-size: 1.5rem;
  }

  .premium-modal-subtitle {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .benefits-title,
  .plans-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .benefits-list li {
    font-size: 0.9rem;
    gap: 8px;
    margin-bottom: 8px;
  }

  .benefit-icon {
    font-size: 1.1rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .plan-card {
    padding: 12px;
  }

  .plan-duration {
    font-size: 1rem;
  }

  .plan-price {
    font-size: 1.1rem;
    gap: 6px;
  }

  .plan-discount {
    font-size: 0.8rem;
    padding: 2px 6px;
  }

  .plan-button {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 15px;
  }

  .premium-terms {
    font-size: 0.75rem;
  }

  .premium-modal-close {
    top: 10px;
    right: 10px;
    font-size: 1rem;
  }
}

/* Медиа-запрос для экранов до 480px (маленькие телефоны) */
@media (max-width: 480px) {
  .premium-modal {
    padding: 15px;
    border-radius: 12px;
    max-width: 98%;
    max-height: 85vh;
  }

  .premium-modal-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .premium-modal-subtitle {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .premium-benefits {
    margin-bottom: 20px;
  }

  .benefits-title,
  .plans-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .benefits-list li {
    font-size: 0.85rem;
    gap: 6px;
    margin-bottom: 6px;
  }

  .benefit-icon {
    font-size: 1rem;
  }

  .plans-grid {
    gap: 10px;
  }

  .plan-card {
    padding: 10px;
  }

  .plan-duration {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .plan-price {
    font-size: 1rem;
    gap: 5px;
  }

  .plan-discount {
    font-size: 0.75rem;
    padding: 1px 5px;
    border-radius: 25px;
  }

  .plan-button {
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 12px;
  }

  .premium-terms {
    font-size: 0.7rem;
    margin-top: 15px;
  }

  .premium-modal-close {
    top: 8px;
    right: 8px;
    font-size: 0.9rem;
  }
}

.footer {
  background: #1a1a1a;
  padding: 40px 5%;
  text-align: center;
  margin-top: 50px;
  border-radius: 20px 20px 0 0;
}

.footer p {
  margin-bottom: 20px;
  opacity: 0.7;
  color: white;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.footer-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: #ffffff;
  color: black;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  min-width: 120px;
  box-sizing: border-box;
}

.footer-button:hover {
  background-color: #dddddd;
  transform: scale(1.05);
}

.footer-button-text {
  display: inline;
}

.footer .footer-button-icon {
  display: none;
  font-family: "Material Icons Round";
  font-size: 24px;
  line-height: 1;
}

@media (min-width: 769px) {
  .footer .footer-button-icon {
    display: none !important;
  }
  .footer-button-text {
    display: inline !important;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 3%;
  }

  .footer p {
    font-size: 0.9rem;
  }

  .footer-links {
    flex-direction: row;
    gap: 10px;
  }

  .footer-button {
    padding: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
  }

  .footer-button-text {
    display: none;
  }

  .footer .footer-button-icon {
    display: block;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 20px 3%;
  }

  .footer p {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .footer .footer-button-icon {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-button {
    transition: none;
  }
}

.login-page-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.background-image {
  position: absolute;
  top: 7.5%;
  left: 15%;
  width: 70%;
  height: 85%;
  object-fit: cover;
  border-radius: 30px;
  z-index: -1;
  opacity: 0.5;
}

.background-image-blur {
  position: absolute;
  top: 13%;
  left: 15%;
  width: 70%;
  height: 95%;
  border-radius: 0px;
  object-fit: cover;
  z-index: -3;
  filter: blur(75px) brightness(0.5);
  opacity: 0.6;
}

.login-container {
  width: 90%;
  max-width: 500px;
  background: rgba(51, 51, 51, 0.76);
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
  margin-bottom: 40px;
  text-align: center;
}

.login-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #a855f7;
}

.login-header p {
  opacity: 0.7;
}

.form-login {
  margin-bottom: 20px;
}

.form-login label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-login input {
  width: 95%;
  padding: 15px;
  border-radius: 35px;
  border: none;
  background: #444;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-login input:focus {
  background: #555;
  box-shadow: 0 0 0 2px #a855f7;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password a {
  color: #a855f7;
  text-decoration: none;
  font-size: 0.9rem;
}

.login-button2 {
  width: 100%;
  padding: 8px;
  border-radius: 35px;
  border: none;
  background: #a855f7;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button:hover {
  background: #9333ea;
  transform: translateY(-2px);
}

.register-link {
  text-align: center;
  margin-top: 20px;
}

.register-link a {
  color: #a855f7;
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 600px) {
  .login-container {
    padding: 30px;
  }

  .login-header h1 {
    font-size: 2rem;
  }
}

.registered-page-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.background-image {
  position: absolute;
  left: 15%;
  width: 70%;
  height: 95%;
  object-fit: cover;
  border-radius: 30px;
  z-index: -1;
  opacity: 0.5;
}

.background-image-blur {
  position: absolute;
  left: 8%;
  width: 80%;
  height: 100%;
  border-radius: 0px;
  z-index: -3;
  filter: blur(75px) brightness(0.5);
  opacity: 0.9;
}

.register-container {
  width: 90%;
  max-width: 500px;
  background: rgba(51, 51, 51, 0.884);
  border-radius: 30px;
  padding: 15px 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.103);
  margin: 20px 0;
}

.register-header {
  margin-bottom: 30px;
  text-align: center;
}

.register-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #a855f7;
}

.register-header p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.form-registered {
  margin-bottom: 15px;
}

.form-registered label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-registered input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 30px;
  border: none;
  background: #444;
  color: white;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-registered input:focus {
  background: #555;
  box-shadow: 0 0 0 2px #a855f7;
}

.terms {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.terms input {
  margin-right: 8px;
  min-width: 16px;
  min-height: 16px;
}

.terms label {
  font-size: 0.8rem;
  line-height: 1.4;
}

.terms a {
  color: #a855f7;
  text-decoration: none;
}

.register-button {
  width: 100%;
  padding: 12px;
  border-radius: 15px;
  border: none;
  background: #a855f7;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.register-button:hover {
  background: #9333ea;
  transform: translateY(-2px);
}

.login-link {
  text-align: center;
  margin-top: 15px;
}

.login-link p {
  font-size: 0.9rem;
}

.login-link a {
  color: #a855f7;
  text-decoration: none;
  font-weight: 500;
}

.error-field,
.general-error {
  color: #ff4d4f;
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
}

@media (max-width: 600px) {
  .background-image {
    left: 10%;
    width: 80%;
    height: 85%;
  }

  .background-image-blur {
    width: 90%;
  }

  .register-container {
    padding: 30px 20px;
    width: 95%;
  }

  .register-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 400px) {
  .register-header h1 {
    font-size: 1.6rem;
  }

  .form-registered input {
    padding: 10px 15px;
  }
}

/* Контейнер карточки аниме (десктоп по умолчанию) */
.anime-card {
  width: 220px;
  height: 320px;
  transition: all 0.3s ease;
  border-radius: 35px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Ссылка для перехода */
.anime-card-link {
  text-decoration: none;
  display: block;
}

/* Внутренний контейнер для сезонов */
.anime-card-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Скелетоны для AnimeCard */
.anime-card-skeleton-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.3),
    transparent
  );

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 1;
}

.anime-card-skeleton-title {
  width: 80%;
  height: 1.2rem;
  background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

.anime-card-skeleton-description {
  width: 100%;
  height: 0.9rem;
  background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 15px;
}

.anime-card-skeleton-buttons {
  display: flex;
  gap: 3px;
}

.anime-card-skeleton-button {
  width: 80px;
  height: 42px;
  background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 30px 13px 13px 30px;
}

.anime-card-skeleton-plan-button {
  width: 44px;
  height: 42px;
  background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 13px 30px 30px 13px;
}

@media (max-width: 768px) {
  .anime-card-skeleton-overlay {
    padding: 10px;
  }

  .anime-card-skeleton-title {
    height: 0.95rem;
    margin-bottom: 4px;
  }

  .anime-card-skeleton-description {
    height: 0.75rem;
    margin-bottom: 8px;
  }

  .anime-card-skeleton-button {
    height: 32px;
    width: 100px;
    border-radius: 24px 12px 12px 24px;
  }

  .anime-card-skeleton-plan-button {
    height: 32px;
    width: 44px;
    border-radius: 12px 24px 24px 12px;
  }
}

/* Контейнер для текущего сезона */
.season-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1s ease-in-out;
  opacity: 1;
  z-index: 2;
}

/* Контейнер для следующего сезона */
.season-content.next-season {
  z-index: 1;
  transition: opacity 1s ease-in-out;
  opacity: 0;
}

/* Анимация появления и затухания */
.fade-in {
  opacity: 1;
}

.fade-out {
  opacity: 0;
}

/* Отключение анимаций для prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .season-content {
    transition: none;
    opacity: 1 !important;
  }
}

/* Эффект наведения на карточку */
.anime-card:hover img {
  filter: blur(2px) brightness(0.7);
}

.anime-card:hover {
  transform: translateY(-5px);
}

/* Стили для изображения */
.anime-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  display: block;
}

/* Контейнер для бейджей (справа) */
.anime-card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 3;
}

/* Контейнер для бейджей (слева) */
.anime-card-badges-2 {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 3;
}

/* Стили для бейджей */
.anime-card-rating-badge,
.anime-card-4k-badge,
.anime-card-announced-badge,
.anime-card-hot-badge {
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anime-card-rating-badge.gray {
  background: rgba(141, 141, 141, 0.5);
}

.anime-card-rating-badge.green {
  background: rgba(76, 175, 80, 0.7);
}

.anime-card-rating-badge.red {
  background: rgba(244, 67, 54, 0.7);
}

.anime-card-hot-badge {
  background: rgba(255, 0, 0, 0.432);
}

.anime-card-hot-badge .material-icons-round {
  font-size: 1rem;
}

/* Скрытие бейджей при наведении */
.anime-card:hover .anime-card-rating-badge,
.anime-card:hover .anime-card-4k-badge,
.anime-card:hover .anime-card-hot-badge,
.anime-card:hover .anime-card-announced-badge {
  opacity: 0;
}

/* Оверлей с информацией (скрыт по умолчанию на десктопе) */
.anime-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.anime-card:hover .anime-card-overlay {
  opacity: 1;
}

/* Стили для заголовка */
.anime-card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: white;
}

/* Стили для описания */
.anime-card-description {
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
}

/* Контейнер для кнопок */
.anime-card-buttons {
  display: flex;
  gap: 3px;
}

/* Стили для кнопки "Смотреть" */
.anime-watch-button {
  color: #111;
  background: #fff;
  padding: 10px 35px;
  border: none;
  border-radius: 30px 13px 13px 30px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1 1;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
}

.anime-watch-button:hover {
  background: #f0f0f0;
  transform: scale(1.02);
}

/* Стили для кнопки "Добавить в коллекцию" */
.anime-plan-button {
  background: rgba(255, 255, 255, 0.2);
  color: rgb(255, 255, 255);
  padding: 8px 15px;
  border: none;
  border-radius: 13px 30px 30px 13px;
  cursor: pointer;
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.anime-plan-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.anime-plan-button:hover::before {
  width: 100px;
  height: 100px;
}

.anime-plan-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05) rotate(2deg);
}

.anime-plan-button:active {
  transform: scale(0.98);
}

.anime-plan-button.in-collection {
  background: #5858589d;
  color: white;
  transform: scale(1);
}

.anime-plan-button.in-collection:hover {
  background: #5858589d;
  transform: scale(1.02);
}

.anime-plan-button.in-collection::before {
  display: none;
}

/* Стили для заглушки изображения */
.image-skeleton {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 30px;
}

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

/* Стили для сообщений об ошибках */
.anime-card-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 5px;
  z-index: 3;
  font-size: 0.8rem;
}

/* Мобильные стили */
@media (max-width: 768px) {
  /* Контейнер карточки аниме для мобильных устройств */
  .anime-card {
    width: 160px;
    height: 240px;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }

  /* Стили для изображения */
  .anime-card img {
    border-radius: 25px;
  }

  /* Отключение ховер-эффектов */
  .anime-card:hover img {
    filter: none;
  }

  .anime-card:hover {
    transform: none;
  }

  .anime-card:hover .anime-card-rating-badge,
  .anime-card:hover .anime-card-4k-badge,
  .anime-card:hover .anime-card-hot-badge,
  .anime-card:hover .anime-card-announced-badge {
    opacity: 1;
  }

  /* Контейнер для бейджей */
  .anime-card-badges {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .anime-card-badges-2 {
    top: 8px;
    left: 8px;
    gap: 6px;
  }

  /* Стили для бейджей */
  .anime-card-rating-badge,
  .anime-card-4k-badge,
  .anime-card-announced-badge,
  .anime-card-hot-badge {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .anime-card-hot-badge .material-icons-round {
    font-size: 0.9rem;
  }

  /* Оверлей с информацией (всегда виден на мобильных) */
  .anime-card-overlay {
    bottom: 0;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.3),
      transparent
    );
    padding: 10px;
    opacity: 1;
  }

  /* Стили для заголовка */
  .anime-card-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
    margin-top: -4px;
  }

  /* Стили для описания */
  .anime-card-description {
    font-size: 0.75rem;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
  }

  /* Контейнер для кнопок */
  .anime-card-buttons {
    gap: 2px;
  }

  /* Стили для кнопки "Смотреть" */
  .anime-watch-button {
    padding: 7px 12px;
    border-radius: 24px 12px 12px 24px;
    font-size: 0.75rem;
    min-width: 44px;
  }

  .anime-watch-button:hover {
    background: #fff;
    transform: none;
  }

  /* Стили для кнопки "Добавить в коллекцию" */
  .anime-plan-button {
    padding: 6px 10px;
    border-radius: 12px 24px 24px 12px;
    height: 32px;
    min-width: 44px;
  }

  .anime-plan-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: none;
  }

  .anime-plan-button::before {
    display: none;
  }

  /* Стили для заглушки изображения */
  .image-skeleton {
    border-radius: 25px;
  }

  /* Стили для сообщений об ошибках */
  .anime-card-error {
    padding: 8px;
    font-size: 0.7rem;
  }
}

/* Дополнительная адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
  .anime-card {
    min-width: 150px;
  }
}

.continue-watching-card {
  min-width: 300px;
  height: 180px;
  border-radius: 30px;
  overflow: hidden;
  background: #333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none; /* Убираем подчеркивание ссылки */
  color: inherit; /* Наследуем цвет текста */
}

.continue-watching-card:hover {
  transform: translateY(-5px);
}

.continue-watching-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-skeleton-horizontal {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.progress {
  height: 100%;
  background: #a955f7c4;
  transition: width 0.3s ease;
}

.continue-watching-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.514);
  display: flex;
  align-items: flex-end;
  padding: 15px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.continue-watching-info {
  flex: 1 1;
}

.continue-watching-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #fff; /* Явно задаем белый цвет */
}

.continue-watching-episode {
  font-size: 0.9rem;
  color: #aaa; /* Серый цвет для эпизода */
}

.delete {
  position: absolute;
  top: 5px;
  right: 10px;
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  color: rgb(230, 230, 230);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
  background-color: transparent; /* Changed to transparent for clarity */
  border: none; /* Remove default button border */
  outline: none; /* Remove default focus outline */
  -webkit-appearance: none;
          appearance: none; /* Remove browser-specific styling */
  cursor: pointer; /* Ensure pointer cursor for clickability */
}

.delete:hover {
  transform: scale(1.05);
  color: #e23737; /* Updated to solid red for better visibility */
}

.continue-watching-list {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 15px 5px;
  border-radius: 30px;
  scrollbar-width: thin;
  scrollbar-color: #575757 #7a7a7a41;
}

.continue-watching-overlay .viewed-status {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(90deg, #a955f7c4, #ba99ff);
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
  z-index: 10;
}

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

.main-container {
  position: relative;
}

.home-player-ambient-wrapper {
  position: relative;
  border-radius: 0 0 35px 35px;
}

.hero {
  position: relative;
  width: 100%;
  height: 75vh;
  display: block;
  z-index: 2;
  border-radius: 0 0 35px 35px;
}
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

.video-poster.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Скелетоны для hero */
.hero-skeleton {
  position: relative;
  width: 100%;
  height: 75vh;
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 0 0 35px 35px;
}

.hero-skeleton-content {
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-skeleton-title {
  width: 40%;
  height: 2.5rem;
  background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

.hero-skeleton-text {
  width: 80%;
  height: 1rem;
  background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.hero-skeleton-button {
  width: 120px;
  height: 40px;
  background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 20px;
}

/* Скелетоны для списка карточек */
.skeleton-card {
  width: 220px;
  height: 320px;
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 30px;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .hero-skeleton {
    height: 60vh;
  }

  .hero-skeleton-content {
    width: 80%;
    bottom: 10%;
  }

  .hero-skeleton-title {
    height: 1.8rem;
  }

  .hero-skeleton-text {
    height: 0.9rem;
  }

  .hero-skeleton-button {
    width: 100px;
    height: 32px;
  }

  .skeleton-card {
    width: 160px;
    height: 240px;
    border-radius: 25px;
  }
}

@media (max-width: 480px) {
  .hero-skeleton {
    height: 50vh;
  }

  .hero-skeleton-content {
    width: 90%;
    bottom: 5%;
  }

  .hero-skeleton-title {
    height: 1.5rem;
  }

  .hero-skeleton-text {
    height: 0.8rem;
  }

  .hero-skeleton-button {
    width: 80px;
    height: 28px;
  }

  .skeleton-card {
    width: 130px;
    height: 240px;
  }
}

.video-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  z-index: 2;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
}

.ambient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border-bottom-left-radius: 35px;
  border-bottom-right-radius: 35px;
  background: transparent;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 5%;
  left: 5%;
  z-index: 2;
  width: 60%;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.hero p {
  opacity: 0.9;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-buttons button {
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.watch-button {
  background: #ffffff;
  color: rgb(0, 0, 0);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.2s;
  box-shadow: none;
}

.watch-button:hover {
  background: #ebebeb;
  text-decoration: none;
  transform: scale(1.05);
}

.plan-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  white-space: nowrap;
}

.plan-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.section {
  margin: 25px 5%;
}

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

.section-title h2 {
  font-size: 1.5rem;
  color: #ffffff;
  z-index: 5;
}

.anime-list,
.continue-watching-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 15px 5px;
  scrollbar-width: thin;
  scrollbar-color: #b4b4b4 #333;
  border-radius: 30px;
}

.video-player {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100vh;
  display: block;
}

.promo-section {
  margin: 25px 5%;
  border-radius: 30px;
  overflow: hidden;
  animation: fadeIn 0.5s ease-in;
  height: 200px;
}

.promo-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.promo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border-radius: 30px;
}

.promo-content {
  position: absolute;
  top: 20px;
  left: 20px;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  max-width: 50%;
}

.promo-text {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: left;
}

.watch-button {
  align-self: flex-end;
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.error {
  color: #ff5555;
  font-size: 1rem;
}

.retry-button {
  background: #ffffff;
  color: #000000;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  border: none;
  transition: transform 0.2s, background 0.2s;
}

.retry-button:hover {
  background: #ebebeb;
  transform: scale(1.05);
}

.empty-message {
  font-size: 1rem;
  color: #b4b4b4;
  text-align: center;
}

.auth-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #b4b4b4;
}

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

@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .hero-content {
    width: 80%;
    bottom: 10%;
  }

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

  .hero p {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .watch-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  #ambientCanvas {
    filter: none; /* Отключаем blur для производительности */
  }

  .video-container {
    opacity: 0.6; /* Улучшаем читаемость текста */
  }

  .anime-list,
  .continue-watching-list {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .anime-list > *,
  .continue-watching-list > * {
    scroll-snap-align: start;
    flex: 0 0 150px; /* Фиксированная ширина карточек на мобильных */
  }

  .anime-list::-webkit-scrollbar,
  .continue-watching-list::-webkit-scrollbar {
    height: 8px;
  }

  .anime-list::-webkit-scrollbar-thumb,
  .continue-watching-list::-webkit-scrollbar-thumb {
    background: #b4b4b4;
    border-radius: 4px;
  }

  .anime-list::-webkit-scrollbar-track,
  .continue-watching-list::-webkit-track {
    background: #333;
  }

  .promo-section {
    height: 150px;
  }

  .promo-content {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: 70%;
  }

  .promo-text {
    font-size: 0.9rem;
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
  }

  .hero-content {
    width: 90%;
    bottom: 5%;
    margin-top: 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .watch-button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .section {
    margin: 20px 3%;
  }

  .section-title h2 {
    font-size: 1.2rem;
  }

  .anime-list > *,
  .continue-watching-list > * {
    flex: 0 0 130px; /* Чуть меньше для маленьких экранов */
  }
}

@media (max-width: 400px) {
  .hero-content {
    width: 90%;
    bottom: 5%;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ambientCanvas,
  .ambient-overlay,
  .promo-section {
    animation: none;
  }

  #ambientCanvas {
    display: none;
  }
}

.promo-section {
  margin: 20px 5%;
  border-radius: 35px;
  overflow: hidden;
  animation: fadeIn 0.5s ease-in;
  height: auto;
  background-color: #111;
  position: relative;
}

.promo-container {
  position: relative;
  width: 100%;
  min-height: 250px;
  display: flex;
}

.promo-image {
  width: 100%;
  height: 110%;
  object-fit: cover;
  opacity: 0.8;
  position: absolute;
  top: -20px;
  left: 0;
  z-index: 1;
}

.promo-content {
  position: relative;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  width: 100%;
  max-width: 95%;
  margin-bottom: 10px;
}

.promo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.promo-main-title {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.promo-subtitle {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.watch-button {
  align-self: flex-end;
  padding: 10px 20px;
  background-color: #ffffff;
  color: black;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
}

.watch-button:hover {
  background-color: #dddddd;
  transform: scale(1.05);
}

.promo-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 10px;
}

.error-text {
  color: #ff5555;
  font-size: 1rem;
}

.retry-button {
  padding: 8px 16px;
  background-color: #ffffff;
  color: black;
  border-radius: 20px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.retry-button:hover {
  background-color: #dddddd;
  transform: scale(1.05);
}

/* Скелетоны */
.promo-skeleton {
  position: relative;
  width: 100%;
  min-height: 200px;
  display: flex;
}

.promo-skeleton-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.promo-skeleton-content {
  position: relative;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  width: 100%;
  max-width: 95%;
  margin-bottom: 10px;
}

.promo-skeleton-title {
  width: 60%;
  height: 1.8rem;
  background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
  margin-bottom: 10px;
}

.promo-skeleton-subtitle {
  width: 80%;
  height: 1rem;
  background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 20px;
}

.promo-skeleton-button {
  align-self: flex-end;
  width: 120px;
  height: 40px;
  background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 20px;
}

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

@media (max-width: 768px) {
  .promo-content,
  .promo-skeleton-content {
    max-width: 90%;
    padding: 15px;
    margin-bottom: 15px;
  }

  .promo-main-title {
    font-size: 1.4rem;
  }

  .promo-subtitle {
    font-size: 0.9rem;
  }

  .watch-button {
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  .promo-skeleton-title {
    height: 1.4rem;
    width: 70%;
  }

  .promo-skeleton-subtitle {
    height: 0.9rem;
    width: 90%;
  }

  .promo-skeleton-button {
    width: 100px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .promo-section {
    margin: 15px 3%;
  }

  .promo-container,
  .promo-skeleton {
    min-height: 150px;
  }

  .promo-content,
  .promo-skeleton-content {
    padding: 10px;
  }

  .promo-main-title {
    font-size: 1.2rem;
  }

  .promo-subtitle {
    font-size: 0.8rem;
  }

  .watch-button {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .promo-skeleton-title {
    height: 1.2rem;
  }

  .promo-skeleton-subtitle {
    height: 0.8rem;
  }

  .promo-skeleton-button {
    width: 80px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-section,
  .promo-skeleton-image,
  .promo-skeleton-title,
  .promo-skeleton-subtitle,
  .promo-skeleton-button {
    animation: none;
  }
}

.section {
  margin: 0px 5%;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title h2 {
  font-size: 1.5rem;
  color: #ffffff;
}

.genre-block {
  margin-bottom: -5px;
}

.genre-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.genre-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.anime-list {
  display: flex;
  gap: 20px;
  padding: 15px 5px;
  border-radius: 30px;
  overflow-x: auto; /* Включаем горизонтальную прокрутку */
  scroll-snap-type: x mandatory; /* Привязка прокрутки к элементам */
  -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
  scrollbar-width: none; /* Скрыть скроллбар в Firefox */
  -ms-overflow-style: none; /* Скрыть скроллбар в IE/Edge */
}

.anime-list::-webkit-scrollbar {
  display: none; /* Скрыть скроллбар в Chrome, Safari, Edge */
}

.anime-list > * {
  scroll-snap-align: start;
}

.genre-view-all-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #000000;
  cursor: pointer;
  border-radius: 50px;
  background: rgb(255, 255, 255);
  transition: background-color 0.3s, transform 0.3s;
  text-decoration: none;
  flex-shrink: 0;
}

.genre-view-all-icon:hover {
  background: #a855f7;
  color: white;
  transform: scale(1.05);
}

.genre-view-all-icon .material-icons-round {
  font-size: 18px;
}

.error {
  color: red;
  text-align: center;
}

.empty-message {
  text-align: center;
  color: #666;
}

.loading {
  text-align: center;
  color: #666;
}

@media (max-width: 768px) {
  .anime-list.mobile-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .anime-list.mobile-scroll > * {
    flex: 0 0 150px; /* Меньшая ширина карточек для мобильных */
  }
}

@media (max-width: 480px) {
  .anime-list.mobile-scroll > * {
    flex: 0 0 130px; /* Еще меньшая ширина для маленьких экранов */
  }

  .section {
    margin: 10px 3%;
  }

  .section-title h2 {
    font-size: 1.2rem;
  }
}

:root {
  --card-color: #2a2a2a;
}

/* Main content */
.settings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px;
  min-height: calc(100vh - 120px);
}

.settings-header {
  margin-bottom: 30px;
}

.settings-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.settings-header p {
  color: #aaa;
}

/* Tabs */
.settings-tabs {
  display: flex;
  border-bottom: 1px solid #444;
  margin-bottom: 30px;
  gap: 5px;
}

.settings-tab {
  padding: 15px 25px;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  border-radius: 25px 25px 0px 0px;
  transition: all 0.2s;
}

.settings-tab:hover {
  background-color: rgba(168, 85, 247, 0.1);
}

.settings-tab.active {
  color: #a855f7;
}

.settings-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #a855f7;
}

/* Tab content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.settings-card {
  background-color: #2a2a2a;
  background-color: var(--card-color);
  border-radius: 35px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.settings-card.with-bg {
  background-size: cover;
  background-position: center;
}

.settings-card.with-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: brightness(0.3);
  z-index: 0;
}

.settings-card.with-bg > * {
  position: relative;
  z-index: 1;
}

.settings-card h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #a855f7;
}

/* Form elements */
.profileform-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.profileform-control {
  width: 94%;
  padding: 12px 15px;
  border-radius: 35px;
  border: 1px solid #444;
  background-color: rgba(51, 51, 51, 0.8);
  color: white;
  font-size: 16px;
  transition: all 0.2s;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.form-settings {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  width: 98%;
}

.form-settings input {
  width: 100%;
  padding: 15px;
  border-radius: 30px;
  border: none;
  background: #444;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.form-hint {
  font-size: 14px;
  color: #dadada;
  margin-top: 5px;
}

.form-hint2 {
  font-size: 14px;
  color: #d6d6d6;
  margin-top: -20px;
}

/* Avatar section */
.avatar-section {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.avatar-preview {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.avatar-preview-frame {
  position: absolute;
  top: -25px;
  left: -20px;
  right: -20px;
  bottom: -25px;
  z-index: 2;
  pointer-events: none;
}

.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn {
  padding: 12px 25px;
  border-radius: 35px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.btn-primary {
  background-color: #a855f7;
  color: white;
}

.btn-primary:hover {
  background-color: #9333ea;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(51, 51, 51, 0.8);
  color: white;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background-color: rgba(68, 68, 68, 0.8);
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

/* Frame selector */
.frame-selector {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #a855f7 #444;
}

.frame-selector::-webkit-scrollbar {
  height: 8px;
}

.frame-selector::-webkit-scrollbar-track {
  background: #444;
  border-radius: 4px;
}

.frame-selector::-webkit-scrollbar-thumb {
  background: #a855f7;
  border-radius: 4px;
}

.frame-option {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}

.frame-option:hover {
  transform: scale(1.05);
}

.frame-option.selected {
  border-color: #a855f7;
}

.frame-option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.frame-option.empty-frame {
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-option.empty-frame::before {
  content: "×";
  color: #aaa;
  font-size: 24px;
}

.frame-option.add-option {
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #a855f7;
}

.frame-option.add-option:hover {
  background-color: #444;
}

/* Emoji selector */
.emoji-selector {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #a855f7 #444;
}

.emoji-selector::-webkit-scrollbar {
  height: 8px;
}

.emoji-selector::-webkit-scrollbar-track {
  background: #444;
  border-radius: 4px;
}

.emoji-selector::-webkit-scrollbar-thumb {
  background: #a855f7;
  border-radius: 4px;
}

.emoji-option {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}

.emoji-option:hover {
  transform: scale(1.05);
}

.emoji-option.selected {
  border-color: #a855f7;
}

.emoji-option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.emoji-option.empty-emoji {
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-option.empty-emoji::before {
  content: "×";
  color: #aaa;
  font-size: 20px;
}

.emoji-option.add-option {
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #a855f7;
}

.emoji-option.add-option:hover {
  background-color: #444;
}

/* Locked icon */
.locked-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Toggle switch */
.setings-toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin-right: 10px;
}

.setings-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: 0.4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #a855f7;
}

input:checked + .toggle-slider:before {
  transform: translateX(30px);
}

.toggle-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.toggle-label {
  font-size: 16px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #2a2a2a;
  background-color: var(--card-color);
  border-radius: 35px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-content-scrollable {
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #a855f7 #444;
}

.modal-content-scrollable::-webkit-scrollbar {
  width: 8px;
}

.modal-content-scrollable::-webkit-scrollbar-track {
  background: #444;
  border-radius: 4px;
}

.modal-content-scrollable::-webkit-scrollbar-thumb {
  background: #a855f7;
  border-radius: 4px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}

.modal-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: #a855f7;
}

.upload-preview {
  width: 100%;
  height: 200px;
  background-color: #333;
  border-radius: 35px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.upload-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

/* Item list in modal */
.item-list {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.item-option {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 15px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  background-size: cover;
  background-position: center;
  border: 1px solid #fff;
  width: 100%;
}

.item-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  filter: brightness(0.7);
  z-index: 0;
  border-radius: 15px;
}

.item-option > * {
  position: relative;
  z-index: 1;
}

.item-option:hover {
  transform: translateY(-2px);
}

.item-option.selected {
  border: 2px solid #a855f7;
}

.item-option.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  margin-right: 15px;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-description {
  flex: 1 1;
  color: white;
}

.item-description h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.item-description p {
  font-size: 14px;
  color: #aaa;
}

.item-locked-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Responsive */
@media (max-width: 992px) {
  .settings-container {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .settings-container {
    padding: 20px;
  }

  .avatar-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-tabs {
    overflow-x: auto;
    padding-bottom: 5px;
  }
}

@media (max-width: 576px) {
  .settings-card {
    padding: 20px;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }

  .item-option {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-image {
    margin-bottom: 10px;
    margin-right: 0;
  }
}

.profile-ambient-wrapper {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#ambientCanvas {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
  filter: blur(100px) brightness(1);
  transform: scaleX(0.8) scaleY(0.9);
  transform-origin: center;
}

.ambient-overlay {
  position: absolute;
  top: 80px;
  left: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  #ambientCanvas,
  .ambient-overlay {
    display: none;
  }
}

/* Стили для шагов пропуска */
.skip-steps-container {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.skip-step-option {
  position: relative;
}

.skip-step-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.skip-step-option label {
  display: inline-block;
  padding: 8px 15px;
  background-color: rgba(51, 51, 51, 0.8);
  border-radius: 35px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #444;
}

.skip-step-option input[type="radio"]:checked + label {
  background-color: #a855f7;
  color: white;
  border-color: #a855f7;
}

.skip-step-option label:hover {
  background-color: rgba(68, 68, 68, 0.8);
}

:root {
  --toastify-color-light: #fff;
  --toastify-color-dark: #121212;
  --toastify-color-info: #3498db;
  --toastify-color-success: #07bc0c;
  --toastify-color-warning: #f1c40f;
  --toastify-color-error: hsl(6, 78%, 57%);
  --toastify-color-transparent: rgba(255, 255, 255, 0.7);

  --toastify-icon-color-info: var(--toastify-color-info);
  --toastify-icon-color-success: var(--toastify-color-success);
  --toastify-icon-color-warning: var(--toastify-color-warning);
  --toastify-icon-color-error: var(--toastify-color-error);

  --toastify-container-width: fit-content;
  --toastify-toast-width: 320px;
  --toastify-toast-offset: 16px;
  --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
  --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
  --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
  --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
  --toastify-toast-background: #fff;
  --toastify-toast-padding: 14px;
  --toastify-toast-min-height: 64px;
  --toastify-toast-max-height: 800px;
  --toastify-toast-bd-radius: 6px;
  --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  --toastify-font-family: sans-serif;
  --toastify-z-index: 9999;
  --toastify-text-color-light: #757575;
  --toastify-text-color-dark: #fff;

  /* Used only for colored theme */
  --toastify-text-color-info: #fff;
  --toastify-text-color-success: #fff;
  --toastify-text-color-warning: #fff;
  --toastify-text-color-error: #fff;

  --toastify-spinner-color: #616161;
  --toastify-spinner-color-empty-area: #e0e0e0;
  --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
  --toastify-color-progress-dark: #bb86fc;
  --toastify-color-progress-info: var(--toastify-color-info);
  --toastify-color-progress-success: var(--toastify-color-success);
  --toastify-color-progress-warning: var(--toastify-color-warning);
  --toastify-color-progress-error: var(--toastify-color-error);
  /* used to control the opacity of the progress trail */
  --toastify-color-progress-bgo: 0.2;
}

.Toastify__toast-container {
  z-index: 9999;
  z-index: var(--toastify-z-index);
  -webkit-transform: translate3d(0, 0, 9999);
  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));
  position: fixed;
  width: -webkit-fit-content;
  width: fit-content;
  width: var(--toastify-container-width);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.Toastify__toast-container--top-left {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  left: max(16px, env(safe-area-inset-left));
  left: var(--toastify-toast-left);
}
.Toastify__toast-container--top-center {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}
.Toastify__toast-container--top-right {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  right: max(16px, env(safe-area-inset-right));
  right: var(--toastify-toast-right);
  align-items: end;
}
.Toastify__toast-container--bottom-left {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  left: max(16px, env(safe-area-inset-left));
  left: var(--toastify-toast-left);
}
.Toastify__toast-container--bottom-center {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}
.Toastify__toast-container--bottom-right {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  right: max(16px, env(safe-area-inset-right));
  right: var(--toastify-toast-right);
  align-items: end;
}

.Toastify__toast {
  --y: 0;
  position: relative;
  touch-action: none;
  width: 320px;
  width: var(--toastify-toast-width);
  min-height: 64px;
  min-height: var(--toastify-toast-min-height);
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 14px;
  padding: var(--toastify-toast-padding);
  border-radius: 6px;
  border-radius: var(--toastify-toast-bd-radius);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  box-shadow: var(--toastify-toast-shadow);
  max-height: 800px;
  max-height: var(--toastify-toast-max-height);
  font-family: sans-serif;
  font-family: var(--toastify-font-family);
  /* webkit only issue #791 */
  z-index: 0;
  /* inner swag */
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  word-break: break-word;
}

@media only screen and (max-width: 480px) {
  .Toastify__toast-container {
    width: 100vw;
    left: env(safe-area-inset-left);
    margin: 0;
  }
  .Toastify__toast-container--top-left,
  .Toastify__toast-container--top-center,
  .Toastify__toast-container--top-right {
    top: env(safe-area-inset-top);
    transform: translateX(0);
  }
  .Toastify__toast-container--bottom-left,
  .Toastify__toast-container--bottom-center,
  .Toastify__toast-container--bottom-right {
    bottom: env(safe-area-inset-bottom);
    transform: translateX(0);
  }
  .Toastify__toast-container--rtl {
    right: env(safe-area-inset-right);
    left: auto;
    left: initial;
  }
  .Toastify__toast {
    --toastify-toast-width: 100%;
    margin-bottom: 0;
    border-radius: 0;
  }
}

.Toastify__toast-container[data-stacked='true'] {
  width: 320px;
  width: var(--toastify-toast-width);
}

.Toastify__toast--stacked {
  position: absolute;
  width: 100%;
  transform: translate3d(0, var(--y), 0) scale(var(--s));
  transition: transform 0.3s;
}

.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,
.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {
  transition: opacity 0.1s;
}

.Toastify__toast--stacked[data-collapsed='false'] {
  overflow: visible;
}

.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {
  opacity: 0;
}

.Toastify__toast--stacked:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--g) * 1px);
  bottom: 100%;
}

.Toastify__toast--stacked[data-pos='top'] {
  top: 0;
}

.Toastify__toast--stacked[data-pos='bot'] {
  bottom: 0;
}

.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {
  transform-origin: top;
}

.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {
  transform-origin: bottom;
}

.Toastify__toast--stacked:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  transform: scaleY(3);
  z-index: -1;
}

.Toastify__toast--rtl {
  direction: rtl;
}

.Toastify__toast--close-on-click {
  cursor: pointer;
}

.Toastify__toast-icon {
  -webkit-margin-end: 10px;
          margin-inline-end: 10px;
  width: 22px;
  flex-shrink: 0;
  display: flex;
}

.Toastify--animate {
  animation-fill-mode: both;
  animation-duration: 0.5s;
}

.Toastify--animate-icon {
  animation-fill-mode: both;
  animation-duration: 0.3s;
}

.Toastify__toast-theme--dark {
  background: #121212;
  background: var(--toastify-color-dark);
  color: #fff;
  color: var(--toastify-text-color-dark);
}

.Toastify__toast-theme--light {
  background: #fff;
  background: var(--toastify-color-light);
  color: #757575;
  color: var(--toastify-text-color-light);
}

.Toastify__toast-theme--colored.Toastify__toast--default {
  background: #fff;
  background: var(--toastify-color-light);
  color: #757575;
  color: var(--toastify-text-color-light);
}

.Toastify__toast-theme--colored.Toastify__toast--info {
  color: #fff;
  color: var(--toastify-text-color-info);
  background: #3498db;
  background: var(--toastify-color-info);
}

.Toastify__toast-theme--colored.Toastify__toast--success {
  color: #fff;
  color: var(--toastify-text-color-success);
  background: #07bc0c;
  background: var(--toastify-color-success);
}

.Toastify__toast-theme--colored.Toastify__toast--warning {
  color: #fff;
  color: var(--toastify-text-color-warning);
  background: #f1c40f;
  background: var(--toastify-color-warning);
}

.Toastify__toast-theme--colored.Toastify__toast--error {
  color: #fff;
  color: var(--toastify-text-color-error);
  background: hsl(6, 78%, 57%);
  background: var(--toastify-color-error);
}

.Toastify__progress-bar-theme--light {
  background: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
  background: var(--toastify-color-progress-light);
}

.Toastify__progress-bar-theme--dark {
  background: #bb86fc;
  background: var(--toastify-color-progress-dark);
}

.Toastify__progress-bar--info {
  background: #3498db;
  background: var(--toastify-color-progress-info);
}

.Toastify__progress-bar--success {
  background: #07bc0c;
  background: var(--toastify-color-progress-success);
}

.Toastify__progress-bar--warning {
  background: #f1c40f;
  background: var(--toastify-color-progress-warning);
}

.Toastify__progress-bar--error {
  background: hsl(6, 78%, 57%);
  background: var(--toastify-color-progress-error);
}

.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
  background: rgba(255, 255, 255, 0.7);
  background: var(--toastify-color-transparent);
}

.Toastify__close-button {
  color: #fff;
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s ease;
  z-index: 1;
}

.Toastify__toast--rtl .Toastify__close-button {
  left: 6px;
  right: auto;
  right: initial;
}

.Toastify__close-button--light {
  color: #000;
  opacity: 0.3;
}

.Toastify__close-button > svg {
  fill: currentColor;
  height: 16px;
  width: 14px;
}

.Toastify__close-button:hover,
.Toastify__close-button:focus {
  opacity: 1;
}

@keyframes Toastify__trackProgress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

.Toastify__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.7;
  transform-origin: left;
}

.Toastify__progress-bar--animated {
  animation: Toastify__trackProgress linear 1 forwards;
}

.Toastify__progress-bar--controlled {
  transition: transform 0.2s;
}

.Toastify__progress-bar--rtl {
  right: 0;
  left: auto;
  left: initial;
  transform-origin: right;
  border-bottom-left-radius: 0;
  border-bottom-left-radius: initial;
}

.Toastify__progress-bar--wrp {
  position: absolute;
  overflow: hidden;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border-bottom-left-radius: 6px;
  border-bottom-left-radius: var(--toastify-toast-bd-radius);
  border-bottom-right-radius: 6px;
  border-bottom-right-radius: var(--toastify-toast-bd-radius);
}

.Toastify__progress-bar--wrp[data-hidden='true'] {
  opacity: 0;
}

.Toastify__progress-bar--bg {
  opacity: 0.2;
  opacity: var(--toastify-color-progress-bgo);
  width: 100%;
  height: 100%;
}

.Toastify__spinner {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: #e0e0e0;
  border-color: var(--toastify-spinner-color-empty-area);
  border-right-color: #616161;
  border-right-color: var(--toastify-spinner-color);
  animation: Toastify__spin 0.65s linear infinite;
}

@keyframes Toastify__bounceInRight {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }
  75% {
    transform: translate3d(10px, 0, 0);
  }
  90% {
    transform: translate3d(-5px, 0, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutRight {
  20% {
    opacity: 1;
    transform: translate3d(-20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(2000px, var(--y), 0);
  }
}

@keyframes Toastify__bounceInLeft {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
  }
  75% {
    transform: translate3d(-10px, 0, 0);
  }
  90% {
    transform: translate3d(5px, 0, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutLeft {
  20% {
    opacity: 1;
    transform: translate3d(20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-2000px, var(--y), 0);
  }
}

@keyframes Toastify__bounceInUp {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }
  75% {
    transform: translate3d(0, 10px, 0);
  }
  90% {
    transform: translate3d(0, -5px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes Toastify__bounceOutUp {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%,
  45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -2000px, 0);
  }
}

@keyframes Toastify__bounceInDown {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 25px, 0);
  }
  75% {
    transform: translate3d(0, -10px, 0);
  }
  90% {
    transform: translate3d(0, 5px, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutDown {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%,
  45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 2000px, 0);
  }
}

.Toastify__bounce-enter--top-left,
.Toastify__bounce-enter--bottom-left {
  animation-name: Toastify__bounceInLeft;
}

.Toastify__bounce-enter--top-right,
.Toastify__bounce-enter--bottom-right {
  animation-name: Toastify__bounceInRight;
}

.Toastify__bounce-enter--top-center {
  animation-name: Toastify__bounceInDown;
}

.Toastify__bounce-enter--bottom-center {
  animation-name: Toastify__bounceInUp;
}

.Toastify__bounce-exit--top-left,
.Toastify__bounce-exit--bottom-left {
  animation-name: Toastify__bounceOutLeft;
}

.Toastify__bounce-exit--top-right,
.Toastify__bounce-exit--bottom-right {
  animation-name: Toastify__bounceOutRight;
}

.Toastify__bounce-exit--top-center {
  animation-name: Toastify__bounceOutUp;
}

.Toastify__bounce-exit--bottom-center {
  animation-name: Toastify__bounceOutDown;
}

@keyframes Toastify__zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}

@keyframes Toastify__zoomOut {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0;
    transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 0;
  }
}

.Toastify__zoom-enter {
  animation-name: Toastify__zoomIn;
}

.Toastify__zoom-exit {
  animation-name: Toastify__zoomOut;
}

@keyframes Toastify__flipIn {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }
  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
  }
}

@keyframes Toastify__flipOut {
  from {
    transform: translate3d(0, var(--y), 0) perspective(400px);
  }
  30% {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);
    opacity: 1;
  }
  to {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);
    opacity: 0;
  }
}

.Toastify__flip-enter {
  animation-name: Toastify__flipIn;
}

.Toastify__flip-exit {
  animation-name: Toastify__flipOut;
}

@keyframes Toastify__slideInRight {
  from {
    transform: translate3d(110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInLeft {
  from {
    transform: translate3d(-110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInUp {
  from {
    transform: translate3d(0, 110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInDown {
  from {
    transform: translate3d(0, -110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideOutRight {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(110%, var(--y), 0);
  }
}

@keyframes Toastify__slideOutLeft {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(-110%, var(--y), 0);
  }
}

@keyframes Toastify__slideOutDown {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, 500px, 0);
  }
}

@keyframes Toastify__slideOutUp {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, -500px, 0);
  }
}

.Toastify__slide-enter--top-left,
.Toastify__slide-enter--bottom-left {
  animation-name: Toastify__slideInLeft;
}

.Toastify__slide-enter--top-right,
.Toastify__slide-enter--bottom-right {
  animation-name: Toastify__slideInRight;
}

.Toastify__slide-enter--top-center {
  animation-name: Toastify__slideInDown;
}

.Toastify__slide-enter--bottom-center {
  animation-name: Toastify__slideInUp;
}

.Toastify__slide-exit--top-left,
.Toastify__slide-exit--bottom-left {
  animation-name: Toastify__slideOutLeft;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--top-right,
.Toastify__slide-exit--bottom-right {
  animation-name: Toastify__slideOutRight;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--top-center {
  animation-name: Toastify__slideOutUp;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--bottom-center {
  animation-name: Toastify__slideOutDown;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

@keyframes Toastify__spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.profile-background {
  width: 100%;
  height: 300px;
  border-radius: 0 0 50px 50px;
  background: #1a1a1a;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  object-fit: cover;
  filter: brightness(0.6);
}

.view-collections-btn {
  margin-left: auto;
  padding: 6px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-collections-btn .material-icons-round {
  font-size: 20px;
  color: #fcfcfc;
}

.view-collections-btn:hover .material-icons-round {
  color: #ffffff;
}

.profile-container {
  padding-top: 80px;
  min-height: 100vh;
  position: relative;
}

.profile-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 20px;
  position: relative;
  z-index: 2;
}

.profile-avatar {
  width: 180px;
  height: 180px;
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.profile-avatar-frame {
  position: absolute;
  top: -35px;
  left: -30px;
  right: -30px;
  bottom: -35px;
  z-index: 2;
  pointer-events: none;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.friend-avatar {
  cursor: pointer;
  width: 70px;
  height: 70px;
  position: relative;
  margin: 0 auto;
}

.friend-avatar-frame {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  z-index: 2;
  pointer-events: none;
}

.friend-actions {
  display: flex;
  gap: 10px;
}

.friend-action-right {
  opacity: 0.8;
}

.friend-action-right:hover {
  opacity: 1;
}

.comment-list .empty-comments {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  padding: 20px;
}

.friend-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.comment-delete-btn .material-icons-round {
  font-size: 18px;
  color: #aaa;
}

.btn2 {
  background: transparent;
  border: none;
}

.btn-danger2 {
  color: rgb(145, 145, 145);
}

.btn-danger2:hover {
  color: white;
}

.comment-delete-btn:hover .material-icons-round {
  color: #8686868e;
}

.comment-avatar-container {
  position: relative;
  width: 36px;
  height: 36px;
  margin-right: 10px;
}

.comment-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.comment-avatar-frame {
  position: absolute;
  top: -8px;
  left: -16px;
  right: -35px;
  bottom: -25px;
  z-index: 2;
  pointer-events: none;
}

.profile-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.profile-info {
  flex-grow: 1;
}

.profile-role {
  display: inline-block;
  background: #a955f7af;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: -15px;
  position: relative;
}

.profile-name {
  font-size: 2.2rem;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-emoji2 {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.friend-emoji {
  width: 20px;
  height: 20px;
  margin-top: 5px;
  object-fit: contain;
}

.comment-emoji {
  width: 16px;
  height: 16px;
  margin-left: -5px;
  object-fit: contain;
}

.profile-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  font-size: 25px;
  color: #bbbbbb;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: bold;
}

.stat-label {
  font-size: 0.9rem;
  color: #aaa;
}

.profile-description {
  color: #ddd;
  line-height: 1.6;
  max-width: 1000px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-gap: 20px;
  gap: 20px;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: rgba(40, 40, 40, 0.7);
  border-radius: 25px;
  padding: 15px;
  padding-top: 5px;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-title {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title .material-icons-round {
  font-size: 22px;
  color: #e2e2e2;
}

.achievement-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(5px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.achievement-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 20px;
}

.achievement-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.achievement-item.selected {
  border: 2px solid #a0a0a0;
  border-radius: 25px;
}

.achievement-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 15px;
  object-fit: contain;
}

.achievement-name {
  font-size: 0.8rem;
  color: #ddd;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  gap: 10px;
}

.friend-item {
  text-align: center;
}

.online-indicator {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #333;
  z-index: 3;
}

.friend-name {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Add styles for the status circle */
.status-circle {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.progress-bar {
  display: flex;
  height: 8px; /* Height as specified */
  width: 90%; /* 90% of the container's width */
  margin-left: auto; /* Center horizontally */
  margin-right: auto; /* Center horizontally */
  margin-top: 12px; /* Adjusted spacing */
  padding-left: 8px; /* Left padding */
  padding-right: 8px; /* Right padding */
  background: transparent; /* Make container invisible */
  border: none; /* Remove border */
  box-shadow: none; /* Remove shadow */
  overflow: hidden; /* Ensure segments respect rounded corners */
}

/* Иконка роли */
.profile-role-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #a955f7af;
  border-radius: 50%;
  padding: 5px;
  font-size: 20px;
  color: #fff;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Update progress segment styles for rounded corners and gradient */
.progress-segment {
  height: 100%;
  transition: width 0.3s ease;
}

/* Apply rounded corners only to first and last segments */
.progress-segment:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.progress-segment:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Ensure stats-container has enough padding to accommodate the progress bar */
.stats-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 10px; /* Add padding to prevent clipping */
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label-large {
  font-size: 1rem;
}

.stat-value-large {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
}

.watch-history {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 2fr));
  grid-gap: 8px;
  gap: 8px; /* Уменьшенный отступ между карточками */
  padding: 0;
}

.watch-card {
  background: rgba(60, 60, 60, 0.5);
  border-radius: 25px;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
  height: 140px;
  max-width: 320px;
}

.watch-card:hover {
  transform: translateY(-5px);
}

.watch-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  border-radius: 0 0 25px 25px;
}

.watch-title {
  font-weight: bold;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.watch-episode {
  color: #ddd;
  margin-bottom: 0;
  font-size: 0.85rem;
}

/* Скелетоны для watch-history */
.skeleton-watch-card {
  width: 100%;
  height: 140px;
  border-radius: 25px;
  background: rgba(60, 60, 60, 0.5);
}

.skeleton-grid.watch {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
  .watch-history {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px; /* Еще меньший отступ */
  }

  .watch-card {
    width: 100%;
    height: 140px;
  }

  .skeleton-grid.watch {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
  }

  .watch-title {
    font-size: 0.9rem;
  }

  .watch-episode {
    font-size: 0.8rem;
  }
}

@media (min-width: 769px) {
  .watch-history.initial {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 8px;
    gap: 8px;
    /* Устанавливаем max-height динамически через JS, если нужно */
  }
}

/* Для мобильных устройств изначально показываем 5 карточек */
@media (max-width: 768px) {
  .watch-history.initial {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-gap: 8px;
    gap: 8px;
  }
}

/* Стили для кнопки "Показать ещё" как карточки */
.watch-card.show-more-card {
  background: rgba(60, 60, 60, 0.7);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 140px; /* Высота соответствует обычной карточке */
}

.watch-card.show-more-card:hover {
  background: rgba(80, 80, 80, 0.7);
  transform: translateY(-5px);
}

.watch-card.show-more-card .show-more-text {
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.watch-card.show-more-card .material-icons-round {
  font-size: 22px;
  color: #a855f7;
}

/* Стили для skeleton карточек */
.skeleton-watch-card {
  width: 100%;
  height: 140px;
  border-radius: 25px;
  background: rgba(60, 60, 60, 0.5);
}

@media (max-width: 480px) {
  .watch-history {
    grid-template-columns: 1fr; /* Одна карточка в строке */
    gap: 8px;
  }

  .watch-card {
    width: 100%;
    max-width: 300px; /* Ограничение максимальной ширины для маленьких экранов */
    height: 160px;
    margin: 0 auto; /* Центрирование */
  }

  .skeleton-grid.watch {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .skeleton-watch-card {
    width: 100%;
    max-width: 300px;
    height: 160px;
    margin: 0 auto;
  }

  .watch-title {
    font-size: 0.85rem;
  }

  .watch-episode {
    font-size: 0.75rem;
  }
}
@media (max-width: 480px) {
  .watch-history {
    grid-template-columns: 1fr; /* Одна карточка в строке */
    gap: 10px;
  }

  .watch-card {
    width: 100%;
    max-width: 320px;
    height: 180px;
    margin: 0 auto; /* Центрирование карточки */
  }

  .skeleton-grid.watch {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skeleton-watch-card {
    width: 100%;
    max-width: 320px;
    height: 180px;
    margin: 0 auto;
  }

  .watch-title {
    font-size: 0.85rem;
  }

  .watch-episode {
    font-size: 0.75rem;
  }
}

.watch-time {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(60, 60, 60, 0.7);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.show-more {
  text-align: center;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.85rem;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9333ea 0%, #6b21a8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
  background: rgba(60, 60, 60, 0.7);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: white;
  border: 1px solid #555;
}

.btn-secondary:hover {
  background: rgba(80, 80, 80, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.comments-section {
  background: #202020d0;
  border-radius: 30px;
  margin-top: 40px;
  padding: 15px;
}

.comments-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comments-title .material-icons-round {
  font-size: 22px;
  color: #a855f7;
}

.comment-form2 {
  margin-bottom: 25px;
}

.comment-form2 textarea {
  width: 98%;
  padding: 12px;
  border-radius: 15px;
  background: #333;
  border: none;
  color: white;
  margin-bottom: 12px;
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
}

.comment-rules {
  margin: 8px 0 12px;
  color: #aaa;
  font-size: 0.85rem;
}

.comment-list {
  margin-top: 25px;
}

.comment {
  background: rgba(60, 60, 60, 0.5);
  border-radius: 15px;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  overflow: hidden;
}

.comment::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--comment-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0.3;
  filter: blur(5px);
}

.comment-user {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.comment-username {
  font-weight: bold;
  font-size: 0.85rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.comment-date {
  font-size: 0.75rem;
  color: #aaa;
  margin-left: auto;
}

.comment-delete {
  position: absolute;
  top: 58px;
  right: 12px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  color: #aaa;
  font-size: 18px;
}

.comment-delete:hover {
  opacity: 1;
  color: #ff5555;
}

.comment-text {
  line-height: 1.5;
  font-size: 0.85rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}

.modal-open {
  display: block;
}

.modal-closed {
  display: none;
}

.modal-content {
  background: #2a2a2a;
  max-width: 900px;
  margin: 50px auto;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.close-modal {
  background: none;
  border: none;
  color: #aaa;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: white;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  grid-gap: 15px;
  gap: 15px;
}

.profile-ambient-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#ambientCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
  filter: blur(100px) brightness(1);
  transform: scaleX(0.97) scaleY(1.4);
  transform-origin: center;
}

.ambient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Skeleton styles */
.skeleton {
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 10px;
}

.skeleton-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
}

.skeleton-avatar.small {
  width: 36px;
  height: 36px;
}

.skeleton-text {
  height: 20px;
  width: 70%;
  margin: 10px 0;
}

.skeleton-card {
  height: 200px;
  width: 100%;
}

.skeleton-item {
  height: 100px;
  width: 100px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  gap: 10px;
}

.skeleton-comment {
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ambientCanvas,
  .ambient-overlay {
    display: none;
  }
  .skeleton {
    animation: none;
    background: #333;
  }
}

@media (max-width: 768px) {
  .profile-header {
    gap: 15px;
    margin-top: -30px;
    margin-bottom: 15px;
    flex-direction: column;
    align-items: center;
  }
  .profile-container {
    padding-top: 140px;
    min-height: 100vh;
    position: relative;
  }
  .profile-background {
    height: 460px;
    border-radius: 0 0 40px 40px;
  }

  .profile-avatar {
    width: 150px;
    height: 150px;
    margin-top: -40px;
  }

  .profile-avatar-frame {
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
  }

  .profile-info {
    text-align: center;
    margin-bottom: 5px;
  }

  .friend-actions {
    justify-content: center;
    gap: 6px;
  }

  .friend-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    min-width: 48px;
    min-height: 48px;
    border-radius: 20px;
  }

  .friend-action-right:active {
    transform: scale(0.95);
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .achievements-grid,
  .friends-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  .profile-name {
    display: block;
    font-size: 1.8rem;
  }
  .skeleton-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

@media (max-width: 480px) {
  .profile-container {
    padding-top: 160px;
  }

  .profile-background {
    height: 460px;
    border-radius: 0 0 40px 40px;
  }

  .profile-content {
    padding: 15px;
  }
  .profile-info {
    text-align: center;
  }
  .profile-header {
    margin-top: -40px;
    margin-bottom: 10px;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
    margin-top: -50px;
  }

  .profile-avatar-frame {
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
  }

  .profile-name {
    display: block;
    font-size: 1.8rem;
  }

  .profile-emoji2 {
    width: 26px;
    height: 26px;
  }

  .profile-stats {
    gap: 10px;
  }

  .stat-item {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .friend-actions {
    flex-wrap: wrap;
    gap: 5px;
  }

  .friend-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    min-width: 44px;
    min-height: 44px;
  }

  .achievements-grid,
  .friends-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }

  .modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }

  .watch-history {
    grid-template-columns: 1fr;
  }

  .show-more {
    flex-direction: column;
    align-items: center;
  }
  .modal-content {
    background: #2a2a2a;
    max-width: 300px;
    margin: 50px 0px;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
  }
  .profile-grid {
    display: grid;
    margin-top: 30px;
    grid-gap: 20px;
    gap: 20px;
  }
  .skeleton-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
}

/* === СКЕЛЕТОНЫ (новые стили) === */
.skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 10px;
}

.skeleton-avatar-large {
  width: 180px;
  height: 180px;
  border-radius: 50%;
}

.skeleton-name {
  width: 200px;
  height: 28px;
  margin-top: 10px;
  border-radius: 6px;
}

.skeleton-role {
  width: 120px;
  height: 20px;
  border-radius: 20px;
  margin-top: 6px;
}

.skeleton-stat {
  width: 90px;
  height: 20px;
  border-radius: 6px;
}

.skeleton-description {
  width: 100%;
  height: 72px;
  margin-top: 12px;
  border-radius: 10px;
}

.skeleton-tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 15px;
}

.skeleton-comment {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(60, 60, 60, 0.4);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.skeleton-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.skeleton-comment-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-comment-line {
  height: 14px;
  border-radius: 6px;
  background: #333;
}

.skeleton-comment-line.short {
  width: 40%;
}

.skeleton-comment-line.long {
  width: 100%;
}

.skeleton-watch-card {
  width: 240px;
  height: 140px;
  border-radius: 30px;
}

.skeleton-grid {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.skeleton-grid.achievements {
  grid-template-columns: repeat(3, minmax(80px, 1fr));
}

.skeleton-grid.friends {
  grid-template-columns: repeat(3, minmax(80px, 1fr));
}

.skeleton-grid.watch {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* === СКЕЛЕТОНЫ (точно соответствующие структуре JSX) === */

.skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 10px;
}

.skeleton-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-name {
  width: 220px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.skeleton-role {
  width: 100px;
  height: 20px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.skeleton-stat {
  width: 90px;
  height: 20px;
  border-radius: 6px;
}

.skeleton-description {
  width: 100%;
  height: 72px;
  border-radius: 10px;
  margin-top: 10px;
}

.skeleton-card {
  height: 200px;
  border-radius: 25px;
}

.skeleton-achievement,
.skeleton-friend {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 15px;
}

.skeleton-comment {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(60, 60, 60, 0.4);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  margin-bottom: 12px;
}

.skeleton-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.skeleton-comment-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-comment-line {
  height: 14px;
  border-radius: 6px;
  background: #333;
}

.skeleton-comment-line.short {
  width: 40%;
}

.skeleton-comment-line.long {
  width: 100%;
}

.skeleton-watch-card {
  width: 240px;
  height: 140px;
  border-radius: 30px;
  background: rgba(60, 60, 60, 0.5);
}

.skeleton-grid {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.skeleton-grid.achievements {
  grid-template-columns: repeat(3, minmax(80px, 1fr));
}

.skeleton-grid.friends {
  grid-template-columns: repeat(3, minmax(80px, 1fr));
}

.skeleton-grid.watch {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.episode-card {
  background: #333;
  border-radius: 30px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  height: 160px;
  width: 100%;
  opacity: 0.8;
}

.episode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.episode-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.episode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  transition: opacity 0.3s ease;
}

.episode-number {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.479);
  padding: 5px 10px;
  border-radius: 20px;
}

.episode-title {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.479);
  padding: 5px 10px;
  border-radius: 20px;
}

.viewed-badge {
  position: absolute;
  top: 5px;
  right: 10px;
  background: rgba(0, 0, 0, 0.432);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

.viewed-badge .material-icons-round {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Медиа-запросы для мобильных устройств (до 768px) */
@media (max-width: 768px) {
  .episode-card {
    width: 100%;
    height: 120px;
    border-radius: 20px;
    opacity: 0.9;
  }

  .episode-image img {
    border-radius: 20px;
  }

  .episode-number,
  .episode-title {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 15px;
    bottom: 10px;
    left: 10px;
  }

  .viewed-badge {
    top: 4px;
    right: 8px;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 15px;
  }

  .viewed-badge .material-icons-round {
    font-size: 0.9rem;
  }
}

/* Медиа-запросы для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
  .episode-card {
    height: 100px;
    border-radius: 15px;
  }

  .episode-image img {
    border-radius: 15px;
  }

  .episode-number,
  .episode-title {
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 12px;
    bottom: 8px;
    left: 8px;
  }

  .viewed-badge {
    top: 3px;
    right: 6px;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 12px;
  }

  .viewed-badge .material-icons-round {
    font-size: 0.8rem;
  }
}

/* Медиа-запросы для планшетов (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .episode-card {
    width: 100%;
    height: 140px;
    border-radius: 25px;
  }

  .episode-image img {
    border-radius: 25px;
  }

  .episode-number,
  .episode-title {
    font-size: 0.9rem;
    padding: 4px 8px;
  }

  .viewed-badge {
    font-size: 0.75rem;
    padding: 3px 7px;
  }
}

.anime-page-hero {
  position: relative;
  border-radius: 0 0 60px 60px;
  width: 100%;
  padding-top: 85px;
  padding-bottom: 60px;
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.anime-page-review-item.spoiler .anime-page-review-text {
  filter: blur(2px);
  cursor: pointer;
}

.anime-page-review-item.spoiler.revealed .anime-page-review-text {
  filter: none;
}

.anime-page-episodes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.anime-page-spoiler-toggle {
  margin-bottom: 20px;
}

.anime-page-spoiler-toggle label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.anime-page-review-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.agerating {
  padding: 3px;
  background: #8d8d8d56;
  border-radius: 10px;
}

.anime-page-review-action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 35px;
  transition: all 0.2s;
}

.anime-page-review-action-btn:hover {
  background: #a855f7;
  color: white;
}

.anime-page-like-btn:hover {
  background: #535353c0;
}

.anime-page-dislike-btn:hover {
  background: #535353c0;
}

.anime-page-edit-btn:hover {
  background: #575757;
}

.anime-page-delete-btn:hover {
  background: #505050;
}

.anime-page-review-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.anime-page-review-rating-star {
  color: #ffffff;
  font-size: 1.1rem;
}

.anime-page-review-rating-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.anime-page-review-user {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
  color: white;
  text-decoration: none;
}

.profile-emoji {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-left: 5px;
}

.anime-page-review-avatar-container {
  position: relative;
  width: 55px;
  height: 55px;
}

.anime-page-review-avatar-frame {
  position: absolute;
  top: -10px;
  left: -12px;
  right: -12px;
  bottom: -8px;
  z-index: 2;
  pointer-events: none;
}

.anime-page-review-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.anime-page-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(75px) brightness(0.7);
  z-index: -1;
  border-radius: 0 0 35px 35px;
  background-size: cover;
  background-position: center;
}

.anime-page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(34, 34, 34, 0.9), transparent);
  z-index: 1;
}

.anime-page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 5%;
  display: flex;
  gap: 30px;
}

.anime-page-anime-poster {
  margin-top: 30px;
  flex: 0 0 300px;
  height: 450px;
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

.anime-page-anime-poster img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

.anime-page-badges {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 10;
}

.anime-page-4k-badge {
  position: absolute;
  top: 0;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.anime-page-anime-poster:hover .anime-page-4k-badge {
  opacity: 0;
}

.anime-page-anime-info {
  flex: 1 1;
}

.anime-page-anime-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
}

.anime-page-anime-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #aaa;
  font-size: 0.9rem;
}

.anime-page-anime-meta span {
  display: flex;
  align-items: center;
}

.anime-page-anime-meta .material-icons-round {
  font-size: 1rem;
  margin-right: 5px;
}

.anime-page-anime-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.anime-page-rating-value {
  font-weight: bold;
  color: rgb(255, 255, 255);
}

.anime-page-rating-count {
  color: #aaa;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .anime-page-rating-count {
    font-size: 0.7rem;
  }
  .anime-page-anime-rating {
    gap: 5px;
  }
}

.anime-page-anime-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}

.anime-page-anime-tag {
  background: rgba(0, 0, 0, 0.267);
  color: #ffffff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.anime-page-anime-description {
  margin-bottom: 30px;
  line-height: 1.2;
  max-width: 800px;
}

.anime-page-anime-actions {
  display: flex;
  gap: 4px;
  margin-bottom: 30px;
}

.anime-page-anime-action-button {
  border-radius: 30px 13px 13px 30px;
  padding-left: 20px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  height: 42px;
  width: 130px;
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 2px;
}

.anime-page-watch-button {
  background: #ffffff;
  color: rgb(0, 0, 0);
  font-weight: 700;
}

.anime-page-watch-button:hover {
  transform: scale(1.05);
}

.anime-page-anime-plan-button {
  background: rgba(255, 255, 255, 0.2);
  color: rgb(255, 255, 255);
  padding: 8px 15px;
  height: 42px;
  border: none;
  border-radius: 13px 30px 30px 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.anime-page-next-episode-badge {
  position: absolute;
  top: 0;
  left: 10px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 10px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.anime-page-anime-plan-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

.anime-page-seasons-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 20px 0;
  position: relative;
  z-index: 2;
}

.anime-page-season-tab {
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  font-weight: 700;
}

.anime-page-season-tab.active {
  background: #ffffff;
  color: #000000;
}

.anime-page-season-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2);
}

.anime-page-section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 123;
}

.anime-page-episodes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 2fr));
  grid-gap: 10px;
  gap: 10px;
}

.anime-page-review-section {
  margin: 30px 5% 50px;
  display: flex;
  gap: 30px;
}

.anime-page-reviews-container {
  flex: 0 0 28%;
  background: rgba(40, 40, 40, 0.7);
  border-radius: 20px;
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  height: -webkit-fit-content;
  height: fit-content;
}

@media (max-width: 500px) {
  .anime-page-reviews-container {
    height: 300px;
  }
}

.anime-page-episodes-container {
  flex: 1 1;
  background: rgba(40, 40, 40, 0.7);
  border-radius: 20px;
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.anime-page-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.anime-page-reviews-title {
  font-size: 1.5rem;
  color: white;
}

.anime-page-add-review-btn {
  background: #525252b9;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 25px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rew-but {
  font-weight: 700;
}

.rew-but:hover {
  font-weight: 600;
}

.anime-page-add-review-btn:hover {
  transform: scale(1.02);
}

.anime-page-reviews-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: transparent;
}

.anime-page-reviews-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.anime-page-review-item {
  background: rgba(60, 60, 60, 0.2);
  border-radius: 30px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.anime-page-review-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none center/cover;
  background: var(--background-url, none) center/cover;
  z-index: -1;
  opacity: 0.3;
}

.anime-page-review-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.anime-page-review-text {
  line-height: 1.2;
  color: white;
}

.anime-page-review-item.spoiler .anime-page-review-text {
  filter: blur(8px);
  transition: filter 0.3s ease;
}

.anime-page-review-item.spoiler.revealed .anime-page-review-text {
  filter: none;
}

.anime-page-review-action-btn {
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.anime-page-review-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.anime-page-load-more-reviews {
  background: rgba(168, 85, 247, 0.2);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  margin-top: 15px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  transition: background 0.2s;
}

.anime-page-load-more-reviews:hover {
  background: rgba(168, 85, 247, 0.4);
}

.anime-page-review-modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.anime-page-review-modal-content {
  background: #242424;
  border-radius: 30px;
  width: 500px;
  max-width: 90%;
  padding: 25px;
  position: relative;
}

.anime-page-close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #e4e4e4;
  font-size: 1.5rem;
  cursor: pointer;
}

.anime-page-modal-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: white;
}

.anime-page-modal-title2 {
  font-size: 0.8rem;
  margin-bottom: 20px;
  text-align: center;
  color: #aaa;
}

.anime-page-rating-input {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.anime-page-star-rating {
  font-size: 2rem;
  color: #555;
  cursor: pointer;
}

.anime-page-star {
  margin: 0 5px;
}

.anime-page-star.active {
  color: #ffffff;
}

.anime-page-review-textarea {
  width: 93%;
  height: 150px;
  background: #333333;
  border: none;
  border-radius: 20px;
  padding: 15px;
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
  resize: none;
}

.anime-page-submit-review {
  background: #a855f7;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 12px 25px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.anime-page-submit-review:hover {
  background: #9333ea;
}

.anime-page-show-more-btn {
  background: none;
  border: none;
  color: #a855f7;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.anime-page-show-more-btn:hover {
  color: #9333ea;
}

@media (max-width: 768px) {
  .anime-page-hero {
    padding: 60px 0 30px;
  }

  .anime-page-hero-content {
    flex-direction: column;
    padding: 0 15px;
    gap: 20px;
  }

  .anime-page-anime-poster {
    width: 200px;
    height: 300px;
    margin: 0 auto;
  }

  .anime-page-anime-poster img {
    height: 300px;
  }

  .anime-page-anime-title {
    font-size: 1.2rem;
    text-align: center;
  }

  .anime-page-anime-meta {
    justify-content: center;
    font-size: 0.8rem;
    gap: 10px;
  }

  .anime-page-anime-description p {
    font-size: 0.8rem;
    line-height: 1.4;
    position: relative;
    text-align: center;
  }

  .anime-page-anime-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .anime-page-anime-action-button {
    width: 25%;
    justify-content: center;
  }

  .anime-page-anime-plan-button {
    width: 15%;
    border-radius: 13px 30px 30px 13px;
  }

  .anime-page-seasons-tabs {
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .anime-page-season-tab {
    padding: 8px 15px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .anime-page-episodes-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 2fr));
    gap: 10px;
    justify-items: center;
    width: 100%;
  }

  .anime-page-review-section {
    flex-direction: column;
    margin: 20px 15px 40px;
    gap: 20px;
  }

  .anime-page-reviews-container {
    height: 200px;
  }

  .anime-page-episodes-container {
    width: 100%;
    padding: 15px;
  }

  .anime-page-reviews-title {
    font-size: 1.2rem;
  }

  .anime-page-add-review-btn {
    padding: 6px 15px;
    font-size: 0.9rem;
  }

  .anime-page-review-item {
    padding: 12px;
  }

  .anime-page-review-user {
    font-size: 0.9rem;
  }

  .anime-page-review-text {
    font-size: 0.85rem;
  }

  .anime-page-modal-title {
    font-size: 1.2rem;
  }

  .anime-page-star-rating {
    font-size: 1.5rem;
  }

  .anime-page-review-textarea {
    height: 120px;
    font-size: 0.9rem;
  }

  .anime-page-submit-review {
    padding: 10px 20px;
  }

  .profile-emoji {
    width: 14px;
    height: 14px;
  }

  .anime-page-review-action-btn {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .anime-page-show-more-btn {
    margin-top: 10px;
  }
}

.anime-page-rating {
  font-size: 1.8rem;
}

@media (max-width: 760px) {
  .anime-page-rating {
    font-size: 1.4rem;
  }
}

@media (max-width: 769px) and (max-width: 1024px) {
  .anime-page-hero-content {
    flex-direction: column;
  }

  .anime-page-anime-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
  }

  .anime-page-manga-button,
  .anime-page-status-button {
    flex: 0 0 auto;
    min-width: 80px;
    margin: 0;
    white-space: nowrap;
  }
  .anime-page-watch-button {
    flex: 0 0 auto;
    min-width: 110px;
    margin: 0;
    white-space: nowrap;
    padding-left: 5px;
    padding-right: 5px;
  }

  .anime-page-anime-plan-button {
    flex: 0 0;
    max-width: 50px;
    margin: 0;
  }

  .anime-page-anime-info {
    width: 100%;
    max-width: 700px;
  }

  .anime-page-review-section {
    flex-direction: column;
  }

  .anime-page-reviews-container {
    width: 87%;
  }

  .anime-page-episodes-container {
    width: 90%;
  }
}

.anime-page-status-dropdown {
  position: relative;
  display: inline-block;
}

.anime-page-status-button {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 25px;
  min-width: 165px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.anime-page-status-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.anime-page-status-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  border-radius: 18px;
  padding: 2px 0;
  min-width: 165px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.089);
  z-index: 1100;
  margin-top: 5px;
}

.anime-page-status-menu.visible {
  display: block;
  overflow: visible;
}

.anime-page-status-option {
  padding: 9px 14px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  z-index: 1000;
}

.anime-page-status-option:hover {
  transform: scale(1.02);
}

.anime-page-status-option .material-icons-round {
  font-size: 1.2rem;
}

.anime-page-manga-button {
  padding: 12px 20px;
  background: rgba(169, 85, 247, 0);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 150px;
}

.anime-page-manga-button:hover {
  background: rgba(75, 75, 75, 0.4);
  transform: translateY(-2px);
}

.anime-page-age-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2100;
  display: flex;
  justify-content: center;
  align-items: center;
}

.anime-page-age-modal-content {
  background: #242424;
  border-radius: 30px;
  width: 400px;
  max-width: 90%;
  padding: 25px;
  text-align: center;
  position: relative;
}

.anime-page-modal-text {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.anime-page-age-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.anime-page-age-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 0.9rem;
}

.anime-page-age-confirm-btn {
  background: #8d8d8dc7;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.anime-page-age-confirm-btn:disabled {
  background: #555;
  cursor: not-allowed;
}

.anime-page-age-confirm-btn:hover:not(:disabled) {
  background: #9333ea;
}

.anime-page-viewed-badge {
  position: absolute;
  top: 5px;
  right: 10px;
  background: rgba(0, 0, 0, 0.432);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

.anime-page-viewed-badge .material-icons-round {
  font-size: 1rem;
  color: #f0f0f0;
}

@media (max-width: 898px) {
  .anime-page-episodes-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 2fr));
    justify-items: center;
  }

  .episodes-container {
    flex: none;
    width: 92%;
    border-radius: 15px;
    padding: 15px;
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
  }

  .episode-card {
    max-width: 240px;
    height: 120px;
    border-radius: 20px;
    opacity: 0.9;
  }
  .episode-image img {
    border-radius: 20px;
  }

  .episode-number,
  .episode-title {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 15px;
    bottom: 10px;
    left: 10px;
  }
}
@media (max-width: 480px) {
  .anime-page-episodes-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .episode-card {
    height: 100px;
    border-radius: 15px;
  }

  .episode-image img {
    border-radius: 15px;
  }

  .episode-number,
  .episode-title {
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 12px;
    bottom: 8px;
    left: 8px;
  }

  .anime-page-anime-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: flex-start;
    align-items: center;
  }

  .anime-page-status-button {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    max-width: 140px;
    min-width: 140px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .anime-page-status-button:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .anime-page-status-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    border-radius: 18px;
    padding: 2px 0;
    max-width: 140px;
    min-width: 140px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.089);
    z-index: 1100;
    margin-top: 5px;
  }

  .anime-page-status-menu.visible {
    display: block;
    overflow: visible;
  }

  .anime-page-status-option {
    padding: 9px 14px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    z-index: 1000;
  }

  .anime-page-status-option:hover {
    transform: scale(1.02);
  }

  .anime-page-status-option .material-icons-round {
    font-size: 1.2rem;
  }
  .anime-page-anime-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .anime-page-anime-tags::-webkit-scrollbar {
    display: none;
  }
}

/* Skeleton Animation */
@keyframes sc2an_skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.sc2an_skeleton-bg,
.sc2an_skeleton-poster,
.sc2an_skeleton-meta,
.sc2an_skeleton-rating-title,
.sc2an_skeleton-rating-value,
.sc2an_skeleton-tag,
.sc2an_skeleton-action-button,
.sc2an_skeleton-description,
.sc2an_skeleton-show-more,
.sc2an_skeleton-reviews-title,
.sc2an_skeleton-add-review-btn,
.sc2an_skeleton-section-title,
.sc2an_skeleton-search,
.sc2an_skeleton-season-tab,
.sc2an_skeleton-episode-card,
.sc2an_skeleton-episode-poster,
.sc2an_skeleton-episode-title,
.sc2an_skeleton-avatar,
.sc2an_skeleton-review-user,
.sc2an_skeleton-rating-star,
.sc2an_skeleton-rating-value,
.sc2an_skeleton-review-text {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: sc2an_skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

/* Hero Section */
.sc2an_anime-page-hero {
  position: relative;
  border-radius: 0 0 60px 60px;
  width: 100%;
  padding-top: 85px;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: rgba(34, 34, 34, 0.9);
}

.sc2an_anime-page-hero-background.sc2an_skeleton-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 0 0 60px 60px;
  filter: blur(75px) brightness(0.5);
}

.sc2an_anime-page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(34, 34, 34, 0.9), transparent);
  z-index: 1;
}

.sc2an_anime-page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 5%;
  display: flex;
  gap: 30px;
}

.sc2an_anime-page-anime-poster {
  margin-top: 30px;
  flex: 0 0 300px;
  height: 450px;
  border-radius: 35px;
  overflow: hidden;
  position: relative;
}

.sc2an_skeleton-poster {
  width: 100%;
  height: 450px;
  border-radius: 35px;
}

.sc2an_anime-page-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.sc2an_skeleton-badge {
  width: 60px;
  height: 24px;
}

.sc2an_anime-page-4k-badge {
  display: none;
}

.sc2an_anime-page-next-episode-badge {
  left: 10px;
}

.sc2an_anime-page-anime-info {
  flex: 1 1;
  padding-top: 20px;
}

.sc2an_anime-page-anime-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  color: #aaa;
}

.sc2an_skeleton-meta {
  width: 80px;
  height: 20px;
}

.sc2an_anime-page-anime-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.sc2an_skeleton-rating-title {
  width: 150px;
  height: 28px;
}

.sc2an_skeleton-rating-value {
  width: 40px;
  height: 28px;
}

.sc2an_anime-page-anime-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 15px;
}

.sc2an_skeleton-tag {
  width: 70px;
  height: 20px;
  border-radius: 20px;
}

.sc2an_anime-page-anime-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.sc2an_skeleton-action-button {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc2an_anime-page-watch-button {
  width: 120px;
  border-radius: 30px 13px 13px 30px;
}

.sc2an_anime-page-notification-button {
  width: 50px;
  border-radius: 13px 30px 30px 13px;
}

.sc2an_anime-page-status-button {
  width: 150px;
  border-radius: 25px;
}

.sc2an_anime-page-anime-description {
  margin-bottom: 30px;
}

.sc2an_skeleton-description {
  width: 100%;
  height: 16px;
  margin-bottom: 8px;
}

.sc2an_skeleton-description.sc2an_short {
  width: 50%;
}

.sc2an_skeleton-show-more {
  width: 80px;
  height: 20px;
  margin-top: 5px;
}

/* Review Section */
.sc2an_anime-page-review-section {
  margin: 30px 5% 50px;
  display: flex;
  gap: 30px;
}

.sc2an_anime-page-reviews-container {
  flex: 0 0 28%;
  background: rgba(40, 40, 40, 0.7);
  border-radius: 20px;
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  height: -webkit-fit-content;
  height: fit-content;
}

.sc2an_anime-page-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sc2an_skeleton-reviews-title {
  width: 100px;
  height: 24px;
}

.sc2an_skeleton-add-review-btn {
  width: 120px;
  height: 36px;
  border-radius: 20px;
}

.sc2an_anime-page-reviews-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

.sc2an_anime-page-review-item {
  background: rgba(60, 60, 60, 0.2);
  border-radius: 30px;
  padding: 15px;
  margin-bottom: 15px;
}

.sc2an_anime-page-review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sc2an_skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.sc2an_skeleton-review-user {
  width: 80px;
  height: 18px;
}

.sc2an_anime-page-review-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sc2an_skeleton-rating-star {
  width: 18px;
  height: 18px;
}

.sc2an_skeleton-rating-value {
  width: 25px;
  height: 18px;
}

.sc2an_skeleton-review-text {
  width: 100%;
  height: 14px;
  margin-bottom: 5px;
}

.sc2an_skeleton-review-text.sc2an_short {
  width: 70%;
}

/* Episodes Section */
.sc2an_anime-page-episodes-container {
  flex: 1 1;
  background: rgba(40, 40, 40, 0.7);
  border-radius: 20px;
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.sc2an_anime-page-episodes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sc2an_skeleton-section-title {
  width: 100px;
  height: 24px;
}

.sc2an_skeleton-search {
  width: 130px;
  height: 36px;
  border-radius: 20px;
}

.sc2an_anime-page-seasons-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.sc2an_skeleton-season-tab {
  width: 80px;
  height: 36px;
  border-radius: 20px;
}

.sc2an_anime-page-episodes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.sc2an_skeleton-episode-card {
  background: rgba(60, 60, 60, 0.2);
  border-radius: 15px;
  padding: 10px;
}

.sc2an_skeleton-episode-poster {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.sc2an_skeleton-episode-title {
  width: 70%;
  height: 18px;
  margin-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .sc2an_anime-page-hero {
    padding: 60px 0 30px;
    height: 400px;
  }

  .sc2an_anime-page-hero-content {
    flex-direction: column;
    padding: 0 15px;
    gap: 20px;
  }

  .sc2an_anime-page-anime-poster {
    width: 200px;
    height: 300px;
    margin: 0 auto;
  }

  .sc2an_skeleton-poster {
    height: 300px;
  }

  .sc2an_anime-page-anime-meta {
    justify-content: center;
    gap: 10px;
  }

  .sc2an_skeleton-meta {
    width: 60px;
    height: 16px;
  }

  .sc2an_anime-page-anime-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .sc2an_anime-page-watch-button {
    width: 100px;
  }

  .sc2an_anime-page-notification-button {
    width: 40px;
  }

  .sc2an_anime-page-status-button {
    width: 100px;
  }

  .sc2an_skeleton-description {
    height: 14px;
  }

  .sc2an_anime-page-review-section {
    flex-direction: column;
    margin: 20px 15px 40px;
    gap: 20px;
  }

  .sc2an_anime-page-reviews-container,
  .sc2an_anime-page-episodes-container {
    width: 100%;
    padding: 15px;
  }

  .sc2an_skeleton-season-tab {
    width: 70px;
    height: 32px;
  }

  .sc2an_anime-page-episodes-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Основной контент */
.leaderboard-container {
  padding-top: 50px;
  min-height: 100vh;
  position: relative;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    rgba(133, 98, 173, 0.5),
    rgb(70, 45, 100, 0.5),
    rgb(88, 88, 88, 0.5),
    rgb(92, 167, 177, 0.5)
  );
}

.leaderboard-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  position: relative;
  z-index: 2;
  color: inherit;
  text-decoration: none;
}

/* Заголовок */
.leaderboard-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.leaderboard-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, transparent);
  border-radius: 3px;
  transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.leaderboard-title:hover::after {
  background: linear-gradient(90deg, #a855f7, #7e22ce, transparent);
}

.leaderboard-subtitle {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #ddd;
  transition: all 0.3s ease;
  color: inherit;
  text-decoration: none;
}

.leaderboard-subtitle:hover {
  color: #a855f7;
}

/* Табы */
.leaderboard-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.tab-button {
  padding: 8px 20px;
  border-radius: 20px;
  background: rgba(60, 60, 60, 0.7);
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.tab-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: all 0.5s ease;
}

.tab-button:hover::before {
  left: 100%;
}

.tab-button.selected {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.tab-button:hover:not(.selected) {
  background: rgba(80, 80, 80, 0.7);
}

.tab-indicator {
  position: absolute;
  bottom: -8px;
  left: 0;
  height: 3px;
  background: #a855f7;
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  color: inherit;
  text-decoration: none;
}

/* Список лидеров */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}

.leader-card {
  background: rgba(40, 40, 40, 0.7);
  border-radius: 25px;
  padding: 20px;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  opacity: 0;
  color: inherit;
  text-decoration: none;
}

.leader-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.leader-card:hover::before {
  opacity: 1;
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(195, 135, 252, 0.158);
  border-color: rgba(168, 85, 247, 0.3);
}

.leader-card.top {
  background: rgba(209, 196, 221, 0.384);
}

.leader-card.top:hover {
  box-shadow: 0 8px 25px rgba(204, 150, 255, 0.199);
}

.leader-rank {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #a855f7;
  transition: all 0.3s ease;
}

.leader-card:hover .leader-rank {
  transform: scale(1.2);
  color: #b270ec;
}

.leader-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 15px;
  position: relative;
  transition: all 0.3s ease;
}

.leader-card:hover .leader-avatar {
  transform: scale(1.05);
}

.leader-avatar-frame {
  position: absolute;
  top: -16px;
  left: -16px;
  right: -16px;
  bottom: -16px;
  z-index: 2;
  pointer-events: none;
  transition: all 0.3s ease;
}

.leader-card:hover .leader-avatar-frame {
  transform: scale(1.05);
}

.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.leader-card:hover .leader-avatar img {
  filter: brightness(1.1);
}

.leader-name {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

.leader-card:hover .leader-name {
  color: #a855f7;
}

.leader-hours {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.leader-card:hover .leader-hours {
  color: #ddd;
}

.leader-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: -1;
  filter: brightness(0.5);
  transition: all 0.5s ease;
}

.leader-card:hover .leader-background {
  opacity: 0.3;
  filter: brightness(0.7);
}

/* Индикатор онлайн */
.online-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #333;
  z-index: 3;
  transition: all 0.3s ease;
}

.leader-card:hover .online-indicator {
  transform: scale(1.3);
  box-shadow: 0 0 10px #10b981;
}

/* Подсказка внизу */
.leaderboard-note {
  text-align: center;
  margin-top: 30px;
  color: #aaa;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.leaderboard-note:hover {
  color: #a855f7;
  transform: scale(1.02);
}

/* Стили для загрузки и ошибок */
.leaderboard-loading {
  text-align: center;
  color: #ddd;
  font-size: 1.2rem;
  margin: 30px 0;
}

.leaderboard-error {
  text-align: center;
  color: #ff5555;
  font-size: 1.2rem;
  margin: 30px 0;
  background: rgba(40, 40, 40, 0.7);
  padding: 15px;
  border-radius: 10px;
}

.leaderboard-empty {
  text-align: center;
  color: #aaa;
  font-size: 1.2rem;
  margin: 30px 0;
}

/* Анимации */
@keyframes fadeInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .leaders-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .leader-avatar {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .leaderboard-tabs {
    flex-direction: column;
  }

  .leaderboard-title {
    font-size: 2rem;
  }

  .leaderboard-subtitle {
    font-size: 1rem;
  }

  .leaders-grid {
    grid-template-columns: 1fr;
  }
}

/* Стили для скелетонов */
.skeleton {
  background: rgba(40, 40, 40, 0.7);
  border-radius: 25px;
  padding: 20px;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skeleton-element {
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.skeleton-text {
  height: 20px;
  margin: 0 auto 10px;
  width: 60%;
}

.skeleton-text.short {
  width: 40%;
}

.skeleton .leader-rank {
  width: 30px;
  height: 30px;
  top: 15px;
  left: 15px;
}

/* Анимация для скелетона */
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.collection-page {
  padding: 100px 5% 0 5%;
  min-height: 100vh;
  color: white;
}

.page-title {
  font-size: 1.8rem;
  color: white;
  font-weight: 600;
  padding: 0 20px;
  margin: 0 0 20px 0;
}

.collection-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 10_minutes;
  scrollbar-width: none;
}

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

.collection-tab {
  padding: 10px 20px;
  background: #333;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.collection-tab.active {
  background: #a855f7;
}

.collection-tab:not(.active):hover {
  background: #444;
}

.collection-tab span {
  font-size: 1.1rem;
}

.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  padding: 15px 0;
}

.empty-collection {
  text-align: center;
  padding: 50px 0;
  color: #666;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.empty-collection span {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
  color: #555;
}

.error,
.loading {
  text-align: center;
  color: #666;
  padding: 10px 0;
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .collection-page {
    padding: 80px 3% 0 3%;
  }

  .page-title {
    font-size: 1.5rem;
    padding: 0 15px;
  }

  .collection-tabs {
    gap: 6px;
    margin-bottom: 15px;
  }

  .collection-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .collection-tab span {
    font-size: 1rem;
  }

  .anime-grid {
    grid-template-columns: repeat(2, 1fr); /* Две карточки в ряд */
    gap: 15px;
    padding: 10px 0;
  }

  .empty-collection,
  .error,
  .loading {
    font-size: 0.9rem;
    padding: 8px 0;
  }

  .empty-collection span {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }
}

@media (max-width: 400px) {
  .collection-page {
    padding: 70px 2% 0 2%;
  }

  .page-title {
    font-size: 1.3rem;
  }

  .collection-tabs {
    gap: 4px;
    padding-bottom: 8px;
  }

  .collection-tab {
    padding: 6px 12px;
    font-size: 0.75rem;
    gap: 6px;
  }

  .collection-tab span {
    font-size: 0.9rem;
  }

  .anime-grid {
    gap: 10px;
  }

  .empty-collection {
    padding: 40px 0;
    font-size: 1rem;
  }

  .empty-collection span {
    font-size: 2rem;
  }
}

.player-ambient-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

#ambientCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  filter: blur(50px) brightness(1.2);
  transform: scaleX(1) scaleY(1.5);
  transform-origin: center;
}

/* Existing styles remain unchanged, only adding or modifying styles related to the preview feature */

/* Add to existing .timeline-thumb styles */
.timeline-thumb.dragging {
  transform: scale(1.4);
  background: #ba99ff;
  box-shadow: 0 0 8px rgba(186, 153, 255, 0.7);
  cursor: grabbing;
}

/* Ensure smooth progress bar updates during dragging */
.timeline-progress {
  transition: width 0.05s linear;
}

/* Enhance hover state for clarity */
.timeline-container:hover .timeline-thumb:not(.dragging) {
  transform: scale(1.2);
  background: #ffffff;
}

/* Prevent text selection during dragging */
.timeline-container {
  -webkit-user-select: none;
          user-select: none;
}

.timeline-tooltip {
  position: absolute;
  bottom: 100%;
  left: calc(var(--tooltip-x) - 0px);
  left: calc(var(--tooltip-x) - var(--timeline-offset, 0px));
  transform: translate(-50%, -10px);
  background: rgba(50, 50, 50, 0.9);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -14px);
}

.preview-image {
  width: 160px;
  height: 90px;
  border-radius: 4px;
  margin-bottom: 4px;
  transition: filter 0.2s ease;
}

.tooltip-time {
  color: white;
  font-size: 12px;
  font-family: Arial, sans-serif;
}

/* Media queries for mobile devices (up to 768px) */
@media (max-width: 768px) {
  .timeline-tooltip {
    padding: 7px;
    border-radius: 7px;
  }

  .preview-image {
    width: 140px;
    height: 78.75px;
  }

  .tooltip-time {
    font-size: 11px;
  }
}

/* Media queries for very small screens (up to 480px) */
@media (max-width: 480px) {
  .preview-image {
    width: 120px;
    height: 67.5px;
  }

  .tooltip-time {
    font-size: 10px;
  }
}

.ambient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.inactivity-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 46, 46, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 46, 46, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.warning-modal-content {
  background: linear-gradient(135deg, #333, #222);
  padding: 20px;
  border-radius: 35px;
  text-align: center;
  color: #fff;
  max-width: 400px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.warning-modal-content h2 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
}

.warning-modal-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.4;
}

.warning-modal-content button {
  background: #9370db;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 35px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.warning-modal-content button:hover {
  background: #ba99ff;
}

.inactivity-modal-content {
  background: #363636;
  padding: 20px;
  border-radius: 35px;
  text-align: center;
  color: #fff;
}

.inactivity-modal-content h2 {
  margin-bottom: 10px;
}

.inactivity-modal-content p {
  margin-bottom: 20px;
}

.inactivity-modal-content button {
  background: #888888;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 35px;
  cursor: pointer;
}

.inactivity-modal-content button:hover {
  background: #4e4e4e;
}

.video-player {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 85vh;
  display: block;
  background: #00000036;
  object-fit: contain;
  transition: height 0.3s, border-radius 0.3s;
}

.video-player.stretch {
  object-fit: fill;
}

.preview-video {
  display: none;
}

.pause-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  transition: height 0.3s;
}

.pause-icon {
  font-size: 64px;
  color: white;
  opacity: 0.7;
}

.player-controls {
  position: absolute;
  bottom: 12px;
  left: 20px;
  right: 20px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s;
}

.player-controls.visible {
  opacity: 1;
}

.player-controls:not(.visible) {
  opacity: 0;
  pointer-events: none;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  height: 10px;
}

.timeline-container {
  flex: 1 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: width 0.3s ease;
}

.timeline-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(200, 200, 200, 0.5);
  border-radius: 4px;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #9370db, #ba99ff);
  border-radius: 4px;
  transition: width 0.1s linear;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.timeline-thumb {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-right: -6px;
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 5;
}

.timeline-container:hover .timeline-thumb {
  transform: scale(1.2);
}

.timeline-container:active .timeline-progress {
  transition: none;
}

.timeline-marker {
  position: absolute;
  top: 0;
  height: 100%;
  opacity: 0.8;
  border-radius: 2px;
  transition: left 0.2s, width 0.2s;
}

.timeline-marker.opening {
  background: linear-gradient(90deg, #757575, #979797);
  box-shadow: 0 0 4px rgba(124, 124, 124, 0.5);
  border-radius: 20px;
}

.timeline-marker.ending {
  background: linear-gradient(90deg, #777777, #979797);
  box-shadow: 0 0 4px rgba(124, 124, 124, 0.5);
  border-radius: 20px;
}

.timeline-marker.episode-end {
  background: #ffffff;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
  width: 3px;
}

.time-display {
  color: white;
  font-size: 14px;
  font-family: Arial, sans-serif;
  min-width: 50px;
  text-align: center;
}

.control-button,
.episode-button {
  background: none;
  color: white;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.control-button:hover,
.episode-button:hover {
  opacity: 0.7;
}

.volume-control {
  position: relative;
  display: flex;
  align-items: center;
}

.volume-slider-input-custom {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  position: relative;
}

.volume-slider-input-custom::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.volume-slider-input-custom::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.volume-slider-input-custom::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  margin-top: -3.5px;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.volume-slider-input-custom::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.settings-menu {
  position: absolute;
  bottom: 50px;
  right: 0;
  background: rgb(37, 37, 37);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 0;
  color: white;
  font-family: Arial, sans-serif;
  width: 220px;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.settings-menu button {
  padding: 12px 20px;
  width: 100%;
  text-align: left;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  border-radius: 0;
}

.settings-menu button:hover {
  background: rgb(59, 59, 59);
  color: #ffffff;
  border-radius: 35px;
}

.settings-menu button:disabled {
  color: rgba(194, 194, 194, 0.253);
  cursor: not-allowed;
}

.marker-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px;
}

.marker-inputs label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.marker-inputs input {
  width: 60px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  border-radius: 4px;
}

.record-button {
  background: #9370db;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin: 5px 0;
}

.record-button:hover {
  background: #ba99ff;
}

.save-button {
  background: #575757;
  color: white;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 10px;
}

.save-button:hover {
  background: #707070;
}

.toggle-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 14px;
}

.switch {
  width: 48px;
  height: 24px;
  background: #555;
  border-radius: 24px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch.on {
  background: #ffffff;
}

.knob {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch.on .knob {
  transform: translateX(24px);
}

.skip-prompt {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #333, #222);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-radius: 45px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideIn 0.3s ease-out;
}

.skip-text {
  font-weight: 500;
}

.skip-timer {
  color: #ba99ff;
  font-weight: 700;
}

.cancel-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #ba99ff;
  color: #ba99ff;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.cancel-button:hover {
  background: #ba99ff;
  color: #fff;
}

@keyframes slideIn {
  from {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

:fullscreen .player-ambient-wrapper {
  border-radius: 0;
}

:fullscreen .video-player,
:fullscreen .pause-overlay {
  height: 100vh;
  border-radius: 0;
  overflow: visible !important;
}

:fullscreen #ambientCanvas {
  border-radius: 0;
  overflow: visible !important;
}

.timeline-tooltip {
  position: absolute;
  bottom: 100%;
  left: calc(var(--tooltip-x) - 0px);
  left: calc(var(--tooltip-x) - var(--timeline-offset, 0px));
  transform: translate(-50%, -10px);
  background: rgba(50, 50, 50, 0.9);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -14px);
}

.preview-image {
  width: 160px;
  height: 90px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.tooltip-time {
  color: white;
  font-size: 12px;
  font-family: Arial, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  #ambientCanvas,
  .ambient-overlay {
    display: none;
  }
}

.volume-control:hover ~ .controls-row .timeline-container {
  width: calc(100% - 60px);
  margin-left: auto;
}

/* Медиа-запросы для мобильных устройств (до 768px) */
@media (max-width: 768px) {
  .player-ambient-wrapper {
    border-radius: 0 0 30px 30px;
  }

  #ambientCanvas {
    opacity: 0.45;
    filter: blur(40px) brightness(1.15);
    transform: scaleX(1) scaleY(1.4);
  }

  .ambient-overlay {
    width: 100%;
    background: radial-gradient(
      circle at center,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 100%
    );
  }

  .video-player,
  .pause-overlay {
    height: 60vh;
    border-radius: 0 0 30px 30px;
  }

  .player-controls {
    bottom: 15px;
    left: 15px;
    right: 15px;
    gap: 8px;
  }

  .controls-row {
    gap: 4px;
  }

  .timeline-container {
    height: 7px;
    border-radius: 3px;
  }

  .timeline-thumb {
    width: 11px;
    height: 11px;
    margin-right: -5.5px;
  }

  .timeline-container:hover .timeline-thumb {
    transform: scale(1.15);
  }

  .time-display {
    font-size: 13px;
    min-width: 45px;
  }

  .control-button,
  .episode-button {
    font-size: 19px;
    padding: 4px;
  }

  .volume-slider-input-custom {
    height: 3px;
  }

  .volume-slider-input-custom::-webkit-slider-thumb {
    width: 9px;
    height: 9px;
    margin-top: -3px;
  }

  .volume-slider-input-custom::-moz-range-thumb {
    width: 9px;
    height: 9px;
  }

  .settings-menu {
    width: 200px;
    bottom: 45px;
    border-radius: 14px;
    padding: 10px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  .settings-menu button {
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 30px;
  }

  .marker-inputs input {
    width: 55px;
    padding: 4px;
    font-size: 13px;
  }

  .skip-prompt {
    bottom: 55px;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 40px;
    gap: 12px;
  }

  .cancel-button {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 18px;
  }

  .inactivity-modal-content,
  .warning-modal-content {
    padding: 18px;
    max-width: 350px;
    border-radius: 30px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
  }

  .inactivity-modal-content h2,
  .warning-modal-content h2 {
    font-size: 19px;
    margin-bottom: 9px;
  }

  .inactivity-modal-content p,
  .warning-modal-content p {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .inactivity-modal-content button,
  .warning-modal-content button {
    padding: 9px 18px;
    font-size: 13px;
    border-radius: 30px;
  }

  .pause-icon {
    font-size: 56px;
  }

  .timeline-tooltip {
    padding: 7px;
    border-radius: 7px;
  }

  .preview-image {
    width: 140px;
    height: 78.75px;
  }

  .tooltip-time {
    font-size: 11px;
  }

  :fullscreen .player-ambient-wrapper {
    border-radius: 0;
  }

  :fullscreen .video-player,
  :fullscreen .pause-overlay {
    height: 100vh;
    border-radius: 0;
  }

  :fullscreen #ambientCanvas {
    border-radius: 0;
  }
}

/* Медиа-запросы для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
  .player-ambient-wrapper {
    border-radius: 0 0 25px 25px;
  }

  .video-player,
  .pause-overlay {
    height: 50vh;
    border-radius: 0 0 25px 25px;
  }

  .player-controls {
    bottom: 10px;
    left: 10px;
    right: 10px;
    gap: 6px;
  }

  .timeline-container {
    height: 6px;
    border-radius: 2.5px;
  }

  .timeline-thumb {
    width: 10px;
    height: 10px;
    margin-right: -5px;
  }

  .time-display {
    font-size: 12px;
    min-width: 40px;
  }

  .control-button,
  .episode-button {
    font-size: 18px;
    padding: 3px;
  }

  .settings-menu {
    width: 180px;
    bottom: 40px;
    border-radius: 12px;
    padding: 8px 0;
  }

  .settings-menu button {
    font-size: 13px;
    padding: 9px 15px;
    border-radius: 25px;
  }

  .skip-prompt {
    bottom: 50px;
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 35px;
    gap: 10px;
  }

  .cancel-button {
    padding: 5px 9px;
    font-size: 12px;
    border-radius: 16px;
  }

  .inactivity-modal-content,
  .warning-modal-content {
    padding: 15px;
    max-width: 300px;
    border-radius: 25px;
  }

  .inactivity-modal-content h2,
  .warning-modal-content h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .inactivity-modal-content p,
  .warning-modal-content p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .pause-icon {
    font-size: 48px;
  }

  .preview-image {
    width: 120px;
    height: 67.5px;
  }

  .tooltip-time {
    font-size: 10px;
  }

  :fullscreen .player-ambient-wrapper {
    border-radius: 0;
  }

  :fullscreen .video-player,
  :fullscreen .pause-overlay {
    height: 100vh;
    border-radius: 0;
  }

  :fullscreen #ambientCanvas {
    border-radius: 0;
  }
}

/* YandexAd.css */
.yandex-ad-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  display: none;
  background: rgba(0, 0, 0, 0.8);
}

.yandex-ad-container.visible {
  display: flex;
  justify-content: center;
  align-items: center;
}

.yandex-ad-container.dark-theme {
  background: rgba(46, 46, 46, 0.9);
}

.ad-blocked-message {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.ad-blocked-message p {
  margin: 0 0 15px;
  color: #333;
  font-size: 16px;
}

.ad-blocked-message button {
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.ad-blocked-message button:hover {
  background: #0056b3;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
  .yandex-ad-container {
    background: rgba(0, 0, 0, 0.85);
  }

  .yandex-ad-container.dark-theme {
    background: rgba(46, 46, 46, 0.85);
  }

  .ad-blocked-message {
    max-width: 90%;
    padding: 15px;
  }

  .ad-blocked-message p {
    font-size: 14px;
  }

  .ad-blocked-message button {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Медиа-запросы для очень маленьких экранов */
@media (max-width: 480px) {
  .yandex-ad-container {
    background: rgba(0, 0, 0, 0.9);
  }

  .yandex-ad-container.dark-theme {
    background: rgba(46, 46, 46, 0.9);
  }

  .ad-blocked-message {
    max-width: 95%;
    padding: 10px;
  }

  .ad-blocked-message p {
    font-size: 12px;
  }

  .ad-blocked-message button {
    padding: 6px 12px;
    font-size: 10px;
  }
}

.anime-snippet {
  align-items: center;
  background: rgba(114, 114, 114, 0.14);
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  gap: 5px;
  margin: 15px 4.8% 15px;
  max-width: -webkit-fit-content;
  max-width: fit-content;
  padding: 6px 22px 6px 8px;
  transition: all 0.2s ease-out;
}

.player-containerdom {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 85vh;
  display: block;
  background: #00000036;
  object-fit: contain;
  transition: height 0.3s, border-radius 0.3s;
}

.anime-snippet:hover {
  background: rgba(187, 187, 187, 0.4);
  transform: scale(1.02);
}

.anime-snippet-img {
  border-radius: 30px;
  height: 35px;
  object-fit: cover;
  width: 35px;
}

.viewed-badge {
  position: absolute;
  top: 5px;
  right: 10px;
  background: rgba(0, 0, 0, 0.432);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

.viewed-badge .material-icons-round {
  font-size: 1rem;
  color: #f0f0f0;
}

.small-text {
  color: #ffffff;
  margin: 8px 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.series-title-snippet {
  color: #ffffff;
  margin: 8px 0;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(22, 22, 22, 0.8);
  padding: 4px 10px;
  border-radius: 15px;
  display: inline-block;
  text-decoration: none;
}

.series-title-snippet:hover {
  text-decoration: none;
}

.main-content {
  transition: opacity 0.3s ease;
}

.main-content.fade {
  opacity: 0.5;
}

.content-section {
  display: flex;
  gap: 30px;
  padding: 0 5% 50px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.comments-container {
  flex: 0 0 28%;
  background: rgba(40, 40, 40, 0.7);
  border-radius: 20px;
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  height: -webkit-fit-content;
  height: fit-content;
  transition: opacity 0.3s ease;
}

.episodes-container {
  flex: 1 1;
  background: rgba(40, 40, 40, 0.7);
  border-radius: 20px;
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
}

.episodes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.5rem;
  color: white;
  margin: 0;
}

.comments-title2 {
  font-size: 0.6rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -10px;
  margin-bottom: 10px;
}

.episode-search {
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 8px 15px;
  color: #ffffff;
  font-size: 0.9rem;
  width: 89px;
  outline: none;
  transition: border-color 0.2s ease;
}

.episode-search::placeholder {
  popular: rgba(255, 255, 255, 0.5);
}

.episode-search:focus {
  border-color: rgba(168, 85, 247, 0.7);
}

.anime-page-seasons-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.episodes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  width: 100%;
  transition: opacity 0.3s ease;
}

.episode-card {
  background: #333;
  border-radius: 30px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  height: 160px;
  max-width: 330px;
  opacity: 0.8;
}

.episode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.137);
  opacity: 1;
}

.episode-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.episode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  transition: opacity 0.3s ease;
}

.episode-number {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.479);
  padding: 5px 10px;
  border-radius: 20px;
}

.episode-title {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.479);
  padding: 5px 10px;
  border-radius: 20px;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comments-title {
  font-size: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-title-icon {
  width: 24px;
  height: 24px;
}

.comments-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: opacity 0.3s ease;
}

.comments-list::-webkit-scrollbar {
  display: none;
}

.comment-item {
  border-radius: 30px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  background: rgba(60, 60, 60, 0.2);
  transition: opacity 0.3s ease;
}

.comment-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

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

.comment-avatar-container {
  position: relative;
  width: 55px;
  height: 55px;
}

.comment-avatar-frame {
  position: absolute;
  top: -10px;
  left: -12px;
  right: -12px;
  bottom: -8px;
  z-index: 2;
  pointer-events: none;
}

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

.comment-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.comment-user {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
  color: white;
  text-decoration: none;
}

.comment-emoji {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-left: 5px;
}

.comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.comment-time {
  font-size: 0.8rem;
  color: #ffffff;
}

.comment-text {
  line-height: 1.2;
  color: white;
}

.spoiler-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
}

.spoiler-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.slider {
  position: relative;
  width: 40px;
  height: 21px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background: #a855f7;
  border-color: #a855f7;
}

input:checked + .slider:before {
  transform: translateX(20px);
  background: white;
}

.toggle-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  -webkit-user-select: none;
          user-select: none;
}

.spoiler-toggle:hover .slider {
  background: rgba(255, 255, 255, 0.15);
}

.spoiler-toggle input:focus-visible ~ .slider {
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.5);
}

.comment-item.spoiler .comment-text {
  filter: blur(8px);
  transition: filter 0.3s ease;
}

.comment-item.spoiler.revealed .comment-text {
  filter: none;
}

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

.comment-action {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 35px;
  transition: all 0.2s;
}

.comment-action:hover {
  background: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.comment-delete-btn {
  background: rgba(255, 71, 71, 0.2);
  border: 1px solid rgba(255, 71, 71, 0.3);
}

.comment-delete-btn:hover {
  background: rgba(255, 71, 71, 0.4);
}

.comment-delete-btn .material-icons-round {
  color: white;
}

.whatch-comment-textarea1 {
  width: 95%;
  height: 90px;
  background: rgba(51, 51, 51, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 15px;
  color: white;
  font-size: 1rem;
  margin-bottom: 10px;
  resize: none;
  transition: border-color 0.2s ease;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

.comment-textarea:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.7);
}

.submit-comment {
  background: #ffffff;
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.submit-comment:hover {
  background: #9333ea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.comment-timestamp {
  color: #3b82f6;
  cursor: pointer;
}

.comment-timestamp:hover {
  text-decoration: underline;
}

.comment-form1 {
  margin-bottom: 20px;
}

.ad-disable-container {
  float: right;
  margin: 20px 5% 20px 0;
  display: flex;
  justify-content: flex-end;
}

.ad-disable-button {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 35px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-disable-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 898px) {
  .episodes-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 2fr));
    gap: 15px;
    justify-items: center;
  }

  .episodes-container {
    flex: none;
    width: 92%;
    border-radius: 15px;
    padding: 15px;
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
  }

  .episode-card {
    max-width: 220px;
    height: 120px;
    border-radius: 20px;
    opacity: 0.9;
  }
  .episode-image img {
    border-radius: 20px;
  }

  .episode-number,
  .episode-title {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 15px;
    bottom: 10px;
    left: 10px;
  }
}

/* Медиа-запросы для мобильных устройств (до 768px) */
@media (max-width: 768px) {
  .content-section {
    flex-direction: column;
    padding: 10px 15px 40px;
    gap: 20px;
  }

  .comments-container,
  .episodes-container {
    flex: none;
    width: 92%;
    border-radius: 15px;
    padding: 15px;
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
  }

  .episodes-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 3fr));
    gap: 15px;
    justify-items: center;
  }

  .episode-card {
    max-width: 330px;
    height: 120px;
    border-radius: 20px;
    opacity: 0.9;
  }

  .episode-image img {
    border-radius: 20px;
  }

  .episode-number,
  .episode-title {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 15px;
    bottom: 10px;
    left: 10px;
  }

  .viewed-badge {
    top: 4px;
    right: 8px;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 15px;
  }

  .viewed-badge .material-icons-round {
    font-size: 0.9rem;
  }

  .comments-title,
  .section-title {
    font-size: 1.3rem;
  }

  .comment-title-icon {
    width: 20px;
    height: 20px;
  }

  .comments-list {
    max-height: 400px;
    padding-right: 5px;
  }

  .comment-item {
    padding: 12px;
    border-radius: 20px;
    margin-bottom: 12px;
  }

  .comment-avatar-container {
    width: 40px;
    height: 40px;
  }

  .comment-avatar-frame {
    top: -8px;
    left: -10px;
    right: -10px;
    bottom: -6px;
  }

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

  .comment-text {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .comment-emoji {
    width: 14px;
    height: 14px;
  }

  .comment-time {
    font-size: 0.75rem;
  }

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

  .comment-action {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 25px;
  }

  .whatch-comment-textarea1 {
    height: 80px;
    font-size: 0.9rem;
    padding: 12px;
    border-radius: 15px;
  }

  .submit-comment {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 15px;
  }

  .spoiler-toggle {
    gap: 6px;
  }

  .slider {
    width: 36px;
    height: 18px;
  }

  .slider:before {
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 0.5px;
  }

  input:checked + .slider:before {
    transform: translateX(18px);
  }

  .toggle-text {
    font-size: 0.85rem;
  }

  .anime-snippet {
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 15px 5px 8px;
    margin: 10px 4% 10px;
    border-radius: 25px;
  }

  .anime-snippet-img {
    width: 30px;
    height: 30px;
    border-radius: 25px;
  }

  .small-text,
  .series-title-snippet {
    font-size: 0.85rem;
    margin: 6px 0;
  }

  .series-title-snippet {
    padding: 3px 8px;
    border-radius: 12px;
  }

  .episodes-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
  }

  .episode-search {
    width: 100%;
    max-width: 180px;
    padding: 7px 12px;
    font-size: 0.85rem;
    border-radius: 15px;
  }

  .anime-page-seasons-tabs {
    gap: 8px;
    margin-bottom: 15px;
  }

  .ad-disable-container {
    float: none;
    margin: 10px auto;
    justify-content: center;
  }

  .ad-disable-button {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 25px;
  }
}

/* Медиа-запросы для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
  .content-section {
    padding: 5px 10px 30px;
    gap: 15px;
  }

  .comments-container,
  .episodes-container {
    padding: 12px;
    border-radius: 12px;
  }

  .episodes-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .episode-card {
    height: 100px;
    border-radius: 15px;
  }

  .episode-image img {
    border-radius: 15px;
  }

  .episode-number,
  .episode-title {
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 12px;
    bottom: 8px;
    left: 8px;
  }

  .viewed-badge {
    top: 3px;
    right: 6px;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 12px;
  }

  .viewed-badge .material-icons-round {
    font-size: 0.8rem;
  }

  .comments-title,
  .section-title {
    font-size: 1.1rem;
  }

  .comment-title-icon {
    width: 18px;
    height: 18px;
  }

  .comments-list {
    max-height: 350px;
  }

  .comment-item {
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 10px;
  }

  .comment-avatar-container {
    width: 35px;
    height: 35px;
  }

  .comment-avatar-frame {
    top: -7px;
    left: -9px;
    right: -9px;
    bottom: -5px;
  }

  .comment-user {
    font-size: 0.8rem;
  }

  .comment-text {
    font-size: 0.8rem;
  }

  .comment-emoji {
    width: 12px;
    height: 12px;
  }

  .comment-time {
    font-size: 0.7rem;
  }

  .comment-actions {
    margin-top: 6px;
    gap: 6px;
  }

  .comment-action {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
  }

  .whatch-comment-textarea1 {
    height: 70px;
    font-size: 0.85rem;
    padding: 10px;
    border-radius: 12px;
  }

  .submit-comment {
    padding: 7px 16px;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  .spoiler-toggleíveis {
    gap: 5px;
  }

  .slider {
    width: 32px;
    height: 16px;
  }

  .slider:before {
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 0.5px;
  }

  input:checked + .slider:before {
    transform: translateX(16px);
  }

  .toggle-text {
    font-size: 0.8rem;
  }

  .anime-snippet {
    gap: 6px;
    padding: 4px 12px 4px 6px;
    margin: 8px 3% 8px;
    border-radius: 20px;
  }

  .anime-snippet-img {
    width: 28px;
    height: 28px;
    border-radius: 20px;
  }

  .small-text,
  .series-title-snippet {
    font-size: 0.8rem;
    margin: 5px 0;
  }

  .series-title-snippet {
    padding: 2px 6px;
    border-radius: 10px;
  }

  .episode-search {
    max-width: 150px;
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  .anime-page-seasons-tabs {
    gap: 6px;
    margin-bottom: 12px;
  }

  .ad-disable-button {
    padding: 7px 14px;
    font-size: 0.85rem;
    border-radius: 20px;
  }
}

.genre-page {
  padding: 100px 5% 0 5%; /* 80px сверху — высота хедера, 5% по бокам */
}

.genre-page-header {
  padding: 15px 0; /* Уменьшенные отступы для хедера */
  background: rgba(40, 40, 40, 0.7);
  border-radius: 20px;
  margin-bottom: 20px;
}

.genre-page-title {
  font-size: 1.8rem;
  color: white;
  font-weight: 600;
  padding: 0 20px;
  margin: 0;
}

.genre-page-anime-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  padding: 15px 0;
}

.error {
  color: red;
  text-align: center;
  padding: 10px 0;
}

.empty-message,
.loading {
  text-align: center;
  color: #666;
  padding: 10px 0;
}

/* Медиа-запросы для мобильных устройств */
@media screen and (max-width: 768px) {
  .genre-page {
    padding: 80px 3% 0 3%; /* Уменьшаем верхний отступ и боковые для мобильных */
  }

  .genre-page-header {
    padding: 10px 0; /* Еще меньше отступов для хедера */
    border-radius: 15px; /* Меньший радиус для мобильных */
  }

  .genre-page-title {
    font-size: 1.5rem; /* Меньший шрифт для заголовка */
    padding: 0 15px;
  }

  .genre-page-anime-list {
    grid-template-columns: repeat(2, 1fr); /* Две карточки в ряд */
    gap: 15px; /* Меньший зазор между карточками */
    padding: 10px 0;
  }

  .error,
  .empty-message,
  .loading {
    font-size: 0.9rem; /* Меньший шрифт для сообщений */
    padding: 8px 0;
  }
}

/* Для очень маленьких экранов (например, < 400px) */
@media screen and (max-width: 400px) {
  .genre-page {
    padding: 70px 2% 0 2%; /* Еще меньше отступов */
  }

  .genre-page-title {
    font-size: 1.3rem; /* Еще меньший шрифт */
  }

  .genre-page-anime-list {
    gap: 10px; /* Минимизируем зазор */
  }
}

/* Файл сохранён в UTF-8 */
.animeContainer_8j4q {
  padding: 100px 5% 0 5%;
  box-sizing: border-box;
}

.animeContainer_8j4q h2 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 600;
}

.filterBar_3m9x {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sortPanel_7v2z {
  width: 250px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: thin;
  border-radius: 35px;
  background: #363636;
  padding-left: 14px;
  padding-top: 5px;
}

.sortTrigger_9k3z {
  background: rgba(40, 40, 40, 0.7);
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 18px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.sortTrigger_9k3z:hover {
  background: rgba(32, 32, 32, 0.7);
  transform: scale(1.05);
}

.activeSort_5p1r {
  background: rgb(83, 83, 83);
}

.animeLayout_4x8y {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  padding: 15px 0;
}

.errorText_2q6w {
  color: red;
  text-align: center;
  margin: 20px 0;
}

.loadingText_6t3m,
.endText_1r9v,
.emptyText_8w4k {
  text-align: center;
  color: #aaa;
  margin: 20px 0;
}

/* Медиа-запросы для адаптивности */
@media screen and (max-width: 768px) {
  .animeContainer_8j4q {
    padding: 80px 3% 0 3%;
  }

  .animeContainer_8j4q h2 {
    font-size: 1.5rem;
  }

  .filterBar_3m9x {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .sortPanel_7v2z {
    width: 100%;
  }

  .animeLayout_4x8y {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px 0;
  }

  .errorText_2q6w,
  .loadingText_6t3m,
  .endText_1r9v,
  .emptyText_8w4k {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 400px) {
  .animeContainer_8j4q {
    padding: 70px 2% 0 2%;
  }

  .animeContainer_8j4q h2 {
    font-size: 1.3rem;
  }

  .animeLayout_4x8y {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Reset and base styles */

/* Main admin panel container */
.x7a-admin-panel {
  display: flex;
  min-height: 100vh;
}

/* Notifications */
.x7a-success,
.x7a-error {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  z-index: 1000;
  animation: slideDown 3s ease-in-out;
  max-width: 95%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.x7a-success {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.3),
    rgba(74, 222, 128, 0.1)
  );
  color: #4ade80;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.x7a-error {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.3),
    rgba(255, 107, 107, 0.1)
  );
  color: #ff6b6b;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

/* Loading indicator */
.x7a-loading {
  text-align: center;
  margin: 32px 0;
  font-size: 1.1rem;
  color: #d0d0d0;
  animation: pulse 1.5s infinite;
}

/* Sidebar */
.x7a-sidebar {
  width: 300px;
  background: linear-gradient(
    180deg,
    rgba(30, 30, 30, 0.95),
    rgba(20, 20, 20, 0.95)
  );
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  padding: 40px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.x7a-sidebar-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
}

.x7a-sidebar-btn {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 12px;
  color: #e0e0e0;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.x7a-sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(8px);
}

.x7a-sidebar-btn.x7a-active {
  background: #9b59b6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

/* Main content */
.x7a-content {
  flex: 1 1;
  padding: 40px;
  overflow-y: auto;
}

/* Tab containers */
.x7a-users-tab,
.x7a-create-anime-tab,
.x7a-create-season-tab,
.x7a-create-series-tab,
.x7a-update-tab {
  background: linear-gradient(
    135deg,
    rgba(40, 40, 40, 0.9),
    rgba(30, 30, 30, 0.9)
  );
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 1400px;
  margin: 0 auto;
}

.x7a-users-tab h3,
.x7a-create-anime-tab h3,
.x7a-create-season-tab h3,
.x7a-create-series-tab h3,
.x7a-update-tab h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: #ffffff;
  text-align: center;
}

/* Search */
.x7a-search-container {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.x7a-search-container input {
  flex: 1 1;
  padding: 14px 20px;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e0e0e0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.x7a-search-container input:focus {
  border-color: #9b59b6;
  box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.x7a-search-container button {
  padding: 14px 32px;
  background: #9b59b6;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.x7a-search-container button:hover {
  background: #8e44ad;
  transform: translateY(-2px);
}

/* Anime results */
.x7a-anime-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.x7a-anime-item {
  background: rgba(60, 60, 60, 0.5);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.x7a-anime-item:hover {
  background: rgba(80, 80, 80, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.x7a-anime-poster {
  width: 60px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.x7a-anime-item span {
  font-size: 1rem;
  font-weight: 500;
  color: #e0e0e0;
}

/* User results */
.x7a-user-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.x7a-user-item {
  background: rgba(60, 60, 60, 0.5);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.x7a-user-item:hover {
  background: rgba(80, 80, 80, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.x7a-user-avatar-container,
.x7a-user-avatar-container-large {
  position: relative;
}

.x7a-user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.x7a-user-frame {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  pointer-events: none;
}

.x7a-user-emoji {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-left: 10px;
}

.x7a-user-item span {
  font-size: 1rem;
  font-weight: 500;
  color: #e0e0e0;
}

.x7a-user-details {
  background: rgba(60, 60, 60, 0.5);
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
}

.x7a-user-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.x7a-user-frame-large {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 144px;
  height: 144px;
  object-fit: contain;
  pointer-events: none;
}

.x7a-user-background {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.x7a-user-details h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
}

.x7a-user-details p {
  font-size: 1rem;
  margin: 10px 0;
  color: #d0d0d0;
}

.x7a-user-frames,
.x7a-user-emojis {
  margin-top: 32px;
}

.x7a-user-frames h5,
.x7a-user-emojis h5 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: #ffffff;
}

.x7a-frame-preview,
.x7a-emoji-preview {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-right: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.x7a-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.x7a-user-actions button,
.x7a-user-actions select {
  padding: 12px 24px;
  background: #9b59b6;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.x7a-user-actions button:hover,
.x7a-user-actions select:hover {
  background: #8e44ad;
  transform: translateY(-2px);
}

.x7a-user-actions select {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Forms (General) */
.x7a-form,
.x7a-update-anime-form,
.x7a-update-season-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.x7a-form input,
.x7a-form select,
.x7a-form textarea,
.x7a-update-anime-form input,
.x7a-update-season-form input,
.x7a-update-season-form select,
.x7a-update-season-form textarea {
  padding: 12px 16px;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e0e0e0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.x7a-form input:focus,
.x7a-form select:focus,
.x7a-form textarea:focus,
.x7a-update-anime-form input:focus,
.x7a-update-season-form input:focus,
.x7a-update-season-form select:focus,
.x7a-update-season-form textarea:focus {
  border-color: #9b59b6;
  box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.x7a-form textarea,
.x7a-update-season-form textarea {
  height: 140px;
  resize: none;
}

/* Seasons form */
.x7a-seasons-form {
  background: linear-gradient(
    135deg,
    rgba(50, 50, 50, 0.9),
    rgba(40, 40, 40, 0.9)
  );
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
  position: relative;
}

.x7a-seasons-form h4 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
}

.x7a-season-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: rgba(60, 60, 60, 0.5);
  border-radius: 16px;
  margin-bottom: 20px;
}

.x7a-season-form input,
.x7a-season-form textarea,
.x7a-season-form select {
  padding: 12px 16px;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e0e0e0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.x7a-season-form input:focus,
.x7a-season-form textarea:focus,
.x7a-season-form select:focus {
  border-color: #9b59b6;
  box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.x7a-season-form textarea {
  height: 120px;
  resize: none;
}

.x7a-season-form input[type="file"] {
  padding: 12px;
}

.x7a-poster-preview {
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin: 16px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.x7a-season-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  background: rgba(50, 50, 50, 0.9);
  padding: 16px;
  border-radius: 0 0 16px 16px;
}

.x7a-season-actions button {
  padding: 14px 32px;
  background: #9b59b6;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.x7a-season-actions button:hover {
  background: #8e44ad;
  transform: translateY(-2px);
}

.x7a-season-actions button:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
}

/* Series tab */
.x7a-create-series-tab {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
  background: linear-gradient(
    135deg,
    rgba(40, 40, 40, 0.9),
    rgba(30, 30, 30, 0.9)
  );
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Seasons list */
.x7a-seasons-list {
  margin-top: 32px;
}

.x7a-seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 24px;
  gap: 24px;
}

.x7a-season-item {
  background: rgba(60, 60, 60, 0.5);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.x7a-season-item:hover {
  background: rgba(80, 80, 80, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.x7a-season-poster {
  width: 120px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.x7a-season-info {
  flex: 1 1;
  font-size: 1rem;
}

.x7a-season-info span {
  font-weight: 600;
  color: #ffffff;
  display: block;
  margin-bottom: 10px;
}

.x7a-season-info p {
  margin: 8px 0;
  color: #d0d0d0;
  font-size: 0.95rem;
}

/* Series list */
.x7a-series-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.x7a-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-gap: 24px;
  gap: 24px;
}

.x7a-series-item {
  position: relative;
  width: 160px;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.x7a-series-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.x7a-series-item.x7a-active {
  box-shadow: 0 0 0 4px #9b59b6;
}

.x7a-series-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.x7a-series-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Series actions */
.x7a-series-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
}

.x7a-series-actions button {
  padding: 14px 32px;
  background: #9b59b6;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.x7a-series-actions button:hover {
  background: #8e44ad;
  transform: translateY(-2px);
}

.x7a-series-actions button:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
}

/* Series options */
.x7a-series-options {
  background: linear-gradient(
    135deg,
    rgba(50, 50, 50, 0.9),
    rgba(40, 40, 40, 0.9)
  );
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.x7a-series-options.x7a-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.x7a-series-options h4 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: #ffffff;
}

.x7a-series-info {
  font-size: 0.95rem;
  color: #d0d0d0;
  background: rgba(60, 60, 60, 0.5);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.x7a-series-info p {
  margin: 8px 0;
}

.x7a-series-info p span {
  color: #ffffff;
  font-weight: 500;
}

.x7a-series-update-options {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.x7a-series-update-options button {
  padding: 14px 32px;
  background: #9b59b6;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.x7a-series-update-options button:hover {
  background: #8e44ad;
  transform: translateY(-2px);
}

/* Series forms (create, quality, voice-over) */
.x7a-series-form,
.x7a-series-quality-form,
.x7a-series-voiceover-form {
  background: linear-gradient(
    135deg,
    rgba(50, 50, 50, 0.9),
    rgba(40, 40, 40, 0.9)
  );
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 32px auto 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.x7a-series-form.x7a-hidden,
.x7a-series-quality-form.x7a-hidden,
.x7a-series-voiceover-form.x7a-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.x7a-series-form h4,
.x7a-series-quality-form h4,
.x7a-series-voiceover-form h4 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
}

.x7a-series-form input,
.x7a-series-form select,
.x7a-series-form textarea,
.x7a-series-quality-form input,
.x7a-series-voiceover-form input {
  padding: 12px 16px;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e0e0e0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.x7a-series-form input:focus,
.x7a-series-form select:focus,
.x7a-series-form textarea:focus,
.x7a-series-quality-form input:focus,
.x7a-series-voiceover-form input:focus {
  border-color: #9b59b6;
  box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.x7a-series-form input:disabled,
.x7a-series-quality-form input:disabled,
.x7a-series-voiceover-form input:disabled {
  background: #333;
  color: #888;
  cursor: not-allowed;
}

.x7a-series-form input[type="file"],
.x7a-series-quality-form input[type="file"],
.x7a-series-voiceover-form input[type="file"] {
  padding: 12px;
}

.x7a-series-form button,
.x7a-series-quality-form button,
.x7a-series-voiceover-form button {
  padding: 14px 32px;
  background: #9b59b6;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.x7a-series-form button:hover,
.x7a-series-quality-form button:hover,
.x7a-series-voiceover-form button:hover {
  background: #8e44ad;
  transform: translateY(-2px);
}

.x7a-series-form button:disabled,
.x7a-series-quality-form button:disabled,
.x7a-series-voiceover-form button:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
}

/* Animations */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  90% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* Image fallback */
img:not([src]),
img[src=""] {
  display: none;
}

/* Responsive design */
@media (max-width: 1024px) {
  .x7a-sidebar {
    width: 260px;
  }

  .x7a-content {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .x7a-admin-panel {
    flex-direction: column;
  }

  .x7a-sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 32px 20px;
  }

  .x7a-content {
    padding: 24px 16px;
  }

  .x7a-form,
  .x7a-seasons-form,
  .x7a-update-anime-form,
  .x7a-update-season-form,
  .x7a-season-form {
    gap: 16px;
  }

  .x7a-user-results,
  .x7a-anime-results,
  .x7a-seasons-grid,
  .x7a-series-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .x7a-search-container {
    flex-direction: column;
  }

  .x7a-search-container button {
    width: 100%;
  }

  .x7a-series-form,
  .x7a-series-quality-form,
  .x7a-series-voiceover-form {
    max-width: 100%;
  }

  .x7a-season-actions {
    flex-direction: column;
    gap: 12px;
  }

  .x7a-season-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .x7a-series-item {
    width: 120px;
    height: 180px;
  }

  .x7a-series-number {
    font-size: 1.6rem;
  }

  .x7a-season-form input,
  .x7a-season-form textarea,
  .x7a-season-form select,
  .x7a-series-form input,
  .x7a-series-form select,
  .x7a-series-quality-form input,
  .x7a-series-voiceover-form input {
    font-size: 0.9rem;
  }

  .x7a-season-actions button,
  .x7a-series-actions button,
  .x7a-series-form button,
  .x7a-series-quality-form button,
  .x7a-series-voiceover-form button {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .x7a-user-results,
  .x7a-anime-results,
  .x7a-seasons-grid,
  .x7a-series-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .x7a-anime-poster,
  .x7a-season-poster {
    width: 100px;
    height: 150px;
  }

  .x7a-poster-preview {
    width: 100px;
    height: 150px;
  }
}


/*# sourceMappingURL=main.b63ce82f.css.map*/