/* Anitube Style - Reset & Variables */
:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --bg-dark: #0f0f0f;
  --bg-darker: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-hover: #252525;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --border-color: #2a2a2a;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #0f0f1a 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  max-width: 100vw;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  overflow-x: hidden;
}

.header .container {
  overflow: visible;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(18, 18, 26, 0.95) 100%);
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.header-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 15px 0;
  max-width: 100%;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo i {
  font-size: 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-bar i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-bar input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.main-nav {
  display: flex;
  gap: 5px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--primary-color);
  color: white;
}

.user-menu {
  margin-left: auto;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius);
  font-weight: 500;
}

.btn-login:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

.user-dropdown {
  position: relative;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.user-avatar-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary-color);
}

.user-avatar-btn i.fa-user-circle {
  font-size: 28px;
  color: var(--primary-color);
}

.user-avatar-btn .username-text {
  font-size: 14px;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar-btn i.fa-chevron-down {
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
}

.user-avatar-btn:hover i.fa-chevron-down {
  color: var(--primary-color);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  min-width: 250px;
  padding: 8px 0;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.dropdown-header i {
  font-size: 40px;
  color: var(--primary-color);
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.dropdown-username {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-email {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dropdown-menu a i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.dropdown-menu .logout-link {
  color: var(--primary-color);
}

.dropdown-menu .logout-link:hover {
  background: rgba(255,107,107,0.1);
}

.dropdown-menu hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 8px 0;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 30px 0;
}

.section {
  margin-bottom: 40px;
}

/* Featured Slider */
.featured-slider {
  position: relative;
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.slider-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, transparent 50%, rgba(0,0,0,0.9) 100%),
              linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
}

.slide-content {
  position: absolute;
  bottom: 60px;
  left: 60px;
  max-width: 600px;
  z-index: 1;
}

.slide-content h2 {
  font-size: 48px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.slide-content .meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
}

.slide-content .meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.slide-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.slide-actions {
  display: flex;
  gap: 15px;
}

.btn-primary {
  padding: 12px 30px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 12px 30px;
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.slider-nav:hover {
  background: rgba(0,0,0,0.8);
}

.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--primary-color);
  width: 30px;
  border-radius: 5px;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 i {
  color: var(--primary-color);
}

.view-all {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-all:hover {
  color: var(--primary-color);
}

/* Anime Grid */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.anime-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.anime-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.anime-card-poster {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
}

.anime-card-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.anime-card:hover .anime-card-poster img {
  transform: scale(1.1);
}

.anime-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  background: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.anime-card-badge-soon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  animation: pulse-soon 2s ease-in-out infinite;
}

@keyframes pulse-soon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.anime-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 15px;
  opacity: 0;
  transition: var(--transition);
}

.anime-card:hover .anime-card-overlay {
  opacity: 1;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255,107,107,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  transition: var(--transition);
}

.anime-card:hover .play-icon {
  opacity: 1;
}

.anime-card-info {
  padding: 15px;
}

.anime-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.anime-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.anime-card-schedule {
  margin-top: 8px;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
  border-left: 3px solid var(--secondary-color);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary-color);
  text-align: center;
}

.anime-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffd700;
}

/* Catalog Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.filters-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-options label:hover {
  color: var(--text-primary);
}

.filter-options input[type="checkbox"],
.filter-options input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.filter-select {
  width: 100%;
  padding: 10px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
}

.btn-apply-filters,
.btn-reset-filters {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 10px;
}

.btn-apply-filters {
  background: var(--primary-color);
  color: white;
}

.btn-apply-filters:hover {
  background: #ff5252;
}

.btn-reset-filters {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.btn-reset-filters:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.catalog-content {
  flex: 1;
}

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-options label {
  font-size: 14px;
  color: var(--text-secondary);
}

.sort-options select {
  padding: 8px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
}

.view-toggle {
  display: flex;
  gap: 5px;
}

.view-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.view-btn:hover,
.view-btn.active {
  background: var(--primary-color);
  color: white;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination button {
  padding: 10px 15px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-size: 14px;
}

.pagination button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.pagination button.active {
  background: var(--primary-color);
  color: white;
}

/* Schedule */
.page-title {
  font-size: 32px;
  margin-bottom: 30px;
}

.schedule-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  overflow-x: auto;
}

.schedule-tab {
  padding: 12px 24px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-weight: 500;
  white-space: nowrap;
}

.schedule-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.schedule-tab.active {
  background: var(--primary-color);
  color: white;
}

.schedule-content {
  display: grid;
  gap: 15px;
}

.schedule-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: var(--bg-card);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.schedule-item:hover {
  background: var(--bg-hover);
  transform: translateX(5px);
}

.schedule-item-poster {
  width: 80px;
  height: 110px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.schedule-item-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schedule-item-info {
  flex: 1;
}

.schedule-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.schedule-item-meta {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.schedule-item-time {
  color: var(--primary-color);
  font-weight: 600;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.modal::-webkit-scrollbar {
  width: 10px;
}

.modal::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.modal::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: #44a3f7;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-container {
  position: relative;
  background: var(--bg-card);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  z-index: 1;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(78, 205, 196, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 20px;
  z-index: 10;
  transition: all 0.3s ease;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
}

/* Auth Modal */
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: var(--bg-dark);
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-weight: 600;
}

.auth-tab.active {
  background: var(--primary-color);
  color: white;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn-block {
  width: 100%;
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
}

.forgot-password {
  color: var(--text-secondary);
  font-size: 14px;
}

.forgot-password:hover {
  color: var(--primary-color);
}

/* Anime Details Modal - Улучшенный дизайн */
.anime-modal-container {
  max-width: 1400px;
  margin: auto;
  padding: 0;
  overflow: hidden;
  background: var(--bg-darker);
  border-radius: 16px;
}

.anime-details-wrapper {
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-dark);
}

.anime-details-wrapper::-webkit-scrollbar {
  width: 8px;
}

.anime-details-wrapper::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

.anime-details-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.anime-header {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(85, 98, 112, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.anime-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(78,205,196,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.anime-poster {
  position: relative;
  z-index: 1;
}

.anime-poster img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.anime-poster:hover img {
  transform: scale(1.02);
}

.anime-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.action-btn {
  padding: 14px;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(78, 205, 196, 0.2);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
}

.anime-info {
  z-index: 1;
}

.anime-info h1 {
  font-size: 36px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #4ecdc4 0%, #44a3f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.anime-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.anime-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.anime-meta span:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.anime-meta .rating {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.3);
  color: #ffd700;
}

.anime-genres {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.genre-tag {
  padding: 8px 16px;
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.genre-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.anime-description {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 15px;
}

.anime-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-item {
  padding: 16px;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(78, 205, 196, 0.2);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Anime Tabs - Улучшенный дизайн */
.anime-tabs {
  display: flex;
  gap: 8px;
  padding: 0 40px;
  background: var(--bg-card);
  border-bottom: 2px solid rgba(78, 205, 196, 0.1);
}

.anime-tab {
  padding: 18px 30px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.anime-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.anime-tab:hover {
  color: var(--text-primary);
}

.anime-tab.active {
  color: var(--primary-color);
}

.anime-tab.active::after {
  transform: scaleX(1);
}

.anime-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.anime-tab-content {
  padding: 30px;
}

.tab-pane {
  display: none;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-pane.active {
  display: block;
}

/* Episodes Grid - Красивый дизайн */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 40px;
  background: var(--bg-card);
}

.episode-card {
  cursor: pointer;
  background: var(--bg-darker);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(78, 205, 196, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.episode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.episode-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 12px 30px rgba(78, 205, 196, 0.3);
}

.episode-card:hover::before {
  opacity: 1;
}

.episode-card.watched {
  border-color: rgba(78, 205, 196, 0.5);
  opacity: 0.7;
}

.episode-card.watched::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: white;
  z-index: 2;
}

.episode-thumbnail {
  width: 100%;
  position: relative;
  padding-top: 56.25%;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  overflow: hidden;
}

.episode-thumbnail::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(78, 205, 196, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.episode-card:hover .episode-thumbnail::before {
  opacity: 1;
}

.episode-thumbnail::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: var(--primary-color);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.episode-card:hover .episode-thumbnail::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

.episode-thumbnail img {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.episode-card:hover .episode-thumbnail img {
  transform: scale(1.1);
}

.episode-number {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  border: 1px solid rgba(78, 205, 196, 0.3);
  z-index: 2;
}

.episode-info {
  background: var(--bg-dark);
  padding: 16px;
}

.episode-title {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.episode-card:hover .episode-title {
  color: var(--primary-color);
}

.episode-duration {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.episode-duration::before {
  content: '⏱';
  font-size: 14px;
}

/* Comments Section */
.comments-section {
  max-width: 800px;
}

.add-comment {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--bg-dark);
  border-radius: var(--radius);
}

.add-comment textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  resize: vertical;
  margin-bottom: 15px;
}

.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-input select {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment {
  padding: 20px;
  background: var(--bg-dark);
  border-radius: var(--radius);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 20px;
}

.comment-author-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.comment-date {
  font-size: 12px;
  color: var(--text-muted);
}

.comment-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,215,0,0.2);
  border-radius: var(--radius);
  color: #ffd700;
  font-size: 14px;
  font-weight: 600;
}

.comment-text {
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Video Player Modal - Красивый дизайн */
.video-player-container {
  position: relative;
  max-width: 1600px;
  width: 95%;
  margin: auto;
  background: var(--bg-darker);
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 30px 40px;
  background: linear-gradient(to bottom, var(--bg-darker) 0%, var(--bg-card) 100%);
  border-top: 2px solid rgba(78, 205, 196, 0.2);
}

.video-info h2 {
  font-size: 28px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #4ecdc4 0%, #44a3f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.video-controls {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.video-control-btn {
  padding: 14px 28px;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 2px solid rgba(78, 205, 196, 0.2);
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-control-btn i {
  font-size: 16px;
}

.video-control-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
}

.video-control-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.video-control-btn:disabled:hover {
  background: rgba(26, 26, 26, 0.8);
  border-color: rgba(78, 205, 196, 0.2);
  box-shadow: none;
}

/* Profile Section */
.profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: var(--primary-color);
}

.profile-card h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.profile-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.profile-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.stat-mini {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-mini .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-mini .stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-nav {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.profile-nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.profile-nav-link.active {
  background: var(--bg-hover);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.profile-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  min-height: 500px;
}

.profile-section-content {
  display: none;
}

.profile-section-content.active {
  display: block;
}

.profile-content h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.settings-card {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 25px;
}

.settings-card h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input {
  width: auto;
}

/* Admin Section */
#admin-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  margin: 30px 0;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff5252 100%);
  padding: 25px;
  border-radius: var(--radius);
  color: white;
  text-align: center;
}

.admin-stat-card h3 {
  font-size: 36px;
  margin-bottom: 10px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  padding: 12px 20px;
  background: var(--bg-dark);
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-weight: 500;
}

.admin-tab-btn:hover,
.admin-tab-btn.active {
  background: var(--primary-color);
  color: white;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-controls input,
.admin-controls select {
  padding: 10px 15px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
}

.admin-controls button {
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius);
  font-weight: 500;
}

.admin-table-container {
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--bg-darker);
  font-weight: 600;
  color: var(--text-primary);
}

.admin-table tr:hover {
  background: var(--bg-hover);
}

.admin-action-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 5px;
}

.admin-action-btn.danger {
  background: #ff4444;
  color: white;
}

.admin-action-btn.warning {
  background: #ffaa00;
  color: white;
}

.admin-action-btn.success {
  background: #00c851;
  color: white;
}

/* Footer */
.footer {
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0 25px;
  margin-top: 60px;
  max-width: 100vw;
  overflow-x: hidden;
  width: 100%;
}

.footer-top-wrapper {
  margin-bottom: 30px;
  max-width: 100%;
  overflow-x: hidden;
}

.footer-brand {
  max-width: 100%;
  overflow-x: hidden;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 100%;
  overflow-x: hidden;
}

/* Desktop layout - 4 columns in one row */
@media (min-width: 769px) {
  .footer-top-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
  }
  
  .footer-brand {
    margin-bottom: 0;
  }
  
  .footer-nav-grid {
    display: contents;
    margin-bottom: 0;
  }
}

.footer-brand h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.footer-brand p {
  color: #666;
  font-size: 13px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.footer-nav h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-nav a {
  display: block;
  color: #666;
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.2s;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.footer-nav a:hover {
  color: #fff;
}

.age-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 11px;
  color: #555;
}

.age-badge {
  background: #e74c3c;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: 100%;
  overflow-x: hidden;
}

.footer-legal {
  color: #444;
  font-size: 11px;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.footer-legal p {
  margin-bottom: 2px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-legal a {
  color: #666;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 6px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  transition: all 0.2s;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.disclaimer {
  font-size: 12px;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  
  .catalog-layout {
    grid-template-columns: 250px 1fr;
  }
}

@media (max-width: 992px) {
  .header-wrapper {
    flex-wrap: wrap;
  }
  
  .search-bar {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }
  
  .anime-header {
    grid-template-columns: 1fr;
  }
  
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    position: static;
  }
  
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  
  .featured-slider {
    height: 400px;
  }
  
  .slide-content {
    left: 30px;
    bottom: 30px;
  }
  
  .slide-content h2 {
    font-size: 32px;
  }
  
  .modal-container {
    padding: 20px;
  }
  
  .anime-modal-container {
    max-width: 100%;
  }
  
  .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-socials {
    justify-content: center;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .logo span {
    display: none;
  }
  
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .featured-slider {
    height: 300px;
  }
  
  .slide-content h2 {
    font-size: 24px;
  }
  
  .slide-actions {
    flex-direction: column;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}

/* Auth Pages Styles */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
  overflow: hidden;
}

.auth-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-direction: column;
}

.auth-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(78, 205, 196, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
  z-index: -1;
  pointer-events: none;
}

.auth-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
  animation: authBgPulse 8s ease-in-out infinite;
}

@keyframes authBgPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.auth-box {
  position: relative;
  z-index: 1;
  background: rgba(18, 18, 26, 0.9);
  border-radius: 16px;
  padding: 30px 35px;
  width: 100%;
  max-width: 380px;
  box-shadow: 
    0 25px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(102, 126, 234, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-logo i {
  font-size: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo h1 {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.auth-box h2 {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 5px;
  color: #fff;
}

.auth-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
  font-size: 13px;
}

.auth-box .form-group {
  margin-bottom: 14px;
}

.auth-box .form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-box .form-group label i {
  color: #667eea;
  font-size: 11px;
}

.auth-box .form-group input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.auth-box .form-group input::placeholder {
  color: #555;
}

.auth-box .form-group input:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(10, 10, 15, 0.8);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #777;
  font-size: 12px;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #667eea;
}

.checkbox-label a {
  color: #667eea;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.forgot-link {
  color: #667eea;
  font-size: 13px;
  transition: color 0.3s;
}

.forgot-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

.btn-auth {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-auth:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-auth:active {
  transform: translateY(-1px);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 18px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(102, 126, 234, 0.2);
}

.auth-divider span {
  position: relative;
  background: rgba(18, 18, 26, 0.9);
  padding: 0 15px;
  color: #555;
  font-size: 13px;
}

.auth-footer {
  text-align: center;
  margin-top: 15px;
}

.auth-footer p {
  color: #666;
  font-size: 13px;
}

.auth-footer a {
  color: #667eea;
  font-weight: 600;
  transition: color 0.3s;
}

.auth-footer a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.back-home {
  text-align: center;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(102, 126, 234, 0.15);
}

.back-home a {
  color: #666;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.back-home a:hover {
  color: #667eea;
}

/* Notification for auth pages */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: var(--radius);
  color: white;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background: #00c851;
}

.notification-error {
  background: #ff4444;
}

.notification-info {
  background: #4ecdc4;
}

/* Responsive auth pages */
@media (max-width: 768px) {
  .auth-box {
    padding: 30px 20px;
  }
  
  .auth-logo h1 {
    font-size: 28px;
  }
  
  .auth-box h2 {
    font-size: 24px;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile Menu Button - REMOVED (not working, using footer navigation instead) */
.mobile-menu-btn {
  display: none !important;
}

/* Mobile Navigation - REMOVED (not working, using footer navigation instead) */
.mobile-nav-overlay,
.mobile-nav,
.mobile-nav-header,
.mobile-nav-close,
.mobile-nav-links,
.mobile-nav-divider,
.mobile-search {
  display: none !important;
}



/* ============================================
   TABLET STYLES (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }
  
  .anime-header {
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px;
  }
  
  .anime-info h1 {
    font-size: 28px;
  }
  
  .anime-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .anime-tabs {
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .anime-tab {
    padding: 15px 20px;
    white-space: nowrap;
  }
  
  .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
  }
  
  .video-info {
    padding: 20px;
  }
  
  .video-info h2 {
    font-size: 22px;
  }
}

/* ============================================
   MOBILE STYLES (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Prevent horizontal scrolling */
  * {
    max-width: 100%;
  }
  
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
  }
  
  .container {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .main-content {
    padding-bottom: 20px;
    overflow-x: hidden;
  }
  
  /* Header adjustments */
  .header {
    width: 100% !important;
  }
  
  .header .container {
    max-width: 100% !important;
    padding: 0 15px !important;
    overflow: visible !important;
  }
  
  .header-wrapper {
    gap: 10px;
    padding: 10px 0;
    max-width: 100% !important;
    overflow: visible !important;
    width: 100% !important;
  }
  
  .logo {
    flex: 1;
    max-width: calc(100% - 100px);
  }
  
  .logo span {
    font-size: 18px;
  }
  
  .logo i {
    font-size: 22px;
  }
  
  /* Hide search bar and navigation on mobile - use footer instead */
  .search-bar {
    display: none !important;
  }
  
  .main-nav {
    display: none !important;
  }
  
  .user-menu {
    margin-left: auto;
  }
  
  .btn-login {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .btn-login span {
    display: none;
  }
  
  .btn-login i {
    margin: 0;
  }
  
  .user-avatar-btn {
    padding: 6px 10px;
  }
  
  .user-avatar-btn .username-text {
    display: none;
  }
  
  .user-avatar-btn i.fa-chevron-down {
    display: none;
  }
  
  .user-avatar-btn i.fa-user-circle {
    font-size: 24px;
  }
  
  /* Footer Mobile */
  .footer {
    padding: 30px 0 30px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
  }
  
  .footer .container {
    max-width: 100% !important;
    padding: 0 15px !important;
    overflow-x: hidden !important;
  }
  
  /* Mobile layout - vertical stacking */
  .footer-top-wrapper {
    display: block !important;
    margin-bottom: 25px;
  }
  
  .footer-brand {
    text-align: center;
    margin-bottom: 25px;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .footer-nav-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin-bottom: 0;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .footer-brand {
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .footer-brand p {
    font-size: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .age-rating {
    justify-content: center;
  }
  
  .footer-nav {
    text-align: center;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 0 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .footer-nav h4 {
    margin-bottom: 12px;
  }
  
  .footer-nav a {
    display: block !important;
    margin: 0 auto 8px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 95% !important;
    font-size: 12px !important;
    padding: 6px 8px;
    line-height: 1.4;
    text-align: center;
    hyphens: auto;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .footer-legal {
    font-size: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .footer-legal p {
    margin-bottom: 4px;
    word-wrap: break-word;
  }
  
  .footer-socials {
    justify-content: center;
  }
  
  /* Featured Slider */
  .featured-slider {
    height: 280px;
    border-radius: 12px;
    margin-bottom: 25px;
    max-width: 100%;
    overflow: hidden;
  }
  
  .slide-content {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: none;
  }
  
  .slide-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .slide-content .meta {
    font-size: 12px;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .slide-content p {
    display: none;
  }
  
  .slide-actions {
    flex-direction: row;
    gap: 10px;
  }
  
  .slide-actions .btn-primary,
  .slide-actions .btn-secondary {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .slider-nav.prev {
    left: 10px;
  }
  
  .slider-nav.next {
    right: 10px;
  }
  
  /* Section Headers */
  .section-header {
    margin-bottom: 15px;
  }
  
  .section-header h2 {
    font-size: 18px;
  }
  
  .view-all {
    font-size: 13px;
  }
  
  /* Anime Grid */
  .anime-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .anime-card {
    border-radius: 10px;
  }
  
  .anime-card-info {
    padding: 10px;
  }
  
  .anime-card-title {
    font-size: 12px;
    margin-bottom: 5px;
    -webkit-line-clamp: 1;
  }
  
  .anime-card-meta {
    font-size: 10px;
  }
  
  .anime-card-badge {
    padding: 3px 6px;
    font-size: 10px;
    top: 6px;
    right: 6px;
  }
  
  .play-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  /* Anime Details Modal */
  .anime-modal-container {
    border-radius: 0;
    max-height: 100vh;
  }
  
  .anime-header {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .anime-poster {
    display: flex;
    gap: 15px;
  }
  
  .anime-poster img {
    width: 120px;
    height: auto;
    border-radius: 10px;
  }
  
  .anime-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
  }
  
  .action-btn {
    padding: 10px;
    font-size: 16px;
  }
  
  .anime-info h1 {
    font-size: 22px;
  }
  
  .anime-meta span {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .genre-tag {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .anime-description {
    font-size: 14px;
  }
  
  .anime-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .stat-item {
    padding: 12px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .stat-value {
    font-size: 16px;
  }
  
  .anime-tabs {
    padding: 0 15px;
    gap: 0;
  }
  
  .anime-tab {
    padding: 14px 16px;
    font-size: 13px;
  }
  
  .episodes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
  }
  
  .episode-card {
    border-radius: 8px;
  }
  
  .episode-number {
    padding: 4px 8px;
    font-size: 11px;
    top: 6px;
    left: 6px;
  }
  
  .episode-info {
    padding: 10px;
  }
  
  .episode-title {
    font-size: 12px;
  }
  
  .episode-duration {
    font-size: 10px;
  }
  
  /* Video Player */
  .video-player-container {
    width: 100%;
    border-radius: 0;
  }
  
  .video-info {
    padding: 15px;
  }
  
  .video-info h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .video-controls {
    gap: 10px;
  }
  
  .video-control-btn {
    padding: 10px 16px;
    font-size: 13px;
    flex: 1;
    justify-content: center;
  }
  
  /* Modal */
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  
  .modal-container {
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    padding: 20px;
  }
  
  .modal-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  /* Catalog */
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  
  .filters-sidebar.active {
    transform: translateX(0);
  }
  
  .catalog-controls {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  
  .sort-options {
    width: 100%;
  }
  
  .sort-options select {
    flex: 1;
  }
  
  /* Schedule */
  .page-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .schedule-tabs {
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 5px;
  }
  
  .schedule-tab {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .schedule-item {
    padding: 12px;
    gap: 12px;
  }
  
  .schedule-item-poster {
    width: 60px;
    height: 85px;
  }
  
  .schedule-item-title {
    font-size: 14px;
  }
  
  .schedule-item-meta {
    font-size: 12px;
    gap: 10px;
  }
  
  /* Profile */
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .profile-card {
    padding: 20px;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 40px;
  }
  
  .profile-stats-mini {
    gap: 10px;
  }
  
  .profile-content {
    padding: 20px;
  }
  
  .profile-content h2 {
    font-size: 22px;
  }
  
  /* Admin */
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .admin-stat-card {
    padding: 15px;
  }
  
  .admin-stat-card h3 {
    font-size: 28px;
  }
  
  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 5px;
  }
  
  .admin-tab-btn {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .admin-controls {
    flex-direction: column;
  }
  
  .admin-controls input,
  .admin-controls select {
    width: 100%;
  }
  
  /* Footer */
  .footer {
    padding: 30px 0 90px;
  }
  
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 25px;
    text-align: center;
  }
  
  .footer-nav {
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-socials {
    justify-content: center;
  }
  
  /* Comments */
  .comments-section {
    max-width: 100%;
  }
  
  .add-comment {
    padding: 15px;
  }
  
  .comment-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .comment {
    padding: 15px;
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  /* Pagination */
  .pagination {
    gap: 5px;
    flex-wrap: wrap;
  }
  
  .pagination button {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  /* Notifications */
  .notification {
    left: 15px;
    right: 15px;
    top: auto;
    bottom: 80px;
    transform: translateY(100px);
  }
  
  .notification.show {
    transform: translateY(0);
  }
}

/* ============================================
   SMALL MOBILE STYLES (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  /* Prevent horizontal overflow */
  * {
    max-width: 100%;
  }
  
  .container {
    padding: 0 10px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Header */
  .header {
    width: 100% !important;
  }
  
  .header .container {
    padding: 0 10px !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  
  .header-wrapper {
    gap: 8px;
    padding: 8px 0;
    max-width: 100% !important;
    overflow: visible !important;
  }
  
  .mobile-menu-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  
  .logo {
    max-width: calc(100% - 80px);
  }
  
  .logo span {
    font-size: 16px;
  }
  
  .logo i {
    font-size: 20px;
  }
  
  .btn-login {
    padding: 6px 12px;
  }
  
  .user-avatar-btn {
    padding: 4px 8px;
  }
  
  .user-avatar-btn i.fa-user-circle {
    font-size: 22px;
  }
  
  /* Featured Slider */
  .featured-slider {
    height: 200px;
    border-radius: 10px;
  }
  
  .slide-content {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
  
  .slide-content h2 {
    font-size: 16px;
  }
  
  .slide-actions .btn-primary,
  .slide-actions .btn-secondary {
    padding: 8px 12px;
    font-size: 11px;
  }
  
  .slider-nav {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  /* Anime Grid - 2 columns on very small screens */
  .anime-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .anime-card-info {
    padding: 8px;
  }
  
  .anime-card-title {
    font-size: 11px;
  }
  
  .anime-card-meta {
    font-size: 9px;
  }
  
  .anime-card-badge {
    padding: 2px 5px;
    font-size: 9px;
    top: 5px;
    right: 5px;
  }
  
  /* Episodes Grid */
  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
  }
  
  /* Anime Details */
  .anime-poster img {
    width: 100px;
  }
  
  .anime-info h1 {
    font-size: 18px;
  }
  
  .anime-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .stat-item {
    padding: 10px 8px;
  }
  
  .stat-value {
    font-size: 14px;
  }
  
  /* Section Headers */
  .section-header {
    margin-bottom: 12px;
  }
  
  .section-header h2 {
    font-size: 15px;
    gap: 8px;
  }
  
  .view-all {
    font-size: 12px;
  }
  
  /* Schedule */
  .schedule-tabs {
    gap: 6px;
  }
  
  .schedule-tab {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  /* Admin */
  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .admin-stat-card h3 {
    font-size: 24px;
  }
  
  /* Auth */
  .auth-box {
    padding: 25px 15px;
  }
  
  .auth-logo h1 {
    font-size: 22px;
  }
  
  .auth-box h2 {
    font-size: 20px;
  }
  
  /* Footer */
  .footer {
    padding: 25px 0 85px;
  }
  
  .footer .container {
    padding: 0 10px !important;
  }
  
  /* Small mobile - keep vertical layout */
  .footer-top-wrapper {
    display: block !important;
    margin-bottom: 20px !important;
  }
  
  .footer-brand {
    margin-bottom: 20px !important;
  }
  
  .footer-nav-grid {
    gap: 15px !important;
    margin-bottom: 0 !important;
  }
  
  .footer-brand h4 {
    font-size: 16px;
  }
  
  .footer-brand p {
    font-size: 11px;
  }
  
  .footer-nav {
    padding: 0 5px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .footer-nav h4 {
    font-size: 11px;
  }
  
  .footer-nav a {
    display: block !important;
    font-size: 11px !important;
    margin: 0 auto 6px !important;
    padding: 5px 8px !important;
    max-width: 90% !important;
    word-break: break-word !important;
    hyphens: auto !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }
  
  .footer-legal {
    font-size: 9px;
  }
  
  .footer-socials a {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  

}

/* ============================================
   LANDSCAPE MOBILE STYLES
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
  .featured-slider {
    height: 200px;
  }
  

  
  .anime-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .episodes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .anime-card:hover {
    transform: none;
  }
  
  .anime-card:active {
    transform: scale(0.98);
  }
  
  .anime-card-overlay {
    opacity: 0;
  }
  
  .episode-card:hover {
    transform: none;
  }
  
  .episode-card:active {
    transform: scale(0.98);
  }
  
  /* Larger touch targets */
  .nav-link,
  .btn-login,
  .action-btn,
  .episode-item {
    min-height: 44px;
  }
  
  /* Disable text selection on interactive elements */
  button,
  a,
  .anime-card,
  .episode-card {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
}

/* ============================================
   SAFE AREA INSETS (for notched devices)
   ============================================ */


/* ============================================
   DARK MODE SCROLLBAR FOR MOBILE
   ============================================ */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--border-color);
  }
}
