/* public/css/style.css - AnimeXana #A91101 Bordo / Qırmızı Temalı Stil Dosyası */
:root {
  --bg-color: #040405;
  --surface-color: #111111;
  --surface-light: #161616;
  --surface-card: #141414;
  --surface-hover: #1f1f1f;
  --accent-color: #A91101;
  --accent-glow: rgba(169, 17, 1, 0.45);
  --accent-bright: #d91602;
  --accent-dark: #6e0c01;
  --text-color: #ffffff;
  --text-muted: #aaaaaa;
  --text-dim: #777777;
  --border-color: #242424;
  --border-active: #A91101;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --info-color: #3498db;
  --vip-color: #ffd700;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* ELANLAR (ANNOUNCEMENTS) BANNERİ */
#announcement-banner-area {
  width: 100%;
}
.announcement-banner {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  animation: fadeInDown 0.3s ease-out;
}
.announcement-banner.info {
  background: linear-gradient(90deg, #0d2b45, #143e66);
  color: #cbe5ff;
}
.announcement-banner.warning {
  background: linear-gradient(90deg, #4d3300, #664400);
  color: #ffe6b3;
}
.announcement-banner.danger {
  background: linear-gradient(90deg, #590a00, #801002);
  color: #ffd2cc;
}
.announcement-banner.success {
  background: linear-gradient(90deg, #0d381e, #14522c);
  color: #ccffd9;
}
.announcement-close-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  padding: 2px 6px;
  border-radius: 4px;
}
.announcement-close-btn:hover {
  opacity: 1;
  background: rgba(0,0,0,0.2);
}

/* HEADER (Scroll etdikcə yerində qalmır, səhifə ilə gedir) */
header {
  position: relative;
  width: 100%;
  background-color: var(--surface-color);
  border-bottom: 2px solid var(--accent-color);
  padding: 10px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.logo-container:hover {
  transform: scale(1.02);
}

.logo-container img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(169, 17, 1, 0.6));
}

.logo-container h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  user-select: none;
}

.logo-container h1 span {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(169, 17, 1, 0.6);
}

/* SEARCH BAR */
.search-container {
  flex: 0 1 450px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
  font-size: 15px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 11px 40px 11px 40px;
  background-color: var(--surface-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-color);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.search-input-wrapper input:focus {
  border-color: var(--accent-color);
  background-color: #1e1e1e;
  box-shadow: 0 0 12px var(--accent-glow);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  display: none;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: #141414;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-color);
  border-radius: var(--radius-md);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 15px 35px rgba(0,0,0,0.85);
}

.suggestion-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  border-bottom: 1px solid #1f1f1f;
  transition: var(--transition);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #1c1c1c;
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
}

.suggestion-thumb {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.suggestion-info {
  flex: 1;
  overflow: hidden;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  gap: 8px;
}

.suggestion-meta span.rating {
  color: #ffb703;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-item {
  background: none;
  border: none;
  color: #dddddd;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-item:hover {
  color: #ffffff;
  background-color: var(--surface-light);
}

.discord-btn {
  background-color: #5865F2 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
}

.discord-btn:hover {
  background-color: #4752c4 !important;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-bright));
  color: #ffffff !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--accent-glow);
  text-decoration: none;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(169, 17, 1, 0.7);
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #202020;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: #2c2c2c;
  border-color: #444444;
}

.btn-danger {
  background: #c0392b;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-danger:hover {
  background: #e74c3c;
}

/* USER PROFILE DROPDOWN */
.user-menu-wrapper {
  position: relative;
  display: inline-block;
}

.user-avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  overflow: hidden;
  cursor: pointer;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 0 10px var(--accent-glow);
}

.user-avatar-btn:hover {
  transform: scale(1.08);
  border-color: #ff3b30;
}

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

.user-dropdown {
  position: absolute;
  right: 0;
  top: 52px;
  background: #141414;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-color);
  border-radius: var(--radius-md);
  width: 240px;
  display: none;
  flex-direction: column;
  z-index: 2000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.85);
  padding: 8px 0;
  animation: fadeInDown 0.2s ease-out;
}

.user-dropdown-header {
  padding: 10px 16px 12px;
  border-bottom: 1px solid #222222;
  margin-bottom: 6px;
}

.user-dropdown-header .name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-header .uid {
  font-size: 12px;
  color: var(--accent-color);
  font-family: monospace;
  margin-top: 3px;
  font-weight: bold;
}

.user-dropdown button {
  padding: 11px 18px;
  text-align: left;
  background: none;
  border: none;
  color: #cccccc;
  cursor: pointer;
  font-size: 13.5px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.user-dropdown button:hover {
  background: #1e1e1e;
  color: #ffffff;
  padding-left: 22px;
}

.user-dropdown button.admin-opt {
  color: #ff9f43;
  font-weight: 600;
}

.user-dropdown button.admin-opt:hover {
  color: #ffa502;
  background: rgba(255, 159, 67, 0.1);
}

.user-dropdown button.logout-opt {
  color: #ff5252;
  border-top: 1px solid #222222;
  margin-top: 4px;
  padding-top: 12px;
}

.user-dropdown button.logout-opt:hover {
  background: rgba(255, 82, 82, 0.1);
  color: #ff7676;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

/* MAIN VIEWPORT */
main {
  flex: 1;
  padding: 30px 40px 60px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* HERO SECTION */
.hero-banner {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid #282828;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  display: flex;
  align-items: flex-end;
  padding: 45px;
  background-color: #121212;
  background-size: cover;
  background-position: center top;
  transition: var(--transition);
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 8, 8, 0.95) 0%,
    rgba(8, 8, 8, 0.8) 50%,
    rgba(8, 8, 8, 0.3) 100%
  ),
  linear-gradient(
    to top,
    rgba(8, 8, 8, 0.95) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: 0 0 12px var(--accent-glow);
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-meta .badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 600;
}

.hero-meta .rating {
  color: #ffb703;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #dddddd;
  margin-bottom: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.hero-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* SECTION HEADER & TABS */
.section-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--accent-color);
  padding-left: 12px;
}

/* DAVAM ET (CONTINUE WATCHING) BÖLMƏSİ (Tələb 13) */
.continue-watching-wrap {
  margin-bottom: 40px;
  background: #111111;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.continue-card {
  display: flex;
  background: #181818;
  border: 1px solid #282828;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.continue-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(169, 17, 1, 0.3);
}

.continue-thumb {
  width: 85px;
  height: 110px;
  object-fit: cover;
  flex-shrink: 0;
}

.continue-details {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.continue-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-ep-info {
  font-size: 12px;
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 4px;
}

.continue-date {
  font-size: 11px;
  color: #777;
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  color: #ffffff;
  border-color: #555555;
  background: #1c1c1c;
}

.filter-chip.active {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  font-weight: 600;
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* ANIME GRID */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 25px;
}

.anime-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.anime-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 12px 28px rgba(169, 17, 1, 0.35);
}

.anime-card-poster-wrap {
  position: relative;
  width: 100%;
  height: 295px;
  overflow: hidden;
  background: #161616;
}

.anime-card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.anime-card:hover .anime-card-poster {
  transform: scale(1.06);
}

.anime-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffb703;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 183, 3, 0.3);
  display: flex;
  align-items: center;
  gap: 3px;
}

.anime-card-year {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.anime-card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(169, 17, 1, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.play-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 18px rgba(0,0,0,0.8);
  transform: scale(0.8);
  transition: transform 0.3s;
}

.anime-card:hover .play-icon-circle {
  transform: scale(1);
}

.anime-card-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.anime-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anime-card-cat {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ANIME DETAILS PAGE */
.detail-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 35px;
  margin-bottom: 35px;
  display: flex;
  gap: 35px;
  align-items: flex-start;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}

.detail-poster-wrap {
  width: 250px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--accent-color);
  box-shadow: 0 8px 25px var(--accent-glow);
}

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

.detail-info {
  flex: 1;
}

.detail-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.detail-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-badge-pill {
  background: #1e1e1e;
  border: 1px solid #333333;
  color: #dddddd;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.detail-badge-pill.rating {
  background: rgba(255, 183, 3, 0.15);
  border-color: rgba(255, 183, 3, 0.4);
  color: #ffb703;
  font-weight: 700;
}

.detail-desc {
  color: #cccccc;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
  white-space: pre-line;
}

.seasons-section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 35px 0 20px;
  border-left: 4px solid var(--accent-color);
  padding-left: 12px;
}

.season-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  overflow-x: auto;
}

.season-tab-btn {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.season-tab-btn.active {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* EPISODES GRID (Kvadrat kartlar) */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 15px;
}

.episode-card {
  background: #141414;
  border: 1px solid #282828;
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  position: relative;
  overflow: hidden;
}

.episode-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: var(--transition);
}

.episode-card:hover {
  border-color: var(--accent-color);
  background: #1c1c1c;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(169, 17, 1, 0.25);
}

.episode-card:hover::before {
  background: var(--accent-color);
}

.episode-number {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.episode-number span.num-badge {
  background: var(--surface-light);
  border: 1px solid #333333;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent-color);
}

.episode-title {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* VIDEO PLAYER SECTION */
.player-container {
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--accent-color);
  box-shadow: 0 15px 45px rgba(0,0,0,0.9), 0 0 25px rgba(169, 17, 1, 0.2);
  margin-bottom: 25px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-controls-bar {
  background: #111111;
  padding: 18px 24px;
  border-top: 1px solid #222222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.sources-selector {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sources-label {
  font-size: 14px;
  font-weight: 600;
  color: #888888;
  margin-right: 4px;
}

.source-btn {
  background: #1a1a1a;
  color: #ffffff;
  border: 1px solid #333333;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.source-btn:hover {
  border-color: var(--accent-color);
  background: #252525;
}

.source-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-glow);
}

.episode-nav-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-ep-btn {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-bright));
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.nav-ep-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.nav-ep-btn:disabled {
  background: #252525 !important;
  color: #666666 !important;
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

/* ŞƏRHLƏR (COMMENTS) BÖLMƏSİ (Tələb 6 & 7) */
.comments-section {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 35px;
}

.comments-header {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #222;
  padding-bottom: 12px;
}

.comment-form {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
  flex-shrink: 0;
}

.comment-input-area {
  flex: 1;
}

.comment-textarea {
  width: 100%;
  background: #181818;
  border: 1px solid #333;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
  resize: vertical;
  min-height: 85px;
  outline: none;
  margin-bottom: 10px;
}

.comment-textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.comment-form-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.spoiler-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #ff9f43;
  cursor: pointer;
  user-select: none;
}

.spoiler-checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: #ff9f43;
  cursor: pointer;
}

.comment-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: #161616;
  border: 1px solid #242424;
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  position: relative;
  transition: var(--transition);
}

.comment-item.pinned {
  border-color: #ffb703;
  background: #1c1810;
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.15);
}

.comment-content {
  flex: 1;
}

.comment-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-author-name {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author-name .uid-badge {
  font-size: 11px;
  color: var(--accent-color);
  font-family: monospace;
  background: rgba(169, 17, 1, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.pinned-badge-tag {
  background: rgba(255, 183, 3, 0.2);
  color: #ffb703;
  border: 1px solid rgba(255, 183, 3, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comment-date {
  font-size: 12px;
  color: #777;
}

.comment-text {
  font-size: 14px;
  line-height: 1.6;
  color: #dddddd;
  word-break: break-word;
}

/* SPOILER OVERLAY (Tələb 6) */
.spoiler-box {
  background: #251614;
  border: 1px dashed var(--accent-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  color: #ff9999;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.spoiler-box:hover {
  background: #331a17;
  border-color: #ff3333;
}

.spoiler-content {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #332222;
  color: #eee;
  font-weight: normal;
}

.comment-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-act-btn {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.comment-act-btn.delete {
  color: #ff5252;
}
.comment-act-btn.delete:hover {
  background: rgba(255, 82, 82, 0.15);
}

.comment-act-btn.pin {
  color: #ffb703;
}
.comment-act-btn.pin:hover {
  background: rgba(255, 183, 3, 0.15);
}

/* ADMIN PANEL (Tələb 21 arxitekturası) */
.admin-wrapper {
  background: var(--surface-color);
  border: 1px solid var(--accent-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  min-height: 740px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.admin-sidebar {
  width: 280px;
  background: #0a0a0a;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 20px 0;
}

.admin-sidebar-header {
  padding: 0 24px 20px;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 12px;
}

.admin-sidebar-header h3 {
  font-size: 18px;
  color: var(--accent-color);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-sidebar-header p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.admin-tab-btn {
  background: none;
  border: none;
  color: #999999;
  text-align: left;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.admin-tab-btn:hover {
  background: #141414;
  color: #ffffff;
}

.admin-tab-btn.active {
  background: #181818;
  color: #ffffff;
  border-left-color: var(--accent-color);
  font-weight: 700;
}

.admin-tab-btn.active span.icon {
  color: var(--accent-color);
}

.admin-content {
  flex: 1;
  padding: 35px 40px;
  background: #111111;
  overflow-y: auto;
}

.admin-tab-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #222222;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tab-title span.badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-color);
  background: rgba(169, 17, 1, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(169, 17, 1, 0.2);
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #cccccc;
  margin-bottom: 8px;
}

.admin-input, .admin-textarea, .admin-select {
  width: 100%;
  padding: 12px 16px;
  background: #181818;
  border: 1px solid #333333;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
  border-color: var(--accent-color);
  background: #1e1e1e;
  box-shadow: 0 0 10px var(--accent-glow);
}

.admin-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.source-row-box {
  background: #161616;
  border: 1px solid #282828;
  border-radius: var(--radius-sm);
  padding: 15px;
  margin-bottom: 12px;
}

.source-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* PASSWORD FIELD WITH SHOW/HIDE TOGGLE */
.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-wrapper input {
  padding-right: 75px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  background: #252525;
  border: 1px solid #3a3a3a;
  color: #ccc;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.password-toggle-btn:hover {
  color: #fff;
  background: #333;
  border-color: var(--accent-color);
}

/* ADMIN TABLES */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #141414;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #1c1c1c;
  color: var(--accent-color);
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-bottom: 2px solid #282828;
}

.admin-table td {
  padding: 14px 18px;
  font-size: 13.5px;
  border-bottom: 1px solid #222222;
  color: #dddddd;
}

.admin-table tr:hover td {
  background: #181818;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-badge.banned {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.status-badge.staff {
  background: rgba(255, 159, 67, 0.15);
  color: #ff9f43;
  border: 1px solid rgba(255, 159, 67, 0.3);
}

.status-badge.vip {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.status-badge.custom {
  background: rgba(169, 17, 1, 0.2);
  color: #ff4d4d;
  border: 1px solid rgba(169, 17, 1, 0.4);
}

.filter-tabs-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  background: #181818;
  border: 1px solid #282828;
  color: #aaa;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.filter-tab-btn:hover {
  color: #fff;
  background: #222;
}

.filter-tab-btn.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

/* STATİSTİKA BLOKLARI (Tələb 20) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.stat-card {
  background: #161616;
  border: 1px solid #262626;
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid var(--accent-color);
}

.stat-card .label {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.stat-card .value {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

/* MÜRACİƏT (TİCKET) SİSTEMİ (Tələb 15) */
.ticket-chat-box {
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: var(--radius-md);
  padding: 20px;
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 15px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble.user {
  align-self: flex-end;
  background: #1c2738;
  border: 1px solid #283e5c;
  color: #e6f0ff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.staff {
  align-self: flex-start;
  background: #2b1111;
  border: 1px solid var(--accent-color);
  color: #ffdede;
  border-bottom-left-radius: 2px;
}

.chat-bubble .meta {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* LOG VIEWER */
.log-box {
  background: #090909;
  border: 1px solid #282828;
  border-radius: var(--radius-md);
  height: 480px;
  overflow-y: auto;
  padding: 18px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
}

.log-entry {
  padding: 8px 12px;
  border-bottom: 1px dashed #202020;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  line-height: 1.5;
}

.log-time {
  color: var(--accent-color);
  font-weight: 600;
  white-space: nowrap;
}

.log-text {
  color: #cccccc;
}

/* SİYAHILARIM ACCORDION & SIRALAMA (Tələb 17) */
.list-card-box {
  background: #141414;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
}

.list-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: #181818;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #242424;
}

.list-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.list-toggle-arrow {
  font-size: 14px;
  color: var(--accent-color);
  transition: transform 0.25s;
}

.list-name-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-body-content {
  padding: 20px 24px;
}

.list-items-table {
  width: 100%;
  border-collapse: collapse;
}

.list-items-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #1f1f1f;
}

.list-items-table tr:hover td {
  background: #1a1a1a;
}

/* FOOTER OVAL SOSİAL DÜYMƏLƏR (Tələb 18) */
.social-pills-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid #333;
  background: #181818;
}

.social-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.social-pill.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #bc1888;
}

.social-pill.discord {
  background: #5865F2;
  border-color: #5865F2;
}

.social-pill.telegram {
  background: #0088cc;
  border-color: #0088cc;
  opacity: 0.85;
}

.social-pill.facebook {
  background: #1877f2;
  border-color: #1877f2;
  opacity: 0.85;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  background: #141414;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 35px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 30px var(--accent-glow);
  animation: scaleUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #777777;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: #ffffff;
  background: #252525;
}

.auth-tab-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  border-bottom: 1px solid #282828;
  padding-bottom: 12px;
}

.auth-tab-btn {
  background: none;
  border: none;
  color: #777777;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  padding-bottom: 6px;
  position: relative;
  transition: var(--transition);
}

.auth-tab-btn.active {
  color: var(--accent-color);
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

/* TOAST NOTIFICATION */
#toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  background: #181818;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.85);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  min-width: 280px;
  animation: slideInRight 0.3s ease-out;
  transition: var(--transition);
}

.toast-item.success { border-left-color: #2ecc71; }
.toast-item.error { border-left-color: #e74c3c; }
.toast-item.info { border-left-color: #3498db; }
.toast-item.warning { border-left-color: #f39c12; }

/* FOOTER */
footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 35px 40px;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: auto;
}

footer .footer-content {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

footer a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent-color);
}

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* RESPONSIVE */
@media (max-width: 992px) {
  header { padding: 16px 20px; flex-wrap: wrap; }
  .search-container { order: 3; flex: 1 1 100%; margin-top: 10px; }
  main { padding: 25px 20px 50px; }
  .admin-wrapper { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
  .admin-sidebar-nav { display: flex; overflow-x: auto; padding-bottom: 10px; }
  .admin-tab-btn { white-space: nowrap; padding: 12px 18px; border-left: none; border-bottom: 3px solid transparent; }
  .admin-tab-btn.active { border-bottom-color: var(--accent-color); border-left-color: transparent; }
  .detail-card { flex-direction: column; align-items: center; text-align: center; }
  .detail-poster-wrap { width: 220px; }
  .detail-badges { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #141414;
    border-bottom: 2px solid var(--accent-color);
    padding: 20px;
    z-index: 1000;
    gap: 15px;
  }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 28px; }
  .hero-banner { padding: 25px; min-height: 360px; }
  .player-controls-bar { flex-direction: column; align-items: flex-start; }
  .episode-nav-btns { width: 100%; justify-content: space-between; }
  .nav-ep-btn { flex: 1; justify-content: center; }
  footer .footer-content { flex-direction: column; text-align: center; }
}

.player-fallback { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }
.player-fallback a { color: var(--accent-bright); text-decoration: underline; }

/* ============================================================
   MOBİL UYĞUNLUQ (telefonlar və planşetlər)
   ============================================================ */
html { -webkit-text-size-adjust: 100%; }
img, iframe, video { max-width: 100%; }
.video-wrapper iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 992px) {
  .logo-container img { width: 50px; height: 50px; }
}

@media (max-width: 768px) {
  /* Başlıq: yığcam, logo hələ də aydın görünür */
  header { padding: 8px 14px; gap: 8px; align-items: center; }
  header .header-left { flex: 1 1 auto; min-width: 0; }
  .logo-container { gap: 8px; }
  .logo-container img { width: 48px; height: 48px; }
  .logo-container h1 { font-size: 19px; letter-spacing: 1px; white-space: nowrap; }
  .search-container { order: 3; flex: 1 1 100%; margin-top: 0; }
  .mobile-toggle { padding: 8px 12px; }

  /* Açılan mobil menyu: tam enli, toxunuş üçün rahat düymələr */
  .nav-links.mobile-open {
    align-items: stretch;
    padding: 12px 14px 16px;
    gap: 8px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6);
  }
  .nav-links.mobile-open .nav-item,
  .nav-links.mobile-open .discord-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 14px;
    background: var(--surface-light);
    border-radius: var(--radius-md);
  }
  .nav-links.mobile-open #auth-nav-area { display: flex; justify-content: center; padding-top: 4px; }

  main { padding: 18px 14px 40px; }

  /* Anime kartları: telefonda 2 sütun */
  .anime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .anime-card-info { padding: 10px 10px 12px; }
  .anime-card-title { font-size: 14px; }
  .anime-card-cat { font-size: 12px; }

  .hero-banner { padding: 20px 16px; min-height: 300px; }
  .hero-title { font-size: 26px; }
  .hero-banner .btn-primary, .hero-banner .btn-secondary { padding: 11px 14px; font-size: 14px; }

  /* Bölüm izləmə səhifəsi */
  .player-controls-bar { gap: 10px; }
  .episode-nav-btns { display: flex; gap: 8px; width: 100%; }
  .nav-ep-btn { flex: 1 1 0; min-width: 0; padding: 11px 8px; font-size: 13px; white-space: normal; line-height: 1.2; }
  .player-fallback { font-size: 12.5px; }

  /* Modallar ekrana sığsın */
  .modal-card { width: calc(100vw - 24px); max-width: 100%; max-height: 90vh; overflow-y: auto; }

  /* Admin panel */
  .admin-wrapper { border-radius: var(--radius-md); }
  .admin-content, .admin-main { padding: 16px 14px; }
  .admin-wrapper table { display: block; overflow-x: auto; white-space: nowrap; }
  .admin-input, .admin-wrapper input, .admin-wrapper select, .admin-wrapper textarea { font-size: 16px; } /* iOS-da avto-böyütməni önləyir */
  .source-row { flex-wrap: wrap; }
  .source-row .admin-input { flex: 1 1 100% !important; }

  footer { padding: 22px 14px; }
}

@media (max-width: 380px) {
  .logo-container h1 { font-size: 17px; }
  .logo-container img { width: 44px; height: 44px; }
  .anime-grid { gap: 10px; }
  .hero-title { font-size: 23px; }
}
.player-fallback { padding: 0 12px 8px; }
@media (max-width: 768px) {
  .modal-card { padding: 24px 18px; }
  .modal-overlay { padding: 12px; }
}

/* ============================================================
   YENİ: Davam et, izlənilmiş bölümlər, video bildirişi, qısayollar
   ============================================================ */
.link-btn { background: none; border: none; color: var(--accent-bright); cursor: pointer; font-size: 13.5px; text-decoration: underline; padding: 4px 6px; }
.link-btn:hover { color: #ff5a44; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.continue-card { flex-direction: column; cursor: default; position: relative; }
.continue-link { display: flex; text-decoration: none; color: inherit; min-width: 0; flex: 1; cursor: pointer; }
.continue-ep-title { font-size: 12px; color: #aaa; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid #262626; background: #141414; }
.continue-next { color: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; background: var(--accent-color); padding: 5px 12px; border-radius: 6px; transition: var(--transition); }
.continue-next:hover { background: var(--accent-bright); }
.continue-done { color: var(--success-color); font-size: 12.5px; font-weight: 600; }
.continue-remove { background: none; border: 1px solid #333; color: #888; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1; }
.continue-remove:hover { color: #fff; border-color: var(--danger-color); background: rgba(231, 76, 60, 0.15); }

.episode-card.watched { opacity: 0.72; }
.episode-card.watched .num-badge { color: var(--success-color); }
.episode-card.watched:hover { opacity: 1; }
.watched-mark { color: var(--success-color); font-size: 14px; font-weight: 700; }

.report-btn { background: none; border: 1px solid #3a3a3a; color: #ccc; border-radius: 6px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; margin-left: 8px; transition: var(--transition); }
.report-btn:hover { border-color: var(--accent-color); color: #fff; }
.shortcut-hint { margin-top: 14px; font-size: 12.5px; color: var(--text-dim); }
.shortcut-hint kbd { background: #1c1c1c; border: 1px solid #333; border-bottom-width: 2px; border-radius: 4px; padding: 1px 7px; font-size: 12px; color: #ddd; }
@media (hover: none) { .shortcut-hint { display: none; } }

select.admin-input { cursor: pointer; }
textarea.admin-input { resize: vertical; font-family: inherit; }

/* Admin: video bildirişləri */
.tab-count-badge { margin-left: auto; background: var(--accent-color); color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; }
.report-card { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; background: #141414; border: 1px solid #282828; border-left: 3px solid var(--accent-color); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; flex-wrap: wrap; }
.report-card.resolved { border-left-color: var(--success-color); opacity: 0.7; }
.report-main { flex: 1 1 260px; min-width: 0; }
.report-title { font-weight: 700; font-size: 15.5px; color: #fff; }
.report-ep { color: var(--accent-bright); font-size: 13px; margin-left: 6px; }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.report-chip { background: #1e1e1e; border: 1px solid #2c2c2c; border-radius: 12px; padding: 2px 10px; font-size: 12px; color: #ccc; }
.report-chip.count { border-color: var(--accent-color); color: #ffb3a8; }
.report-time { font-size: 12px; color: #777; }
.report-notes { margin: 10px 0 0 18px; color: #aaa; font-size: 13px; line-height: 1.5; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.report-actions .btn-primary, .report-actions .btn-secondary, .report-actions .btn-danger { padding: 8px 14px; font-size: 13px; }

@media (max-width: 768px) {
  .continue-watching-wrap { padding: 16px 14px; }
  .continue-grid { grid-template-columns: 1fr; gap: 12px; }
  .report-actions { width: 100%; }
  .report-actions > * { flex: 1 1 auto; justify-content: center; text-align: center; }
  .report-btn { margin: 8px 0 0; display: inline-block; }
}

/* Telefonda profil işarəsi başlıqda, hamburgerin yanında */
.auth-nav-slot { display: none; }
@media (max-width: 768px) {
  .auth-nav-slot { display: flex; align-items: center; margin-left: auto; margin-right: 4px; flex: 0 0 auto; }
  .auth-nav-slot #auth-nav-area { display: flex; align-items: center; padding: 0; }
  .auth-nav-slot .user-avatar-btn { width: 42px; height: 42px; }
  .auth-nav-slot .user-dropdown { width: min(270px, calc(100vw - 24px)); max-height: calc(100vh - 110px); overflow-y: auto; right: -6px; }
  .auth-nav-slot .btn-primary { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .auth-nav-slot .btn-primary span { display: none; }
  header .header-left { flex: 1 1 0; }
}

/* Pleyerin altındakı kömək bloku */
.player-fallback { padding: 12px 16px 6px; }
.player-fallback-text { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.player-fallback-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.player-fallback-actions .btn-secondary { padding: 9px 16px; font-size: 13.5px; text-decoration: none; }
.player-fallback-actions .report-btn { margin: 0; padding: 9px 14px; font-size: 13.5px; }
@media (max-width: 768px) {
  .player-fallback-actions > * { flex: 1 1 100%; text-align: center; justify-content: center; }
  .player-container { border-radius: var(--radius-md); }
  .video-wrapper { min-height: 200px; }
}
.player-fallback a.btn-secondary { color: #fff; text-decoration: none; }

/* ============================================================
   Çevirmən (fansub) seçimi, yükləyən məlumatı, bölmə keçidləri
   ============================================================ */
#source-selectors { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-width: 0; }
.fansub-selector { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fansub-btn { background: #1a1a1a; border: 1px solid #333; color: #ddd; border-radius: 20px; padding: 7px 14px; font-size: 13.5px; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; font-family: inherit; }
.fansub-btn:hover { border-color: var(--accent-color); color: #fff; }
.fansub-btn.active { background: rgba(169, 17, 1, 0.22); border-color: var(--accent-color); color: #fff; font-weight: 600; }
.fansub-btn .count { background: #2a2a2a; border-radius: 10px; padding: 0 7px; font-size: 11.5px; color: #bbb; }
.fansub-btn.active .count { background: var(--accent-color); color: #fff; }
.upload-info { font-size: 12.5px; color: var(--text-muted); }
.upload-info strong { color: #ddd; }
.watch-tabs { display: flex; gap: 10px; margin: 6px 0 4px; flex-wrap: wrap; }
.watch-tabs button { flex: 1 1 160px; background: #141414; border: 1px solid #2a2a2a; color: #ddd; border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: var(--transition); }
.watch-tabs button:hover { border-color: var(--accent-color); color: #fff; }
.scroll-target, .comments-section { scroll-margin-top: 110px; }
.video-wrapper:fullscreen, .video-wrapper:-webkit-full-screen { padding-bottom: 0 !important; height: 100% !important; width: 100% !important; background: #000; }
.source-uploader { font-size: 12px; color: #888; margin: 6px 0 0 2px; }
.source-uploader strong { color: #bbb; }
button:focus-visible, a:focus-visible, .episode-card:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }

/* Aktiv cihazlar */
.vip-until-box { background: linear-gradient(90deg, rgba(255, 215, 0, 0.10), transparent); border: 1px solid rgba(255, 215, 0, 0.35); border-radius: 10px; padding: 12px 16px; margin-bottom: 22px; font-size: 14px; color: #f3e3a0; }
.devices-card { border-top: 1px solid #282828; padding-top: 24px; margin-bottom: 28px; }
.devices-title { font-size: 17px; font-weight: 700; color: #fff; }
.devices-sub { font-size: 13px; color: var(--text-muted); margin: 4px 0 14px; }
.devices-loading { color: #777; font-size: 13.5px; padding: 14px 0; }
.device-item { display: flex; align-items: center; gap: 14px; background: #141414; border: 1px solid #262626; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.device-item.current { border-color: rgba(46, 204, 113, 0.45); }
.device-icon { font-size: 26px; flex: 0 0 auto; }
.device-info { flex: 1 1 auto; min-width: 0; }
.device-name { font-weight: 700; font-size: 14.5px; color: #fff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.device-badge { background: rgba(46, 204, 113, 0.18); color: #2ecc71; font-size: 11px; border-radius: 10px; padding: 1px 8px; font-weight: 600; }
.device-meta { font-size: 12.5px; color: #999; margin-top: 3px; line-height: 1.5; }
.device-ip { color: #666; }
.device-close { flex: 0 0 auto; padding: 8px 12px; font-size: 12.5px; }
.devices-note { font-size: 12px; color: #666; margin-top: 12px; }
@media (max-width: 600px) { .device-item { flex-wrap: wrap; } .device-close { width: 100%; } }

/* Admin: VIP qeydləri */
.vip-form { background: #141414; border: 1px solid #282828; border-left: 3px solid #ffd700; border-radius: 10px; padding: 18px 20px; margin-bottom: 24px; }
.vip-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.vip-hint { font-size: 12.5px; margin-top: 5px; min-height: 16px; }
.vip-quick { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.vip-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vip-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip-btn { background: #1a1a1a; border: 1px solid #333; color: #ccc; border-radius: 18px; padding: 6px 14px; font-size: 13px; cursor: pointer; font-family: inherit; }
.chip-btn.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.vip-search { max-width: 260px; }
.vip-card { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; background: #141414; border: 1px solid #282828; border-left: 3px solid #ffd700; border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; flex-wrap: wrap; }
.vip-card.expired, .vip-card.cancelled { border-left-color: #555; opacity: 0.72; }
.vip-main { flex: 1 1 280px; min-width: 0; }
.vip-user { font-weight: 700; font-size: 15.5px; color: #fff; }
.vip-id { font-family: monospace; font-size: 12px; color: #888; margin-left: 8px; font-weight: 400; }
.vip-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.vip-note { font-size: 13px; color: #aaa; margin-top: 8px; }
.vip-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vip-actions .btn-secondary, .vip-actions .btn-danger { padding: 8px 12px; font-size: 13px; }
.vip-chip { border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.vip-chip.ok { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.vip-chip.warn { background: rgba(243, 156, 18, 0.18); color: #f5b041; }
.vip-chip.expired { background: #222; color: #999; }
.vip-chip.cancelled { background: rgba(231, 76, 60, 0.15); color: #ff8a7a; }
@media (max-width: 768px) {
  .vip-actions { width: 100%; } .vip-actions > * { flex: 1 1 auto; }
  .vip-search { max-width: none; width: 100%; }
  .fansub-btn { padding: 8px 12px; }
  #source-selectors { width: 100%; }
}

/* ============================================================
   v6: bildirişlər, İzləyirəm, reytinq, VIP kilid, təqvim, filtr, şərh cavabları
   ============================================================ */
#auth-nav-area { display: flex; align-items: center; gap: 10px; }

/* Zil və bildiriş paneli */
.notif-wrapper { position: relative; }
.bell-btn { position: relative; background: #1a1a1a; border: 1px solid #333; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.bell-btn:hover { border-color: var(--accent-color); }
.bell-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent-color); color: #fff; font-size: 11px; font-weight: 700; align-items: center; justify-content: center; border: 2px solid #111; }
.notif-panel { display: none; position: absolute; right: -6px; top: 52px; width: min(360px, calc(100vw - 24px)); background: #141414; border: 1px solid #2a2a2a; border-top: 3px solid var(--accent-color); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85); z-index: 3000; overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #262626; font-size: 14px; }
.notif-list { max-height: min(420px, 60vh); overflow-y: auto; }
.notif-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: transparent; border: none; border-bottom: 1px solid #202020; padding: 12px 14px; color: #ddd; cursor: pointer; font-family: inherit; position: relative; }
.notif-item:hover { background: #1b1b1b; }
.notif-item.unread { background: rgba(169, 17, 1, 0.08); }
.notif-icon { font-size: 20px; flex: 0 0 auto; }
.notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.notif-title { font-weight: 700; font-size: 13.5px; color: #fff; }
.notif-text { font-size: 12.5px; color: #aaa; line-height: 1.4; }
.notif-time { font-size: 11.5px; color: #777; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-bright); flex: 0 0 auto; margin-top: 6px; }
.notif-empty { padding: 28px 16px; text-align: center; color: #888; font-size: 13.5px; line-height: 1.6; }

/* İzləyirəm */
.follow-btn.on { background: rgba(46, 204, 113, 0.14); border-color: rgba(46, 204, 113, 0.5); color: #2ecc71; }
.follow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.follow-card { display: flex; gap: 14px; background: #141414; border: 1px solid #262626; border-radius: 12px; padding: 12px; }
.follow-poster { position: relative; flex: 0 0 96px; }
.follow-poster img { width: 96px; height: 136px; object-fit: cover; border-radius: 8px; display: block; }
.follow-new { position: absolute; top: 6px; left: 6px; background: var(--accent-color); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.follow-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.follow-title { color: #fff; font-weight: 700; font-size: 15.5px; text-decoration: none; }
.follow-title:hover { color: var(--accent-bright); }
.follow-meta { font-size: 12.5px; color: #999; }
.follow-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.follow-actions .btn-primary, .follow-actions .btn-secondary { padding: 8px 14px; font-size: 13px; text-decoration: none; }

/* Reytinq */
.rating-box { background: #141414; border: 1px solid #262626; border-radius: 10px; padding: 14px 16px; margin: 14px 0; max-width: 560px; }
.rating-summary { font-size: 15px; color: #ddd; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.rating-summary strong { font-size: 24px; color: #ffd54a; }
.rating-of, .rating-count { color: #888; font-size: 13px; }
.rating-chips { display: flex; gap: 5px; flex-wrap: wrap; margin: 10px 0 6px; }
.rate-chip { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #333; background: #1a1a1a; color: #ccc; cursor: pointer; font-weight: 700; font-family: inherit; transition: var(--transition); }
.rate-chip:hover, .rate-chip.on { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.rating-mine { font-size: 12.5px; color: #888; }
.translators-line { font-size: 13px; color: #aaa; margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.translator-chip { background: #1c1c1c; border: 1px solid #2c2c2c; border-radius: 12px; padding: 2px 10px; color: #ddd; font-size: 12.5px; }

/* VIP kilid */
.vip-lock { height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; background: radial-gradient(circle at 50% 30%, rgba(255, 215, 0, 0.10), transparent 60%), #0d0d0d; color: #ddd; position: absolute; inset: 0; }
.vip-lock-icon { font-size: 38px; margin-bottom: 4px; }
.vip-lock h3 { font-size: 19px; color: #ffd54a; margin-bottom: 6px; }
.vip-lock p { font-size: 14px; line-height: 1.6; color: #bbb; margin-bottom: 14px; }
.vip-lock-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.episode-card.locked { border-color: rgba(255, 215, 0, 0.3); }
.episode-card.locked .num-badge { color: #ffd54a; }

/* Təqvim */
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.schedule-day { background: #141414; border: 1px solid #262626; border-radius: 12px; padding: 12px; }
.schedule-day.today { border-color: var(--accent-color); box-shadow: 0 0 0 1px var(--accent-color), 0 0 24px rgba(169, 17, 1, 0.2); }
.schedule-day-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; padding: 4px 4px 10px; }
.today-tag { background: var(--accent-color); color: #fff; font-size: 11px; border-radius: 8px; padding: 1px 8px; }
.schedule-count { margin-left: auto; color: #777; font-size: 12px; font-weight: 400; }
.schedule-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; text-decoration: none; color: inherit; transition: var(--transition); }
.schedule-item:hover { background: #1c1c1c; }
.schedule-item img { width: 44px; height: 62px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.schedule-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.schedule-title { color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.schedule-meta { color: #888; font-size: 12px; }
.schedule-meta .fresh { color: #2ecc71; font-weight: 600; }
.schedule-empty { color: #555; text-align: center; padding: 14px 0; }

/* Filtr paneli və ən yüksək reytinqlilər */
.filter-bar { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter-bar .category-filters { flex: 1 1 360px; }
.filter-selects { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-selects label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #888; }
.filter-selects select { background: #1a1a1a; border: 1px solid #333; color: #fff; border-radius: 8px; padding: 8px 10px; font-family: inherit; font-size: 13.5px; min-width: 130px; }
.top-rated-wrap { margin: 8px 0 30px; }
.top-rated-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.top-card { position: relative; flex: 0 0 140px; scroll-snap-align: start; text-decoration: none; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.top-card img { width: 140px; height: 200px; object-fit: cover; border-radius: 10px; border: 1px solid #2a2a2a; }
.top-rank { position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-color); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.top-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.top-score { font-size: 12.5px; color: #ffd54a; }
.top-score small { color: #888; }

/* Şərhlər: bəyənmə, cavab, şikayət */
.comment-footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.cmt-btn { background: transparent; border: 1px solid transparent; color: #999; font-size: 12.5px; padding: 4px 9px; border-radius: 14px; cursor: pointer; font-family: inherit; transition: var(--transition); }
.cmt-btn:hover { background: #1c1c1c; color: #fff; }
.cmt-btn.like.active { color: #4aa3ff; background: rgba(74, 163, 255, 0.12); }
.cmt-btn.danger:hover { color: #ff6b5a; }
.replies { margin-top: 12px; padding-left: 14px; border-left: 2px solid #262626; display: flex; flex-direction: column; gap: 4px; }
.comment-item.reply { padding: 10px 0 0; margin-bottom: 0; background: transparent; border: none; }
.comment-item.reply .comment-avatar { width: 30px; height: 30px; }
.reply-box { margin-top: 10px; }
.comment-item.flash { animation: cmtflash 2.4s ease-out 1; }
@keyframes cmtflash { 0%, 40% { background: rgba(169, 17, 1, 0.25); } 100% { background: transparent; } }

@media (max-width: 768px) {
  .auth-nav-slot .notif-panel { position: fixed; left: 12px; right: 12px; top: 74px; width: auto; }
  .auth-nav-slot .bell-btn { width: 40px; height: 40px; }
  .follow-grid { grid-template-columns: 1fr; }
  .filter-selects { width: 100%; } .filter-selects label { flex: 1 1 140px; } .filter-selects select { width: 100%; }
  .schedule-grid { grid-template-columns: 1fr; }
  .top-card { flex-basis: 120px; } .top-card img { width: 120px; height: 172px; }
  .replies { padding-left: 10px; }
}

/* Bölümün çıxış tarixi */
.episode-date { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; }
.watch-release { font-size: 13px; color: var(--text-muted); margin: -6px 0 14px; }
.watch-release strong { color: #ddd; font-weight: 600; }

.legal-note { margin-top: 14px; font-size: 12px; color: var(--text-dim); line-height: 1.5; text-align: center; }
.legal-note a { color: var(--text-muted); text-decoration: underline; }

/* ============================================================
   v6.4: təmiz izləmə səhifəsi, kiçik ox, SVG ikonlar
   ============================================================ */
.ax-svg { flex: 0 0 auto; display: block; }
.ax-ic { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.2em; background-color: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; flex: 0 0 auto; }
.ic-episodes { -webkit-mask-image: url('/img/ic-episodes.png'); mask-image: url('/img/ic-episodes.png'); }
.ic-comments { -webkit-mask-image: url('/img/ic-comments.png'); mask-image: url('/img/ic-comments.png'); }
.count-pill { background: #232323; border-radius: 10px; padding: 1px 9px; font-size: 12.5px; color: #bbb; font-weight: 600; margin-left: 4px; }

/* Başlıqda kiçik geri oxu */
.header-left { display: flex; align-items: center; gap: 4px; }
.back-arrow { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #9a9a9a; transition: var(--transition); flex: 0 0 auto; }
.back-arrow:hover { color: #fff; background: #1c1c1c; }

/* Başlıq və pleyer */
.watch-title { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 4px 0 14px; color: #fff; }
.watch-title-ep { color: var(--accent-bright); }
.player-container { border: 1px solid #232323; box-shadow: none; background: #0f0f0f; overflow: hidden; }
.player-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 16px; border-top: 1px solid #1d1d1d; }
.player-info-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1 1 220px; min-width: 0; }
.anime-link { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 600; font-size: 15.5px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; min-width: 0; }
.anime-link span { overflow: hidden; text-overflow: ellipsis; }
.anime-link:hover { color: var(--accent-bright); text-decoration-color: var(--accent-bright); }
.watch-release { font-size: 12.5px; color: var(--text-dim); margin: 0; }
.player-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.actions-sep { width: 1px; height: 20px; background: #2a2a2a; margin: 0 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #a8a8a8; cursor: pointer; transition: var(--transition); font-family: inherit; padding: 0; text-decoration: none; }
.icon-btn:hover { background: #1c1c1c; color: #fff; }
.icon-btn.follow-btn.on { color: #2ecc71; background: rgba(46, 204, 113, 0.12); }
.icon-btn.follow-btn.on svg { fill: currentColor; }
.report-btn.icon-btn { margin: 0; border: 1px solid transparent; }

.player-controls-bar { border-top: 1px solid #1d1d1d; padding: 12px 16px; background: transparent; gap: 12px 18px; }
.fansub-btn, .source-btn { background: #181818; border: 1px solid #2a2a2a; color: #cfcfcf; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.fansub-btn.active, .source-btn.active { background: rgba(169, 17, 1, 0.2); border-color: var(--accent-color); color: #fff; box-shadow: none; }
.sources-label { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.nav-ep-btn { display: inline-flex; align-items: center; gap: 4px; background: #181818; border: 1px solid #2a2a2a; color: #ddd; border-radius: 8px; padding: 7px 12px; font-size: 13px; }
.nav-ep-btn:disabled { opacity: 0.35; }
.nav-ep-btn:not(:disabled):hover { border-color: var(--accent-color); color: #fff; }

/* Bölümlər / Şərhlər keçid düymələri */
.watch-tabs { display: flex; gap: 8px; margin: 14px 0 6px; }
.watch-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: 1 1 0; background: #121212; border: 1px solid #232323; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: #d6d6d6; }
.watch-tabs button:hover { border-color: var(--accent-color); color: #fff; }
.watch-tabs .ax-ic { font-size: 18px; }
.watch-tabs em { font-style: normal; background: #232323; border-radius: 10px; padding: 0 8px; font-size: 12px; color: #aaa; }
.section-title .ax-ic { margin-right: 6px; font-size: 20px; vertical-align: -0.15em; }
.comments-header .ax-ic { font-size: 20px; margin-right: 4px; }

@media (max-width: 768px) {
  .watch-title { font-size: 18px; }
  .player-info { padding: 10px 12px; }
  .player-controls-bar { padding: 10px 12px; }
  .player-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
  .anime-link { font-size: 14.5px; }
  .watch-tabs button { padding: 11px 10px; }
}

.nav-ep-btn:not(:disabled) { box-shadow: none; }
.nav-ep-btn:not(:disabled):hover { background: #1d1d1d; }
.upload-info { color: var(--text-dim); }

/* Telefonda başlıq: ox + logo + zil + profil + menyu sığsın */
@media (max-width: 768px) {
  .header-left { min-width: 0; gap: 2px; }
  .back-arrow { width: 32px; height: 32px; }
  .header-left .logo-container { min-width: 0; gap: 6px; }
  .header-left .logo-container img { width: 40px; height: 40px; }
  .header-left .logo-container h1 { font-size: 16.5px; letter-spacing: 0.4px; overflow: hidden; }
}
@media (max-width: 380px) {
  .header-left .logo-container h1 { font-size: 14.5px; }
  .header-left .logo-container img { width: 36px; height: 36px; }
}

/* ============================================================
   v6.5: emoji əvəzinə ikonlar (SVG + sizin göndərdiyiniz PNG ikonlar)
   ============================================================ */
.ic-list { -webkit-mask-image: url('/img/ic-list.png'); mask-image: url('/img/ic-list.png'); }
.ic-logout { -webkit-mask-image: url('/img/ic-logout.png'); mask-image: url('/img/ic-logout.png'); }
.ic-bell { -webkit-mask-image: url('/img/ic-bell.png'); mask-image: url('/img/ic-bell.png'); }
.ic-heart { -webkit-mask-image: url('/img/ic-heart.png'); mask-image: url('/img/ic-heart.png'); }

/* Stroke SVG ikonlar (emojilərin yerinə) */
.ax-i { display: inline-flex; width: 1.1em; height: 1.1em; vertical-align: -0.2em; flex: 0 0 auto; }
.ax-i svg { width: 100%; height: 100%; display: block; }
.ax-i[data-i="star"] { color: #f5c518; }
.ax-i[data-i="gem"] { color: #7fd4ff; }
.ax-i[data-i="crown"] { color: #f5c518; }
.ax-i[data-i="dot"] { color: #2ecc71; }
.ax-i[data-i="alert"] { color: #f5b041; }
.ax-i[data-i="checkc"] { color: #2ecc71; }
.ax-i[data-i="pin"] { color: #ff8a7a; }
.ax-i[data-i="flag"] { color: inherit; }

/* Zil: kontur (sakit) / dolu (oxunmamış bildiriş var) */
.bell-btn { font-size: 20px; }
.bell-btn .ax-ic { color: #f2c200; width: 22px; height: 22px; }
.bell-btn.has-unread .ax-ic { -webkit-mask-image: url('/img/ic-bell-fill.png'); mask-image: url('/img/ic-bell-fill.png'); }
.bell-btn:hover .ax-ic { color: #ffd84d; }

/* İzləyirəm: ürək (kontur -> dolu qırmızı) */
.follow-btn .ax-ic { color: #b5b5b5; width: 1.25em; height: 1.25em; }
.follow-btn:hover .ax-ic { color: #ff5a5f; }
.follow-btn.on .ax-ic { color: #ff3b3b; -webkit-mask-image: url('/img/ic-heart-fill.png'); mask-image: url('/img/ic-heart-fill.png'); }
.icon-btn.follow-btn.on { color: #ff3b3b; background: rgba(255, 59, 59, 0.10); }
.btn-secondary.follow-btn.on { background: rgba(255, 59, 59, 0.10); border-color: rgba(255, 59, 59, 0.45); color: #ff8a8a; }

/* Profil menyusu ikonları */
.user-dropdown button .ax-ic { width: 18px; height: 18px; color: #9a9a9a; }
.user-dropdown button:hover .ax-ic { color: #fff; }
.user-dropdown button.logout-opt .ax-ic { color: #ff7b6b; }
.user-dropdown button span { display: inline-flex; align-items: center; }

/* ============================================================
   AnimeXana v7.0 — yeni komponentlər
   ============================================================ */

/* Discord ikonu (yüklənmiş şəkil)
   Şəkil şəffaf blurple loqodur: tünd fonlarda görünür, blurple düymənin üstündə isə
   ağ rəngə çevrilir ki, itməsin. */
.discord-ico { width: 17px; height: 17px; object-fit: contain; display: inline-block; vertical-align: -3px; flex: none; }
.social-pill.discord .discord-ico,
.nav-item.discord-btn .discord-ico { filter: brightness(0) invert(1); }
.social-pill.discord .discord-ico { width: 18px; height: 18px; }
.nav-item.discord-btn:hover .discord-ico { transform: scale(1.06); }

/* ---------- Trend animelər — kinematik hero ---------- */
.hero-carousel {
  --hero-pad: max(24px, calc((100vw - 1440px) / 2 + 40px));
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 46px;
  background: #060606;
  isolation: isolate;
}
.hero-track { position: relative; height: clamp(520px, 74vh, 740px); overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .8s ease; display: flex; align-items: flex-end; overflow: hidden;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-art {
  position: absolute; inset: 0; background-size: cover; background-position: center 22%;
  transform: scale(1.02); will-change: transform;
}
.hero-slide.active .hero-art { animation: heroPan 9s ease-out both; }
.hero-slide-shade {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(4,4,4,.97) 0%, rgba(4,4,4,.9) 30%, rgba(4,4,4,.55) 58%, rgba(4,4,4,.08) 100%),
    linear-gradient(0deg, #080808 0%, rgba(8,8,8,.8) 16%, rgba(8,8,8,0) 55%),
    linear-gradient(180deg, rgba(6,6,6,.9) 0%, rgba(6,6,6,0) 26%);
}
.hero-slide-glow {
  position: absolute; z-index: 2; left: 8%; bottom: -28%; width: 62%; height: 70%;
  background: radial-gradient(closest-side, rgba(169,17,1,.42), transparent 72%);
  filter: blur(30px); pointer-events: none;
}
.hero-slide .hero-content {
  position: relative; z-index: 3; width: min(900px, 100%);
  padding: 0 24px clamp(76px, 12vh, 112px) var(--hero-pad);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.72); margin-bottom: 16px;
}
.hero-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ff3b1f;
  box-shadow: 0 0 0 0 rgba(255,59,31,.65); animation: heroPulse 2.4s ease-out infinite;
}
.hero-eyebrow-num {
  letter-spacing: .12em; color: rgba(255,255,255,.42); font-weight: 600;
  padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(255,255,255,.18);
}
.hero-title {
  font-size: clamp(34px, 4.4vw, 66px); font-weight: 900; line-height: 1.02;
  letter-spacing: -.025em; color: #fff; margin-bottom: 18px;
  text-shadow: 0 10px 40px rgba(0,0,0,.65);
}
.hero-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: rgba(255,255,255,.78); margin-bottom: 16px;
  font-weight: 600;
}
.hero-rating { display: inline-flex; align-items: center; gap: 6px; color: #ffd166; font-weight: 800; }
.hero-star { font-size: 14px; }
.hero-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.32); }
.hero-status { display: inline-flex; align-items: center; gap: 7px; }
.hero-status i { width: 7px; height: 7px; border-radius: 50%; background: #38d39f; box-shadow: 0 0 8px rgba(56,211,159,.8); }
.hero-status.completed i { background: #7dd3fc; box-shadow: 0 0 8px rgba(125,211,252,.7); }
.hero-status.upcoming i { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.7); }
.hero-status.hiatus i { background: #f87171; box-shadow: 0 0 8px rgba(248,113,113,.7); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hero-tags span {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #eaeaea; font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
.hero-desc {
  font-size: 15px; line-height: 1.7; color: rgba(235,235,235,.82);
  max-width: 620px; margin-bottom: 30px; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 14.5px; font-weight: 700; padding: 14px 28px; border-radius: 8px;
  transition: var(--transition); border: 1px solid transparent; white-space: nowrap;
}
.hero-btn-play { background: #fff; color: #0a0a0a; box-shadow: 0 14px 34px -14px rgba(0,0,0,.9); }
.hero-btn-play:hover { background: #ff3b1f; color: #fff; transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(255,59,31,.6); }
.hero-play-ico { font-size: 11px; transform: translateX(1px); }
.hero-btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(10px); }
.hero-btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }

.hero-ui { position: absolute; inset: auto 0 0 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--hero-pad) 26px; pointer-events: none; }
.hero-dots { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.hero-dot {
  position: relative; width: 26px; height: 16px; padding: 0; border: 0; background: transparent;
  cursor: pointer; transition: width .4s ease;
}
.hero-dot::before,
.hero-dot-fill {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; margin-top: -1.5px;
  height: 3px; border-radius: 2px;
}
.hero-dot::before { background: rgba(255,255,255,.24); transition: background .25s; }
.hero-dot:hover::before { background: rgba(255,255,255,.5); }
.hero-dot-fill { background: #ff3b1f; transform: scaleX(0); transform-origin: left center; box-shadow: 0 0 10px rgba(255,59,31,.7); }
.hero-dot.active { width: 58px; }
.hero-dot.active .hero-dot-fill { animation: heroFill 6.5s linear forwards; }
.hero-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.hero-hint span { font-size: 14px; animation: heroNudge 2.2s ease-in-out infinite; }

.hero-slide.active .hero-eyebrow { animation: heroRise .6s .05s both; }
.hero-slide.active .hero-title { animation: heroRise .7s .12s both; }
.hero-slide.active .hero-meta { animation: heroRise .7s .2s both; }
.hero-slide.active .hero-tags { animation: heroRise .7s .26s both; }
.hero-slide.active .hero-desc { animation: heroRise .7s .32s both; }
.hero-slide.active .hero-actions { animation: heroRise .7s .4s both; }

@keyframes heroPan { from { transform: scale(1.03); } to { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes heroPulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,31,.6); } 70% { box-shadow: 0 0 0 9px rgba(255,59,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,31,0); } }
@keyframes heroNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ---------- Təqvim ---------- */
.schedule-legend { display: flex; gap: 18px; flex-wrap: wrap; color: #999; font-size: 12.5px; margin-bottom: 18px; }
.schedule-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-today { background: var(--accent-color, #a91101); }
.lg-has { background: linear-gradient(135deg, #2d6cdf, #7b3fe4); }
.lg-empty { background: #232323; border: 1px solid #333; }
.schedule-empty-note { background: #141414; border: 1px dashed #2c2c2c; color: #8a8a8a; padding: 16px 18px; border-radius: 10px; font-size: 13.5px; margin-bottom: 20px; }
.cal-month { margin-bottom: 26px; }
.cal-month-head { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-day {
  position: relative; min-height: 74px; border-radius: 10px; background: #101010; border: 1px solid #1f1f1f;
  padding: 8px; display: flex; flex-direction: column; gap: 2px; color: #cfcfcf;
}
.cal-day.is-today { border-color: var(--accent-color, #a91101); box-shadow: 0 0 0 1px rgba(169,17,1,.35) inset; }
.cal-day.has-ep { background: linear-gradient(160deg, rgba(45,108,223,.22), rgba(123,63,228,.18)); border-color: #35508f; cursor: pointer; }
.cal-day.has-ep:hover { border-color: #5b8bff; transform: translateY(-1px); }
.cal-wd { font-size: 10.5px; color: #777; text-transform: uppercase; letter-spacing: .04em; }
.cal-num { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.1; }
.cal-badge { position: absolute; top: 6px; right: 6px; background: #2d6cdf; color: #fff; font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.cal-epname { font-size: 10.5px; color: #b9c8e8; line-height: 1.25; margin-top: 2px; overflow: hidden; }
.sched-detail { display: flex; gap: 14px; padding: 12px; border: 1px solid #262626; border-radius: 10px; background: #121212; margin-bottom: 12px; }
.sched-detail img { width: 56px; height: 74px; object-fit: cover; border-radius: 6px; flex: none; }
.sched-detail-info { min-width: 0; }
.sched-detail-title { color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.sched-detail-title:hover { color: var(--accent-color, #a91101); }
.sched-detail-meta { color: #9a9a9a; font-size: 12.5px; margin-top: 4px; }
.sched-detail-note { color: #7f8ea8; font-size: 12px; margin-top: 6px; font-style: italic; }
.sched-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn-primary.is-on { background: #1f7a3d; }

/* ---------- Anime detalları: status və teqlər ---------- */
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.detail-tag { background: #1b1b1b; border: 1px solid #2e2e2e; color: #ccc; font-size: 12px; padding: 4px 11px; border-radius: 999px; }
.detail-badge-pill.status-ongoing { color: #4ade80; border-color: #1f6b3f; }
.detail-badge-pill.status-completed { color: #7dd3fc; border-color: #23506b; }
.detail-badge-pill.status-upcoming { color: #fbbf24; border-color: #6b5320; }
.detail-badge-pill.status-hiatus { color: #f87171; border-color: #6b2b2b; }

/* ---------- Paylaşılmayıb (publishAt) ---------- */
.episode-card.pending-ep { opacity: .78; border-style: dashed; }
.episode-pending-note { font-size: 11.5px; color: #fbbf24; margin-top: 6px; line-height: 1.3; }
.soon-lock { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; gap: 6px; color: #ddd; height: 100%; }
.soon-lock-icon { font-size: 40px; }
.soon-lock h3 { font-size: 19px; color: #fff; }
.soon-lock p { color: #999; font-size: 13.5px; max-width: 420px; line-height: 1.6; }
.soon-lock-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- Admin: çoxseçimli siyahı ---------- */
.admin-check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.admin-check-row { display: flex; align-items: center; gap: 10px; background: #121212; border: 1px solid #262626; border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.admin-check-row:hover { border-color: #3a3a3a; }
.admin-check-row img { width: 30px; height: 40px; object-fit: cover; border-radius: 4px; flex: none; }
.admin-check-row span { display: flex; flex-direction: column; min-width: 0; }
.admin-check-row strong { color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-check-row em { color: #888; font-size: 11.5px; font-style: normal; }
.admin-check-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent-color, #a91101); flex: none; }

/* Mobil */
@media (max-width: 720px) {
  .cal-grid { gap: 5px; }
  .cal-day { min-height: 58px; padding: 5px; }
  .cal-num { font-size: 13px; }
  .cal-epname { display: none; }
  .cal-badge { top: 3px; right: 3px; min-width: 15px; height: 15px; font-size: 9.5px; }
  .toast-container, #toast-container { left: 12px; right: 12px; }
}

/* ============================================================
   v7.1 — kateqoriya seçici, abunəlik axını, VIP müraciətləri, loglar
   ============================================================ */

/* ---------- Filtr paneli (üst-üstə düşmə problemi həll olundu) ---------- */
.filter-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1 1 320px; min-width: 0; }
.filter-open-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1a1a1a; border: 1px solid #333; color: #ddd;
  padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.filter-open-btn:hover { border-color: #555; color: #fff; }
.filter-open-btn.has-value { border-color: var(--accent-color); color: #fff; }
.filter-open-btn b { background: var(--accent-color); color: #fff; font-size: 11.5px; min-width: 19px; height: 19px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.filter-open-btn em { color: #888; font-style: normal; font-weight: 500; font-size: 12.5px; }
.filter-active-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.filter-active-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(169, 17, 1, .16); border: 1px solid rgba(169, 17, 1, .5);
  color: #ffd9d4; font-size: 12.5px; padding: 5px 6px 5px 11px; border-radius: 999px;
}
.filter-active-chip button { background: transparent; border: none; color: #ffb3aa; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 3px; }
.filter-active-chip button:hover { color: #fff; }
.filter-clear { font-size: 12px; }

/* ---------- Kateqoriya pəncərəsi ---------- */
.genre-modal-card { max-width: 540px; }
.genre-modal-title { font-size: 20px; color: #fff; margin-bottom: 6px; }
.genre-modal-sub { color: #8d8d8d; font-size: 13px; margin-bottom: 14px; line-height: 1.5; }
.genre-search-wrap { position: relative; }
.genre-search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: .7; }
.genre-search-wrap .admin-input { padding-left: 34px; }
.genre-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin: 14px 0; padding-right: 4px; }
.genre-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #161616; border: 1px solid #282828; color: #ddd;
  padding: 10px 14px; border-radius: 9px; font-size: 13.5px; font-family: inherit;
  cursor: pointer; transition: var(--transition); text-align: left;
}
.genre-item:hover { border-color: #3d3d3d; color: #fff; }
.genre-item.on { background: rgba(169, 17, 1, .14); border-color: rgba(169, 17, 1, .55); color: #fff; }
.genre-item-check { font-size: 13px; font-weight: 700; color: #6c6c6c; }
.genre-item.on .genre-item-check { color: #4ade80; }
.genre-empty { color: #777; font-size: 13px; text-align: center; padding: 18px 0; }
.genre-create { display: flex; gap: 8px; margin-bottom: 12px; }
.genre-create[hidden] { display: none; }
.genre-create .admin-input { flex: 1; }
.genre-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn .admin-input { flex: 1; min-width: 0; cursor: pointer; }

/* ---------- Abunəlik modalı ---------- */
.sub-plans { display: flex; flex-direction: column; gap: 12px; }
.sub-plan { background: #181818; border: 1px solid #2a2a2a; border-left: 3px solid var(--accent-color); border-radius: 10px; padding: 16px 18px; }
.sub-plan.highlight { border-left-color: #ffb703; }
.sub-plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.sub-plan-head strong { font-size: 16.5px; color: #fff; }
.sub-plan-price { color: var(--accent-color); font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.sub-plan.highlight .sub-plan-price { color: #ffb703; }
.sub-plan-features { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.sub-plan-features span { color: #b6b6b6; font-size: 13px; line-height: 1.45; padding-left: 18px; position: relative; }
.sub-plan-features span::before { content: '✓'; position: absolute; left: 0; color: #4ade80; font-weight: 700; }
.sub-plan-btn { width: 100%; padding: 10px; font-size: 14px; }
.sub-hint { background: #151515; border: 1px dashed #2e2e2e; color: #9b9b9b; font-size: 12.5px; line-height: 1.55; padding: 10px 12px; border-radius: 8px; }
.sub-back { background: transparent; border: none; color: #999; font-family: inherit; font-size: 12.5px; cursor: pointer; padding: 0 0 10px; }
.sub-back:hover { color: #fff; }
.sub-chosen { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #181818; border: 1px solid #2a2a2a; border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.sub-chosen strong { color: #fff; font-size: 15px; }
.sub-chosen-days { color: #888; font-size: 12px; margin-left: 8px; }
.sub-chosen b { color: var(--accent-color); font-size: 14px; white-space: nowrap; }
.sub-step-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #8a8a8a; margin: 14px 0 8px; font-weight: 700; }
.sub-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-method {
  display: inline-flex; align-items: center; gap: 8px; background: #141414; border: 1px solid #2e2e2e;
  color: #ddd; padding: 9px 14px; border-radius: 10px; font-family: inherit; font-size: 13.5px; cursor: pointer; transition: var(--transition);
}
.sub-method:hover { border-color: #4a4a4a; color: #fff; }
.sub-method.on { border-color: var(--accent-color); background: rgba(169, 17, 1, .13); color: #fff; }
.sub-method-ico { font-size: 15px; }
.sub-method-note { background: #101010; border: 1px solid #262626; color: #b9b9b9; font-size: 12.5px; padding: 9px 12px; border-radius: 8px; margin-top: 10px; line-height: 1.5; }
.sub-upload {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  border: 1.5px dashed #333; border-radius: 10px; padding: 20px 14px; cursor: pointer; color: #cfcfcf; font-size: 13.5px; transition: var(--transition);
}
.sub-upload:hover { border-color: var(--accent-color); color: #fff; }
.sub-upload input { display: none; }
.sub-upload-ico { font-size: 20px; }
.sub-upload small { color: #777; font-size: 11.5px; }
.sub-receipt { display: flex; align-items: center; gap: 14px; background: #141414; border: 1px solid #2a2a2a; border-radius: 10px; padding: 10px 12px; }
.sub-receipt img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #333; }
.sub-receipt-info { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #cfcfcf; }
.sub-submit { width: 100%; padding: 12px; margin-top: 14px; font-size: 14.5px; }
.sub-submit:disabled { opacity: .5; cursor: not-allowed; }
.sub-login-warn { color: #f0a04b; font-size: 12px; text-align: center; margin-top: 8px; line-height: 1.5; }
.sub-pending { background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); color: #fbbf24; font-size: 12.5px; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; line-height: 1.5; }
.sub-pending a { color: #fff; }
.sub-empty { color: #888; text-align: center; padding: 24px 10px; font-size: 13.5px; }
.sub-done { text-align: center; padding: 10px 0 4px; }
.sub-done-ico { font-size: 40px; margin-bottom: 8px; }
.sub-done h4 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.sub-done p { color: #a3a3a3; font-size: 13.5px; line-height: 1.6; }
.sub-done-ticket { display: inline-block; background: #141414; border: 1px solid #2c2c2c; border-radius: 8px; padding: 8px 14px; margin: 12px 0; color: #ccc; font-size: 13px; }
.sub-done-note { margin-bottom: 16px; }
.sub-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Admin: abunəlik redaktoru ---------- */
.sub-admin-wrap { max-width: 820px; background: #141414; border: 1px solid #282828; border-radius: var(--radius-md); padding: 22px; }
.sub-admin-hint { color: #8b8b8b; font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.sub-admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.sub-admin-head h4 { color: var(--accent-color); font-size: 15px; }
.sub-admin-row { position: relative; background: #101010; border: 1px solid #262626; border-radius: 10px; padding: 14px 14px 12px; margin-bottom: 10px; }
.sub-admin-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 10px; }
.sub-admin-grid.two { grid-template-columns: 1fr 1.6fr; }
.sub-admin-grid label, .sub-admin-features { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #8d8d8d; }
.sub-admin-features { margin-top: 10px; }
.sub-admin-del { position: absolute; top: 10px; right: 10px; padding: 4px 9px; font-size: 11.5px; }

/* ---------- VIP müraciət kartı / dekont ---------- */
.vip-req-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: #bbb; }
.vip-req-line .dim { color: #777; }
.vip-req-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid #333; color: #bbb; background: #171717; }
.vip-req-chip.pending { color: #fbbf24; border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .1); }
.vip-req-chip.approved { color: #4ade80; border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .1); }
.vip-req-chip.rejected { color: #f87171; border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .1); }
.vip-req-card { background: #101010; border: 1px solid #2a2a2a; border-left: 3px solid #ffb703; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.vip-req-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vip-req-card-head strong { color: #fff; font-size: 14.5px; }
.vip-req-card-head .dim { color: #888; font-size: 12.5px; }
.vip-req-card-meta { color: #a3a3a3; font-size: 12.5px; margin-top: 6px; }
.vip-req-card-meta b { color: #ddd; }
.vip-req-reason { color: #f0a0a0; font-size: 12px; margin-top: 6px; }
.vip-req-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.vip-req-card-actions .dim { color: #777; font-size: 12px; }
.receipt-card { max-width: 620px; }
.receipt-img { display: block; width: 100%; border-radius: 10px; border: 1px solid #2a2a2a; background: #0b0b0b; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.vip-approve-btn { background: #1f7a3d; }

/* ---------- Admin: detallı loglar ---------- */
.log-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.log-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.log-cats .filter-tab-btn { font-size: 12px; padding: 6px 11px; }
.log-meta-line { color: #777; font-size: 12px; }
.log-entry { border-left: 3px solid #2c2c2c; padding: 9px 12px; }
.log-entry.cat-auth { border-left-color: #4aa3ff; }
.log-entry.cat-vip { border-left-color: #ffb703; }
.log-entry.cat-ticket { border-left-color: #c084fc; }
.log-entry.cat-content { border-left-color: #4ade80; }
.log-entry.cat-members { border-left-color: #f472b6; }
.log-entry.cat-system { border-left-color: #555; }
.log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; }
.log-time { color: #6b6b6b; font-family: monospace; }
.log-cat { color: #cfcfcf; background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: 999px; padding: 1px 8px; }
.log-action { color: var(--accent-color); font-weight: 700; }
.log-user { color: #ffb703; }
.log-ip { margin-left: auto; color: #666; font-family: monospace; }
.log-body { color: #c4c4c4; font-size: 12.5px; line-height: 1.55; margin-top: 4px; word-break: break-word; }

@media (max-width: 640px) {
  .sub-admin-grid, .sub-admin-grid.two { grid-template-columns: 1fr; }
  .log-ip { margin-left: 0; }
}

/* ============================================================
   v7.2 — ana səhifə dizaynı: atmosfer, şüşə header, kartlar
   ============================================================ */

/* Səhifə atmosferi: yuxarıdan gələn zəif işıq */
body {
  background-color: var(--bg-color);
  background-image:
    radial-gradient(1200px 700px at 8% -12%, rgba(169, 17, 1, .18), transparent 62%),
    radial-gradient(900px 560px at 98% 0%, rgba(58, 78, 168, .13), transparent 65%);
  background-repeat: no-repeat;
}

/* Şüşə (sticky) header */
header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 1px 0 rgba(169, 17, 1, .35), 0 20px 44px -30px rgba(0, 0, 0, .95);
}

body.home-page main { padding-top: 0; }

/* Bölmə başlıqları: işıqlanan aksent xətti */
.section-title {
  position: relative;
  padding-left: 16px;
  border-left: none;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -.015em;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.15em;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff4a2b, var(--accent-color) 60%, #5a0900);
  box-shadow: 0 0 16px rgba(255, 59, 31, .45);
}

/* Filtr paneli */
.filter-bar {
  background: linear-gradient(160deg, rgba(26, 26, 26, .92), rgba(12, 12, 12, .92));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 44px -34px #000;
}

/* İzləməyə davam et */
.continue-watching-wrap {
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  padding: 24px 26px;
}
.continue-card {
  background: linear-gradient(160deg, #1a1a1a, #101010);
  border-color: rgba(255, 255, 255, .07);
  border-radius: 14px;
}
.continue-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 80, 55, .4);
  box-shadow: 0 18px 40px -22px #000;
}

/* Anime kartları */
.anime-grid { gap: 26px; }
.anime-card {
  background: linear-gradient(180deg, #171717, #0d0d0d);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
}
.anime-card:hover {
  transform: translateY(-9px);
  border-color: rgba(255, 80, 55, .5);
  box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .95), 0 0 34px -10px rgba(255, 59, 31, .4);
}
.anime-card-poster-wrap { height: auto; aspect-ratio: 2 / 3; }
.anime-card-poster-wrap::after {
  content: '';
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(6, 6, 6, .85));
  pointer-events: none;
  transition: opacity .3s;
}
.anime-card:hover .anime-card-poster-wrap::after { opacity: .45; }
.anime-card-badge,
.anime-card-year {
  border-radius: 999px;
  background: rgba(6, 6, 6, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.anime-card-badge { border-color: rgba(255, 209, 102, .3); }
.anime-card-play-overlay {
  background: radial-gradient(circle at center, rgba(0, 0, 0, .3), rgba(0, 0, 0, .6));
}
.play-icon-circle {
  width: 54px;
  height: 54px;
  font-size: 17px;
  background: #fff;
  color: #0b0b0b;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .65);
}
.anime-card:hover .play-icon-circle { transform: scale(1); background: #ff3b1f; color: #fff; }
.anime-card-info { padding: 14px 16px 18px; }
.anime-card-title { font-size: 15.5px; }
.anime-card-cat {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8c8c8c;
}

/* Ən yüksək reytinqlilər — afişa zolağı */
.top-rated-wrap { margin: 10px 0 46px; }
.top-rated-row { gap: 18px; padding: 4px 2px 14px; }
.top-card { flex: 0 0 164px; gap: 8px; }
.top-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  transition: var(--transition);
}
.top-card:hover img {
  transform: translateY(-6px);
  border-color: rgba(255, 80, 55, .45);
  box-shadow: 0 24px 40px -22px #000;
}
.top-rank {
  top: auto;
  bottom: 50px;
  left: 8px;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  font-size: 46px;
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.04em;
  color: #fff;
  text-shadow: 0 6px 22px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .9);
  opacity: .9;
}
.top-title { font-size: 13.5px; font-weight: 600; }

/* Hero — mobil */
@media (max-width: 720px) {
  .hero-carousel { --hero-pad: 20px; }
  .hero-track { height: 560px; }
  .hero-slide .hero-content { width: 100%; padding: 0 var(--hero-pad) 92px; }
  .hero-art { background-position: center top; }
  .hero-slide-shade {
    background:
      linear-gradient(0deg, #080808 1%, rgba(8, 8, 8, .9) 36%, rgba(8, 8, 8, .12) 90%),
      linear-gradient(180deg, rgba(6, 6, 6, .86), rgba(6, 6, 6, 0) 34%);
  }
  .hero-eyebrow { font-size: 10px; letter-spacing: .18em; gap: 8px; }
  .hero-title { font-size: clamp(27px, 8vw, 38px); }
  .hero-meta { font-size: 12.5px; gap: 10px; }
  .hero-desc { font-size: 13.5px; margin-bottom: 22px; }
  .hero-btn { padding: 12px 18px; font-size: 13.5px; }
  .hero-hint { display: none; }
  .hero-ui { padding-bottom: 20px; }
  .anime-grid { gap: 14px; }
  .top-card { flex: 0 0 136px; }
  .top-rank { font-size: 38px; bottom: 48px; }
  .continue-watching-wrap { padding: 18px 16px; border-radius: 14px; }
}

@media (max-width: 520px) {
  .hero-track { height: 540px; }
  .hero-btn-play,
  .hero-btn-ghost { flex: 1 1 auto; justify-content: center; }
  .hero-eyebrow-num { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .hero-art,
  .hero-slide.active .hero-eyebrow,
  .hero-slide.active .hero-title,
  .hero-slide.active .hero-meta,
  .hero-slide.active .hero-tags,
  .hero-slide.active .hero-desc,
  .hero-slide.active .hero-actions { animation: none !important; }
  .hero-dot.active .hero-dot-fill { animation: none; transform: scaleX(1); }
}

/* ============================================================
   v7.3 — daha tünd fon, yeni footer, müasir düymələr və animasiyalar
   ============================================================ */

/* ---------- Daha tünd, atmosferli fon ---------- */
body {
  background-color: var(--bg-color);
}

body.home-page {
  background-image:
    radial-gradient(1100px 640px at 6% -14%, rgba(169, 17, 1, .15), transparent 62%),
    radial-gradient(820px 520px at 100% -5%, rgba(58, 78, 168, .09), transparent 66%);
}

/* Hero alt keçidi yeni fonla tam üst-üstə düşsün */
.hero-carousel { background: var(--bg-color); }
.hero-slide-shade {
  background:
    linear-gradient(90deg, rgba(2, 2, 3, .97) 0%, rgba(2, 2, 3, .9) 30%, rgba(2, 2, 3, .55) 58%, rgba(2, 2, 3, .08) 100%),
    linear-gradient(0deg, var(--bg-color) 0%, rgba(4, 4, 5, .82) 16%, rgba(4, 4, 5, 0) 55%),
    linear-gradient(180deg, rgba(3, 3, 4, .92) 0%, rgba(3, 3, 4, 0) 26%);
}

/* ---------- Hero şəkli: geniş arxa plan / afişa rejimi ---------- */
.hero-art.hero-art-wide {
  background-size: cover;
  background-position: center 24%;
}
/* Geniş şəkil yoxdursa afişa böyüdülmür: kəskin, sağda poster kimi göstərilir */
.hero-art.hero-art-poster {
  background-size: contain;
  background-position: right 8% center;
  background-repeat: no-repeat;
}
.hero-art.hero-art-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 80% 46%, rgba(169, 17, 1, .2), transparent 74%),
    linear-gradient(90deg, rgba(3, 3, 4, .55), transparent 58%);
}

/* ---------- Müasir düymələr ---------- */
.btn-primary,
.btn-secondary,
.btn-danger {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e11d05, #a91101 62%, #7c0b01);
  box-shadow: 0 12px 26px -14px rgba(233, 30, 5, .9), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 135%; }
.btn-primary:hover { box-shadow: 0 18px 32px -16px rgba(233, 30, 5, 1); }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary:disabled::after { display: none; }

.btn-secondary {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  transform: translateY(-1px);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible,
.hero-btn:focus-visible,
.filter-open-btn:focus-visible,
.footer-social:focus-visible,
.genre-item:focus-visible {
  outline: 2px solid #ff6a4d;
  outline-offset: 3px;
}

/* Naviqasiya pill-ləri və axtarış */
.nav-item {
  border-radius: 999px;
  padding: 8px 14px;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); transform: translateY(-1px); }
.search-input-wrapper input {
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  padding-top: 12px;
  padding-bottom: 12px;
}
.search-input-wrapper input:focus {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 106, 77, .55);
  box-shadow: 0 0 0 4px rgba(169, 17, 1, .16);
}
.filter-selects select {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  color: #e6e6e6;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}
.filter-selects select:focus { outline: none; border-color: rgba(255, 106, 77, .55); }

/* Hero düymələri */
.hero-btn { border-radius: 12px; }
.hero-btn-play { box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .95); }
.hero-btn-ghost { backdrop-filter: blur(12px); }

/* Yumşaq giriş animasiyası */
@keyframes axFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.continue-watching-wrap,
.top-rated-wrap,
#home-grid-wrap {
  animation: axFadeUp .5s cubic-bezier(.22, .8, .2, 1) both;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 64px;
  padding: 0;
  background: linear-gradient(180deg, #070708, #030304 72%);
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: #98989a;
  font-size: 13.5px;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 17, 1, .6), transparent);
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 40px 42px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-col { max-width: 340px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-logo img { width: 42px; height: 42px; object-fit: contain; }
.footer-logo span {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
}
.footer-logo em { font-style: normal; color: var(--accent-bright); }
.footer-about { color: #8b8b8d; line-height: 1.7; font-size: 13px; margin: 14px 0 18px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  color: #cfcfcf;
  text-decoration: none;
  transition: var(--transition);
}
.footer-social svg,
.footer-social img { width: 17px; height: 17px; object-fit: contain; }
.footer-social:hover {
  color: #fff;
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -14px var(--accent-glow);
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-col a,
.footer-col button {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  color: #8b8b8d;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.footer-col a:hover,
.footer-col button:hover { color: #fff; transform: translateX(3px); }
.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 40px 28px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: #6c6c6e;
  font-size: 12.5px;
}
.footer-lang { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Bilet içində ödəniş üsulu + dekont ---------- */
.vip-pay-box {
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid var(--accent-color);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.vip-pay-head { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.vip-pay-sub { color: #8f8f91; font-size: 12.5px; line-height: 1.55; margin-bottom: 10px; }
.vip-pay-save { width: 100%; margin-top: 12px; padding: 10px; }

/* ---------- Kateqoriya sətri: silmə düyməsi ---------- */
.genre-row { display: flex; gap: 6px; align-items: stretch; }
.genre-row .genre-item { flex: 1; min-width: 0; }
.genre-del {
  flex: none;
  width: 38px;
  border-radius: 9px;
  background: rgba(231, 76, 60, .1);
  border: 1px solid rgba(231, 76, 60, .35);
  color: #ff8a7a;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.genre-del:hover { background: rgba(231, 76, 60, .92); color: #fff; border-color: transparent; }

/* ---------- Admin: hero arxa planı ---------- */
.hero-art-admin-list { display: flex; flex-direction: column; gap: 10px; }
.hero-art-admin-row { display: flex; align-items: center; gap: 14px; background: #101010; border: 1px solid #262626; border-radius: 12px; padding: 10px 12px; }
.hero-art-thumb { width: 132px; height: 74px; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid #2e2e2e; flex: none; }
.hero-art-admin-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.hero-art-admin-info strong { color: #fff; font-size: 13.5px; }
.hero-art-admin-info em { color: #8a8a8a; font-style: normal; font-size: 11.5px; }
.hero-edit-preview { margin-top: 10px; height: 150px; border-radius: 10px; border: 1px solid #2a2a2a; background-color: #0b0b0b; background-size: cover; background-position: center; }
.hero-art-modal-card { max-width: 640px; }
.hero-art-modal-title { font-size: 20px; color: #fff; margin-bottom: 6px; }
.hero-art-modal-sub { color: #8d8d8f; font-size: 13px; line-height: 1.55; margin-bottom: 12px; }
.hero-art-modal-preview { height: 220px; border-radius: 12px; border: 1px solid #2a2a2a; background-color: #0a0a0a; background-size: cover; background-position: center; margin-bottom: 14px; }
.hero-art-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero-art-modal-hint { color: #777; font-size: 11.5px; margin-top: 10px; line-height: 1.5; }

@media (max-width: 992px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; padding: 42px 22px 30px; }
  .footer-bottom { padding: 16px 22px 24px; }
}

@media (max-width: 720px) {
  .hero-art.hero-art-poster { background-size: cover; background-position: center 16%; }
  .hero-slide-shade {
    background:
      linear-gradient(0deg, var(--bg-color) 1%, rgba(4, 4, 5, .9) 36%, rgba(4, 4, 5, .12) 90%),
      linear-gradient(180deg, rgba(3, 3, 4, .86), rgba(3, 3, 4, 0) 34%);
  }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 34px 18px 24px; gap: 24px; }
  .footer-brand-col { grid-column: 1 / -1; max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-art-admin-row { flex-wrap: wrap; }
  .hero-art-thumb { width: 100%; height: 96px; }
  .hero-art-modal-preview { height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .continue-watching-wrap,
  .top-rated-wrap,
  #home-grid-wrap { animation: none; }
  .btn-primary::after { display: none; }
}
/* ============================================================
   v8 — ADMIN PANEL YENİLƏNMƏSİ (3 qrup naviqasiya, hero redaktoru)
   ============================================================ */
.admin-page .main-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px 40px 8px;
}
.admin-page header { padding: 12px 40px; }
.admin-page .site-footer { margin-top: 56px; }

.admin-wrapper {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  align-items: stretch;
  overflow: visible;
  min-height: 0;
  background: #0b0b0c;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

.admin-sidebar {
  width: auto;
  position: sticky;
  top: 14px;
  align-self: start;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 16px 10px 20px;
  background: linear-gradient(180deg, #0a0a0c, #070708);
  border-right: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px 0 0 18px;
  scrollbar-width: thin;
}
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 6px; }

.admin-sidebar-header { padding: 6px 12px 16px; margin-bottom: 8px; }
.admin-sidebar-header h3 { font-size: 15px; letter-spacing: .01em; }
.admin-sidebar-header p { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: #6f6f76; }

.admin-nav-group { padding: 6px 0 12px; }
.admin-nav-group + .admin-nav-group { border-top: 1px solid rgba(255, 255, 255, .055); }
.admin-nav-group-title {
  padding: 10px 12px 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6b6b73;
}

.admin-tab-btn {
  position: relative;
  width: 100%;
  padding: 10px 12px;
  margin: 2px 0;
  border-left: none;
  border-radius: 9px;
  font-size: 13.5px;
  gap: 10px;
}
.admin-nav-ico { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; color: #8b8b93; }
.admin-nav-ico svg { width: 18px; height: 18px; }
.admin-nav-label { flex: 1; text-align: left; }
.admin-tab-btn:hover { background: rgba(255, 255, 255, .045); }
.admin-tab-btn.active {
  background: linear-gradient(90deg, rgba(169, 17, 1, .2), rgba(169, 17, 1, .03));
  box-shadow: inset 0 0 0 1px rgba(169, 17, 1, .28);
  border-left-color: transparent;
}
.admin-tab-btn.active .admin-nav-ico { color: var(--accent-bright); }
.admin-tab-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent-bright);
}
.admin-tab-btn .tab-count-badge { margin-left: auto; }

.admin-content {
  padding: 28px 32px 40px;
  min-width: 0;
  border-radius: 0 18px 18px 0;
  background: #0c0c0e;
}
.admin-content > * { max-width: 100%; }
.admin-main, #admin-main-container { min-width: 0; }

.admin-access-denied {
  text-align: center;
  padding: 70px 20px;
  background: #111114;
  border: 1px solid #26262b;
  border-radius: 16px;
  color: #ccc;
}
.admin-access-denied h2 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.admin-access-denied p { color: #8c8c93; font-size: 13.5px; }

/* ---------- Hero şəkil redaktoru ---------- */
.hero-art-editor {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #050506;
  aspect-ratio: 16 / 9;
}
.hero-art-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.hero-art-canvas.dragging { cursor: grabbing; }
.hero-art-editor-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: #8a8a92;
  font-size: 13px;
  line-height: 1.6;
  background: repeating-linear-gradient(45deg, #0a0a0c, #0a0a0c 12px, #0d0d10 12px, #0d0d10 24px);
}
.hero-art-editor-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 10.5px;
  letter-spacing: .08em;
  background: rgba(0, 0, 0, .6);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #ddd;
  padding: 3px 7px;
  border-radius: 6px;
}
.hero-art-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 4px;
}
.hero-art-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 240px;
  font-size: 12.5px;
  color: #b6b6bd;
}
.hero-art-zoom input { flex: 1; accent-color: var(--accent-color); }
.hero-art-zoom b { min-width: 46px; text-align: right; color: #fff; font-weight: 600; }
.hero-art-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.hero-art-modal-actions .btn-primary { margin-left: auto; }
@media (max-width: 520px) {
  .hero-art-modal-actions .btn-primary { margin-left: 0; width: 100%; }
}

/* ---------- E-poçt ayarları ---------- */
.mail-admin-card {
  margin-top: 28px;
  padding: 20px;
  background: #111114;
  border: 1px solid #26262b;
  border-radius: 14px;
}
.mail-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.mail-admin-head h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #fff; }
.mail-status {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #333;
  color: #bbb;
}
.mail-status.ok { color: #7ee2a8; border-color: rgba(46, 204, 113, .35); background: rgba(46, 204, 113, .08); }
.mail-status.warn { color: #ffcf7a; border-color: rgba(255, 183, 3, .35); background: rgba(255, 183, 3, .08); }
.mail-admin-hint { font-size: 12.5px; line-height: 1.7; color: #90909a; margin-bottom: 16px; }
.mail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mail-grid.three { grid-template-columns: 1.4fr .6fr 1.4fr; }
.mail-grid label,
.mail-pass-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #b9b9c1;
  margin-bottom: 12px;
}
.mail-test-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.mail-test-row .admin-input { flex: 1 1 220px; }
.mail-admin-actions { margin-top: 14px; display: flex; justify-content: flex-end; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .admin-wrapper { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    max-height: none;
    border-radius: 18px 18px 0 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }
  .admin-content { border-radius: 0 0 18px 18px; }
  .admin-sidebar-nav { display: flex; gap: 14px; overflow-x: auto; padding: 4px 8px 8px; }
  .admin-nav-group { padding: 0; border: none !important; display: flex; align-items: center; gap: 6px; }
  .admin-nav-group-title { white-space: nowrap; padding: 0 6px; }
  .admin-tab-btn { width: auto; white-space: nowrap; }
  .mail-grid, .mail-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .admin-sidebar-nav { display: block; overflow: visible; }
  .admin-nav-group { display: block; }
  .admin-page .main-container { padding: 20px 14px 0; }
  .admin-page header { padding: 10px 14px; }
  .admin-content { padding: 18px 16px 28px; }
}

/* ============================================================
   v8.6 — Giriş/Qeydiyyat tabları, düymə dizaynı, hero redaktoru
   ============================================================ */

/* Giriş pəncərəsi: seqmentli tab paneli (Daxil Ol | Hesab aç) */
.auth-tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  background: #101012;
  border: 1px solid #26262b;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.auth-tab-btn {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 700;
  color: #90909a;
  text-align: center;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.auth-tab-btn::after,
.auth-tab-btn.active::after { display: none; content: none; }
.auth-tab-btn:hover { color: #d7d7dd; background: rgba(255, 255, 255, .04); }
.auth-tab-btn.active {
  color: #fff;
  background: linear-gradient(180deg, #cf1a05, #a91101);
  box-shadow: 0 8px 18px -12px rgba(233, 30, 5, .95), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.auth-tab-btn:focus-visible { outline: 2px solid #ff6a4d; outline-offset: 2px; }

/* "Şifrəmi unutdum" - giriş düyməsinin altında yazı düymə */
.auth-forgot-row { text-align: center; margin-top: 12px; }
.auth-forgot-link {
  background: none;
  border: none;
  padding: 4px 6px;
  color: #8f8f99;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: color .18s ease;
}
.auth-forgot-link:hover { color: #ff7a5c; text-decoration: underline; text-underline-offset: 3px; }
.auth-forgot-link:focus-visible { outline: 2px solid #ff6a4d; outline-offset: 2px; }

/* Düymələr: daha aydın kontrast və bərabər ölçü */
.btn-primary,
.btn-secondary,
.btn-danger {
  min-height: 38px;
  border-radius: 11px;
  letter-spacing: .015em;
}
.btn-primary {
  background: linear-gradient(180deg, #e0260b, #b41201 58%, #8d0c01);
  border: 1px solid rgba(255, 96, 66, .45);
  box-shadow: 0 10px 22px -14px rgba(233, 30, 5, .95), inset 0 1px 0 rgba(255, 255, 255, .2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ef3014, #c01503 58%, #980d01);
  border-color: rgba(255, 122, 92, .6);
  box-shadow: 0 14px 26px -14px rgba(233, 30, 5, 1), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.btn-secondary {
  background: #191a1d;
  border: 1px solid #2f3035;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.btn-secondary:hover { background: #232428; border-color: #3d3e45; }

/* Hero (trend anime arxa planı) redaktorunun alt düymələri */
.hero-art-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}
.hero-art-modal-actions > * {
  margin: 0;
  min-height: 42px;
  justify-content: center;
  font-size: 13.5px;
}
.hero-art-modal-actions .btn-primary { margin-left: 0; padding-inline: 26px; }
.hero-art-modal-actions label.btn-secondary { display: inline-flex; align-items: center; gap: 8px; }
.hero-art-tools .btn-secondary { min-height: 38px; }
@media (max-width: 560px) {
  .hero-art-modal-actions { grid-template-columns: 1fr; }
  .hero-art-modal-actions .btn-primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-tab-btn,
  .btn-primary,
  .btn-secondary { transition: none; }
}

/* ============================================================
   v8.7 — səliqəli ana səhifə, pill düymələr, qeydiyyat ekranı,
   zil animasiyaları, modal bağlama düyməsi
   ============================================================ */

/* --- Modalın X düyməsi: həmişə kartın İÇİNDƏ, tab barı ilə toqquşmur --- */
.modal-card > .modal-close-btn {
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  color: #b9b9c1;
  background: #1c1d21;
  border: 1px solid rgba(255, 255, 255, .08);
  z-index: 6;
}
.modal-card > .modal-close-btn:hover {
  color: #fff;
  background: #2b2c31;
  border-color: rgba(255, 106, 77, .5);
}
#auth-modal .modal-card { padding-top: 58px; max-width: 470px; }
#auth-modal .auth-tab-bar { margin-top: 0; }

/* Məxfilik pəncərəsi giriş pəncərəsinin üstündə açılsın */
#privacy-policy-modal { z-index: 5600; }

/* --- Pill düymələr (saytın qırmızı rəngində) --- */
.btn-primary,
.btn-secondary,
.btn-danger {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .01em;
}
.btn-primary {
  background: linear-gradient(180deg, #ff3d20 0%, #e41d03 46%, #a91101 100%);
  border: 1px solid rgba(255, 122, 92, .5);
  box-shadow: 0 12px 26px -14px rgba(255, 59, 31, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
  padding-inline: 20px;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ff5334 0%, #f02406 46%, #bb1402 100%);
  border-color: rgba(255, 150, 120, .7);
  box-shadow: 0 16px 30px -14px rgba(255, 59, 31, 1), inset 0 1px 0 rgba(255, 255, 255, .34);
}
.btn-secondary {
  background: #16171b;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #e6e6ea;
  padding-inline: 18px;
}
.btn-secondary:hover { background: #1e1f24; border-color: rgba(255, 106, 77, .4); color: #fff; }
.btn-danger { padding-inline: 18px; }

/* --- Ana səhifə: qutu-kartlar yerinə təmiz, açıq fon --- */
body.home-page {
  background-color: #0e0f12;
  background-image:
    radial-gradient(1000px 620px at 10% -10%, rgba(169, 17, 1, .16), transparent 62%),
    radial-gradient(760px 480px at 100% 0%, rgba(64, 78, 140, .10), transparent 65%);
}
.home-page .continue-watching-wrap,
.home-page .top-rated-wrap,
.home-page #home-grid-wrap {
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.home-page .continue-watching-wrap,
.home-page .top-rated-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding-block: 0;
  margin-block: 0 44px;
}
.home-page .section-title-row {
  align-items: flex-end;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 18px;
}
.home-page .section-title {
  border-left: none;
  padding-left: 0;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.home-page .section-title::before { display: none; }
.home-page .section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 58px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff4a2b, #a91101 70%, #5a0900);
  box-shadow: 0 0 14px rgba(255, 59, 31, .5);
}
.home-page #home-grid-wrap { padding-top: 4px; }
.home-page #home-grid-wrap > .section-title { margin: 4px 0 20px; }

/* Davam et: kart qutuları yoxdur */
.home-page .continue-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.home-page .continue-card {
  background: transparent;
  border: 0;
  border-radius: 0;
}
.home-page .continue-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
.home-page .continue-thumb {
  width: 88px;
  height: 118px;
  border-radius: 12px;
}
.home-page .continue-details { padding: 2px 0 2px 12px; }
.home-page .continue-title { font-size: 13.5px; }

/* Anime kartları: yalnız afişa + mətn */
.home-page .anime-grid { gap: 22px; }
.home-page .anime-card,
.home-page .anime-card:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.home-page .anime-card:hover { transform: translateY(-6px); }
.home-page .anime-card-poster-wrap {
  border-radius: 14px;
  box-shadow: 0 20px 36px -28px #000;
}
.home-page .anime-card-info { padding: 12px 2px 0; }
.home-page .anime-card-title { font-size: 14.5px; margin-bottom: 4px; }
.home-page .anime-card-cat { font-size: 11.5px; color: #8b8b95; letter-spacing: 0; text-transform: none; }

/* Filtr/kateqoriya düymələri */
.home-page .filter-bar {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
}
.home-page .filter-open-btn,
.home-page .filter-chip,
.home-page .filter-tab-btn { border-radius: 999px; }
.home-page .filter-chip.active,
.home-page .filter-tab-btn.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }

/* Bölmə başlığı + sağ/sol düymələri */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 18px;
  position: relative;
}
.section-head .section-title { margin: 0; }
.row-nav { display: flex; gap: 8px; flex: none; }
.row-nav button {
  width: 36px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #d8d8de;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.row-nav button:hover {
  background: var(--accent-color);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(255, 59, 31, .9);
}
.row-nav button:focus-visible { outline: 2px solid #ff6a4d; outline-offset: 2px; }

/* --- Bildiriş zili + animasiyalar --- */
.bell-btn {
  background: #141519;
  border: 1px solid rgba(255, 255, 255, .09);
  color: #e9e9ee;
}
.bell-btn .bell-svg {
  width: 21px;
  height: 21px;
  display: block;
  transform-origin: 50% 16%;
}
.bell-btn .bell-spark { fill: #ff4a2b; stroke: none; }
.bell-btn:hover {
  background: #200f0c;
  border-color: rgba(255, 106, 77, .55);
  box-shadow: 0 0 20px -6px rgba(255, 59, 31, .65);
}
.bell-btn:hover .bell-svg { animation: axBellSwing .8s ease-in-out; }
.bell-btn.ring .bell-svg { animation: axBellRing 1.05s cubic-bezier(.36, .07, .19, .97); }
.bell-btn.has-unread {
  border-color: rgba(255, 90, 60, .45);
  box-shadow: 0 0 0 1px rgba(255, 59, 31, .16), 0 0 22px -6px rgba(255, 59, 31, .5);
}
.bell-btn.has-unread .bell-svg { animation: axBellNudge 4.4s ease-in-out infinite; }
.bell-badge { animation: axBadgeIn .3s ease-out; }
.bell-badge.pop { animation: axBadgePop .62s cubic-bezier(.2, 1.6, .4, 1); }
.notif-panel { animation: axNotifDrop .22s cubic-bezier(.2, .9, .3, 1.05); transform-origin: top right; }
.notif-list .notif-item { animation: axNotifItem .3s ease-out both; }
.notif-list .notif-item:nth-child(2) { animation-delay: .03s; }
.notif-list .notif-item:nth-child(3) { animation-delay: .06s; }
.notif-list .notif-item:nth-child(4) { animation-delay: .09s; }
.notif-list .notif-item:nth-child(5) { animation-delay: .12s; }
.notif-item .notif-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .05); font-size: 15px; }
.notif-item.unread .notif-icon { background: rgba(255, 59, 31, .16); }

@keyframes axBellSwing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(13deg); }
  40% { transform: rotate(-11deg); }
  60% { transform: rotate(7deg); }
  80% { transform: rotate(-4deg); }
}
@keyframes axBellRing {
  0% { transform: rotate(0); }
  10% { transform: rotate(18deg); }
  25% { transform: rotate(-16deg); }
  40% { transform: rotate(12deg); }
  55% { transform: rotate(-9deg); }
  70% { transform: rotate(6deg); }
  85% { transform: rotate(-3deg); }
  100% { transform: rotate(0); }
}
@keyframes axBellNudge {
  0%, 82%, 100% { transform: rotate(0); }
  86% { transform: rotate(9deg); }
  90% { transform: rotate(-7deg); }
  94% { transform: rotate(4deg); }
}
@keyframes axBadgeIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes axBadgePop {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
@keyframes axNotifDrop {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes axNotifItem { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* --- Qeydiyyat ekranı --- */
.auth-register-form { display: flex; flex-direction: column; }
.auth-intro { text-align: center; margin: -2px 0 18px; }
.auth-intro-ico {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #ff7a5c;
  background: linear-gradient(160deg, #2a0f0b, #141416 70%);
  border: 1px solid rgba(255, 90, 60, .35);
  box-shadow: 0 14px 30px -20px rgba(255, 59, 31, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.auth-intro h4 { font-size: 19px; color: #fff; letter-spacing: -.01em; margin-bottom: 4px; }
.auth-intro p { font-size: 12.5px; color: #8f8f99; line-height: 1.55; }
.auth-label-hint { font-weight: 400; color: #7d7d87; font-size: 11px; text-transform: none; letter-spacing: 0; }
.auth-terms {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 4px 0 16px;
  font-size: 12.5px;
  color: #9a9aa4;
  line-height: 1.5;
  cursor: pointer;
}
.auth-terms input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--accent-color);
  cursor: pointer;
}
.auth-legal-link {
  background: none;
  border: none;
  padding: 0;
  color: #ff7a5c;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.auth-legal-link:hover { color: #ff9b83; }
.auth-submit { width: 100%; min-height: 44px; font-size: 14.5px; margin-top: 4px; }
.auth-switch { text-align: center; font-size: 12.5px; color: #8f8f99; margin-top: 12px; }
.auth-switch button {
  background: none;
  border: none;
  padding: 2px;
  color: #ff7a5c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-switch button:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  #auth-modal .modal-card { padding: 52px 18px 22px; }
  #auth-modal .modal-card > .modal-close-btn { top: 10px; right: 10px; }
  .home-page .continue-grid { grid-template-columns: 1fr; }
  .home-page .anime-grid { gap: 14px; }
  .row-nav button { width: 34px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .bell-btn:hover .bell-svg,
  .bell-btn.ring .bell-svg,
  .bell-btn.has-unread .bell-svg,
  .bell-badge,
  .bell-badge.pop,
  .notif-panel,
  .notif-list .notif-item { animation: none !important; }
}

/* ============================================================
   v8.8 — Bildiriş ikonu, davam et kartı, yeni bölümlər, səhifə keçidi
   ============================================================ */

/* Bildiriş: ətrafındakı oval yoxdur — yalnız ikon */
.bell-btn,
.bell-btn:hover,
.bell-btn.has-unread {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  color: #e9e9ee;
}
.bell-btn:hover { color: #ff6a4d; }
.bell-btn.has-unread { color: #ffffff; }
.bell-btn:focus-visible { outline: 2px solid rgba(255, 106, 77, .7); outline-offset: 2px; }
.bell-badge { top: -1px; right: 1px; border-color: #0e0f12; }

/* İzləməyə davam et: pill nişanlı, qutusuz kart */
.home-page .continue-grid {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}
.home-page .continue-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  padding: 10px;
  gap: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  overflow: visible;
}
.home-page .continue-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 80, 55, .35);
  box-shadow: 0 22px 44px -30px #000;
}
.home-page .continue-link { display: flex; align-items: stretch; gap: 12px; flex: 1; }
.home-page .continue-poster {
  position: relative;
  flex: 0 0 126px;
  border-radius: 12px;
  overflow: hidden;
  background: #14151a;
}
.home-page .continue-thumb {
  width: 100%;
  height: 100%;
  min-height: 92px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}
.home-page .continue-pills {
  position: absolute;
  top: 7px;
  left: 7px;
  right: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.continue-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.55;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.continue-pill.ep {
  background: linear-gradient(135deg, #ef3b1e, #a91101);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(255, 59, 31, .9);
}
.continue-pill.when {
  background: rgba(8, 8, 10, .78);
  color: #dcdce2;
  border: 1px solid rgba(255, 255, 255, .14);
}
.home-page .continue-details {
  padding: 2px 26px 2px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
.home-page .continue-title { font-size: 14px; }
.home-page .continue-ep-info { margin-top: 0; font-size: 11.5px; }
.continue-next {
  margin-top: 6px;
  align-self: flex-start;
  background: transparent;
  padding: 0;
  font-size: 11.5px;
  color: #ff7a5c;
}
.continue-next:hover { background: transparent; color: #ffa48e; }
.continue-done { margin-top: 6px; font-size: 11.5px; color: #4bd07a; }
.home-page .continue-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(10, 10, 12, .82);
  color: #b9b9c2;
  font-size: 11px;
  line-height: 1;
}
.home-page .continue-remove:hover { color: #fff; border-color: rgba(255, 90, 60, .6); background: rgba(169, 17, 1, .5); }

/* Yeni əlavə olunan bölümlər */
.new-eps-wrap {
  max-width: 1560px;
  margin: 0 auto 44px;
  padding-inline: clamp(16px, 4vw, 48px);
}
.new-eps-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.new-eps-row::-webkit-scrollbar { display: none; width: 0; height: 0; }
.new-ep-card {
  flex: 0 0 236px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
}
.new-ep-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 18px 32px -26px #000;
}
.new-ep-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform .4s ease;
}
.new-ep-card:hover .new-ep-poster img { transform: scale(1.06); }
.new-ep-poster::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(6, 6, 8, .8));
  pointer-events: none;
}
.new-ep-pill {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ef3b1e, #a91101);
  box-shadow: 0 8px 18px -10px rgba(255, 59, 31, .9);
}
.new-ep-play {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
}
.new-ep-card:hover .new-ep-play {
  background: linear-gradient(135deg, #ef3b1e, #a91101);
  border-color: transparent;
  transform: scale(1.06);
}
.new-ep-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.new-ep-meta { font-size: 11.5px; color: #8b8b95; }

/* Səhifə keçidi: yüklənmə animasiyası */
#ax-page-loader {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 44%, #191110 0%, #09090b 48%, #040405 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility .45s ease;
}
#ax-page-loader.ax-loader-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ax-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 8px;
}
.ax-loader-mark {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
}
.ax-loader-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 60, .32);
  box-shadow: inset 0 0 42px -6px rgba(255, 59, 31, .5), 0 0 60px -18px rgba(255, 59, 31, .75);
  animation: axLoaderPulse 1.7s ease-in-out infinite;
}
.ax-loader-mark img {
  width: 58px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 59, 31, .55));
  animation: axLoaderFloat 1.7s ease-in-out infinite;
}
.ax-loader-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: #e9e9ee;
  animation: axLoaderBlink 1.7s ease-in-out infinite;
}
.ax-loader-bar {
  width: 150px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.ax-loader-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff4a2b, #a91101);
  animation: axLoaderBar 1.15s cubic-bezier(.45, .05, .55, .95) infinite;
}
@keyframes axLoaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes axLoaderPulse {
  0%, 100% { opacity: .55; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.02); }
}
@keyframes axLoaderBlink {
  0%, 100% { opacity: .95; }
  50% { opacity: .5; }
}
@keyframes axLoaderBar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(340%); }
}

@media (max-width: 560px) {
  .home-page .continue-grid { grid-template-columns: 1fr; }
  .home-page .continue-poster { flex: 0 0 108px; }
  .new-ep-card { flex: 0 0 190px; }
  .ax-loader-mark { width: 86px; height: 86px; }
  .ax-loader-mark img { width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-loader-mark img,
  .ax-loader-mark::before,
  .ax-loader-text,
  .ax-loader-bar span { animation: none !important; }
}

/* ============================================================
   v8.9 — Dizayn yenilənməsi: düymələr, keçidlər, anime səhifəsi,
   davam et, mini pleyer, giriş səhifəsi, admin mənbə qutuları
   ============================================================ */

/* --- Bildiriş ikonu: sarı, dairəsiz; boş olanda nöqtə yoxdur --- */
.notif-wrapper .bell-btn,
.notif-wrapper .bell-btn:hover,
.notif-wrapper .bell-btn.has-unread {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  color: #f5c518;
}
.notif-wrapper .bell-btn:hover { color: #ffd84d; }
.notif-wrapper .bell-btn.has-unread { color: #f5c518; }
.notif-wrapper .bell-btn .bell-svg,
.notif-wrapper .bell-btn .bell-clapper { stroke: currentColor; }
.bell-badge { background: #e63325; border-color: #0b0b0d; }

/* --- Düymələr: daha yumşaq künclər, dərinlik, aydın hover --- */
.btn-primary,
a.btn-primary {
  border-radius: 11px;
  background: linear-gradient(135deg, #e8280f 0%, #a91101 58%, #8a0e01 100%);
  box-shadow: 0 10px 22px -14px rgba(255, 59, 31, .95), inset 0 1px 0 rgba(255, 255, 255, .18);
  letter-spacing: .01em;
  padding: 10px 20px;
}
.btn-primary:hover,
a.btn-primary:hover {
  transform: translateY(-1px);
  filter: none;
  background: linear-gradient(135deg, #ff3a1c 0%, #bb1402 58%, #9a1002 100%);
  box-shadow: 0 14px 26px -14px rgba(255, 59, 31, 1), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:active, a.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  border-radius: 11px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 10px 18px;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .22);
}
.btn-danger {
  border-radius: 11px;
  background: rgba(214, 48, 34, .16);
  border: 1px solid rgba(230, 51, 37, .45);
  color: #ff8577;
  padding: 9px 14px;
}
.btn-danger:hover { background: #d92b1c; border-color: transparent; color: #fff; }
.link-btn { border-radius: 9px; }

/* --- Hero → kateqoriyalar arası yumşaq keçid --- */
.hero-carousel { margin-bottom: 0; }
.hero-carousel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(110px, 20vh, 220px);
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 4, 5, 0) 0%, rgba(4, 4, 5, .55) 42%, rgba(4, 4, 5, .92) 74%, var(--bg-color) 100%);
}
.hero-carousel .hero-ui { z-index: 6; }
.home-page #main-content > .cw-section:first-of-type,
.home-page #main-content > .new-eps-wrap:first-of-type { margin-top: 34px; }

/* --- İzləməyə davam et: digər kateqoriyalarla eyni üslub --- */
.cw-section {
  max-width: 1560px;
  margin: 40px auto 46px;
  padding-inline: clamp(16px, 4vw, 48px);
}
.cw-section .section-head { margin-bottom: 14px; }
.cw-head-tools { display: flex; align-items: center; gap: 14px; }
.cw-clear {
  background: transparent;
  border: 0;
  color: #8b8b95;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 2px;
  transition: color .2s ease;
}
.cw-clear:hover { color: #ff7a5c; }
.cw-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 59, 31, .45) transparent;
}
.cw-grid::-webkit-scrollbar { height: 6px; }
.cw-grid::-webkit-scrollbar-track { background: transparent; }
.cw-grid::-webkit-scrollbar-thumb { background: rgba(255, 59, 31, .4); border-radius: 3px; }
.cw-card-wrap {
  position: relative;
  flex: 0 0 210px;
  min-width: 0;
  scroll-snap-align: start;
}
.cw-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.cw-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 20px 34px -28px #000;
}
.cw-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.cw-card:hover .cw-poster img { transform: scale(1.05); }
.cw-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(4, 4, 6, .72) 100%);
  pointer-events: none;
}
.cw-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2d9cf0;
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .8);
  transition: transform .2s ease, background .2s ease;
}
.cw-play svg { margin-left: 2px; }
.cw-card:hover .cw-play { transform: translate(-50%, -50%) scale(1.08); background: #46aef8; }
.cw-ep-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ef3b1e, #a91101);
  box-shadow: 0 8px 18px -10px rgba(255, 59, 31, .9);
}
.cw-when {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #e7e7ee;
  background: rgba(8, 8, 10, .78);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cw-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-meta { font-size: 11.5px; color: #8b8b95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(9, 9, 11, .8);
  color: #c6c6cf;
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
}
.cw-card-wrap:hover .cw-remove { opacity: 1; }
.cw-remove:hover { background: rgba(169, 17, 1, .75); color: #fff; border-color: transparent; }
/* --- Anime detal səhifəsi --- */
.adetail {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(26px, 4vw, 54px) clamp(16px, 4vw, 48px) clamp(10px, 2vw, 24px);
  overflow: hidden;
  isolation: isolate;
}
.adetail-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  z-index: 0;
  /* Alt kənar fon rənginə yumşaq şəkildə əriyir */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.adetail-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 4, 5, .5) 0%, rgba(4, 4, 5, .82) 55%, var(--bg-color) 100%),
    radial-gradient(60% 90% at 20% 40%, rgba(169, 17, 1, .18), transparent 70%);
}
.adetail-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: clamp(22px, 3.5vw, 46px);
}
.adetail-poster-col { flex: 0 0 clamp(168px, 19vw, 244px); }
.adetail-poster-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 26px 50px -30px #000, 0 0 0 1px rgba(0, 0, 0, .4);
  background: #101116;
}
.adetail-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.adetail-poster-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.adetail-poster-actions .btn-primary,
.adetail-poster-actions .btn-secondary { width: 100%; padding: 10px 12px; font-size: 13px; }
.adetail-list-btn { justify-content: center; }
.adetail-main { flex: 1; min-width: 0; padding-top: 6px; }
.adetail-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #ff8a70;
  margin-bottom: 10px;
}
.adetail-title {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 14px;
}
.adetail-year { font-size: .55em; font-weight: 600; color: #9a9aa3; letter-spacing: 0; }
.adetail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #b9b9c2;
  margin-bottom: 20px;
}
.ad-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.adetail-score { color: #ffd166; font-weight: 800; }
.adetail-votes { color: #8b8b95; font-weight: 500; margin-left: -4px; }
.adetail-status { display: inline-flex; align-items: center; gap: 6px; }
.adetail-status i { width: 7px; height: 7px; border-radius: 50%; background: #38d39f; box-shadow: 0 0 8px rgba(56, 211, 159, .8); }
.adetail-status.completed i { background: #7dd3fc; box-shadow: 0 0 8px rgba(125, 211, 252, .7); }
.adetail-status.upcoming i, .adetail-status.hiatus i { background: #ffb020; box-shadow: 0 0 8px rgba(255, 176, 32, .7); }
.adetail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.adetail-actions .btn-primary { padding: 12px 24px; }
.adetail-desc-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8b8b95;
  margin-bottom: 8px;
}
.adetail-desc {
  color: #cfcfd7;
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 18px;
  white-space: pre-line;
  max-width: 78ch;
}
.adetail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.adetail-tag {
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #d6d6de;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.adetail-airday { color: #a9a9b3; font-size: 13px; margin-bottom: 14px; }
.adetail-airday strong { color: #fff; }

.adetail-eps {
  max-width: 1180px;
  margin: 34px auto 0;
  padding-inline: clamp(16px, 4vw, 0px);
}
.adetail-eps-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.adetail-eps-title { grid-column: 2; text-align: center; }
.adetail-eps-title h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: #fff; }
.adetail-eps-title span { font-size: 12.5px; color: #8b8b95; }
.adetail-season-pick {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8b8b95;
}
.adetail-season-pick select {
  background: #121318;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.adetail-season-pick select:focus { outline: none; border-color: rgba(255, 90, 60, .55); }
.adetail-ep-list { display: flex; flex-direction: column; gap: 12px; }
.adetail-ep {
  display: flex;
  gap: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, .028);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.adetail-ep:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 90, 60, .34);
  transform: translateY(-1px);
}
.adetail-ep.watched { opacity: .78; }
.adetail-ep-thumb {
  position: relative;
  flex: 0 0 clamp(150px, 19vw, 226px);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #101116;
}
.adetail-ep-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(.95); }
.adetail-ep-thumb-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .62)); }
.adetail-ep-num {
  position: absolute;
  left: 9px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  color: #fff;
  background: rgba(8, 8, 10, .62);
  border: 1px solid rgba(255, 255, 255, .12);
}
.adetail-ep-play, .adetail-ep-lock {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  font-size: 11px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .2s ease;
}
.adetail-ep:hover .adetail-ep-play { background: linear-gradient(135deg, #ef3b1e, #a91101); border-color: transparent; }
.adetail-ep-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 4px 6px 4px 0; }
.adetail-ep-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.adetail-ep-top h4 { font-size: 14.5px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adetail-ep-date { flex-shrink: 0; font-size: 11.5px; color: #8b8b95; }
.adetail-ep-sub { font-size: 12.5px; color: #85858f; line-height: 1.55; }
.adetail-ep-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.adetail-ep-chip {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #a9a9b3;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}
.adetail-ep-chip.ok { color: #4bd07a; border-color: rgba(75, 208, 122, .3); background: rgba(75, 208, 122, .08); }
.adetail-ep-chip.vip { color: #ffd700; border-color: rgba(255, 215, 0, .3); background: rgba(255, 215, 0, .08); }
.adetail-empty {
  padding: 34px 20px;
  text-align: center;
  color: #7c7c86;
  background: rgba(255, 255, 255, .025);
  border: 1px dashed rgba(255, 255, 255, .1);
  border-radius: 14px;
}
/* --- Sayt içi mini pleyer --- */
.ax-mini {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000;
  width: min(360px, calc(100vw - 32px));
  border-radius: 14px;
  overflow: hidden;
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 30px 60px -24px #000, 0 0 0 1px rgba(0, 0, 0, .6);
  animation: axMiniIn .28s cubic-bezier(.2, .9, .3, 1.05);
}
.ax-mini[hidden] { display: none; }
@keyframes axMiniIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ax-mini-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 12px;
  background: linear-gradient(180deg, #17181e, #101116);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.ax-mini-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ax-mini-titles strong { font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-mini-titles span { font-size: 10.5px; color: #8b8b95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-mini-actions { display: flex; gap: 2px; flex-shrink: 0; }
.ax-mini-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: #b9b9c2;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.ax-mini-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ax-mini-close:hover { background: rgba(214, 48, 34, .85); }
.ax-mini-body { aspect-ratio: 16 / 9; background: #000; }
.ax-mini-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.ax-mini.is-folded .ax-mini-body { display: none; }
.ax-mini.is-folded { width: min(300px, calc(100vw - 32px)); }
.ax-mini.is-folded #ax-mini-fold svg { transform: rotate(180deg); }

/* --- Giriş / qeydiyyat səhifəsi --- */
body.auth-page {
  display: block;
  background: #060608;
  min-height: 100vh;
}
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); min-height: 100vh; }
.auth-panel { padding: clamp(18px, 3vw, 34px) clamp(18px, 5vw, 68px) 40px; display: flex; flex-direction: column; }
.auth-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(28px, 6vh, 64px); }
.auth-back { display: inline-flex; align-items: center; gap: 7px; color: #9a9aa4; font-size: 13px; text-decoration: none; transition: color .2s ease; }
.auth-back:hover { color: #fff; }
.auth-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.auth-logo img { width: 34px; height: 34px; object-fit: contain; }
.auth-logo span { font-size: 15px; font-weight: 800; letter-spacing: .1em; color: #fff; }
.auth-logo em { color: var(--accent-color); font-style: normal; }
.auth-form-wrap { width: min(420px, 100%); margin: 0 auto; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 4vh; }
.auth-heading { margin-bottom: 22px; }
.auth-heading h1 { font-size: clamp(25px, 3vw, 32px); font-weight: 900; color: #fff; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-heading p { font-size: 13.5px; color: #8f8f99; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #101116;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  margin-bottom: 20px;
}
.auth-tab {
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #9a9aa4;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.auth-tab:hover { color: #fff; }
.auth-tab.is-active {
  background: linear-gradient(135deg, #e8280f, #a91101);
  color: #fff;
  box-shadow: 0 8px 18px -12px rgba(255, 59, 31, .95), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form[hidden] { display: none; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field > span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9a9aa4;
}
.auth-field > span em { font-style: normal; font-weight: 600; letter-spacing: .04em; text-transform: none; color: #6f6f79; }
.auth-field > span b { color: #ff6a4d; font-weight: 800; }
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #101116;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 11px;
  padding: 0 12px;
  height: 44px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.auth-input-wrap:focus-within {
  border-color: rgba(255, 90, 60, .6);
  background: #121318;
  box-shadow: 0 0 0 3px rgba(169, 17, 1, .14);
}
.auth-field-ico { color: #6f6f79; flex-shrink: 0; }
.auth-input-wrap:focus-within .auth-field-ico { color: #ff8a70; }
.auth-input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  height: 100%;
}
.auth-input-wrap input::placeholder { color: #62626c; }
.auth-eye {
  border: 0;
  background: transparent;
  color: #9a9aa4;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
}
.auth-eye:hover { color: #fff; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #b3b3bd; cursor: pointer; }
.auth-check input { width: 15px; height: 15px; accent-color: var(--accent-color); cursor: pointer; }
.auth-link {
  border: 0;
  background: transparent;
  color: #ff8a70;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
.auth-link:hover { color: #ffab97; text-decoration: underline; }
.auth-submit { width: 100%; justify-content: center; padding: 13px 18px; font-size: 14px; margin-top: 4px; }
.auth-switch { text-align: center; font-size: 12.5px; color: #8f8f99; margin-top: 2px; }
.auth-terms-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: #77777f;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 9px;
  padding: 9px 11px;
}
.auth-forgot-text { font-size: 13px; line-height: 1.65; color: #9a9aa4; margin-bottom: 4px; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 12px;
  color: #6b6b74;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .08); }
.auth-guest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  color: #c9c9d2;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.auth-guest:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); color: #fff; }
.auth-alert {
  margin-top: 16px;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  border: 1px solid rgba(230, 51, 37, .4);
  background: rgba(230, 51, 37, .1);
  color: #ff9d92;
}
.auth-alert[hidden] { display: none; }
.auth-alert.success { border-color: rgba(75, 208, 122, .35); background: rgba(75, 208, 122, .1); color: #7ee2a1; }
.auth-visual { position: relative; overflow: hidden; min-height: 100vh; }
.auth-visual-bg {
  position: absolute;
  inset: 0;
  background: url('/img/auth-bg.jpg') center / cover no-repeat;
  transform: scale(1.03);
}
.auth-visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(6, 6, 8, .15), rgba(6, 6, 8, .55) 100%),
    linear-gradient(0deg, rgba(6, 6, 8, .85), rgba(6, 6, 8, .1) 55%);
}
.auth-visual-card {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(430px, 82%);
  padding: 30px 28px;
  border-radius: 18px;
  background: rgba(10, 10, 14, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px -40px #000;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  text-align: center;
}
.auth-visual-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; }
.auth-visual-logo img { width: 54px; height: 54px; object-fit: contain; }
.auth-visual-logo div { text-align: left; }
.auth-visual-logo strong { display: block; font-size: 23px; font-weight: 900; letter-spacing: .06em; color: #fff; }
.auth-visual-logo em { font-style: normal; color: #2d9cf0; }
.auth-visual-logo span { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: .22em; color: #8f8f99; margin-top: 4px; }
.auth-visual-card p { font-size: 12.5px; line-height: 1.7; color: #cfcfd8; margin-bottom: 18px; }
.auth-socials { display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #d7d7df;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.auth-socials a:hover { background: rgba(169, 17, 1, .6); border-color: transparent; color: #fff; transform: translateY(-2px); }
.auth-socials img { width: 18px; height: 18px; object-fit: contain; }

/* --- Admin: mənbə sətirləri (yazılar qutuların içində) --- */
.source-row-box {
  background: rgba(255, 255, 255, .022);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 14px;
  padding: 11px;
  margin-bottom: 10px;
}
.source-row { display: flex; align-items: stretch; gap: 9px; }
.src-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  background: #0e0f13;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  padding: 7px 11px 8px;
  transition: border-color .2s ease, background .2s ease;
}
.src-field:focus-within { border-color: rgba(255, 90, 60, .55); background: #101116; }
.src-field > span {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7f7f89;
  line-height: 1.4;
}
.src-field:focus-within > span { color: #ff8a70; }
.src-field-url { flex: 2.1; }
.source-row .src-field .admin-input {
  width: 100%;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  color: #fff;
}
.source-row .src-field .admin-input:focus { border: 0; box-shadow: none; background: transparent; }
.source-row .src-field .admin-input::placeholder { color: #55555e; }
.src-remove { flex: 0 0 46px; align-self: center; height: 42px; border-radius: 10px; font-size: 14px; }
.source-uploader { margin-top: 8px; font-size: 11.5px; color: #8b8b95; }
.source-uploader strong { color: #c9c9d2; }

/* --- Kiçik ekranlar --- */
@media (max-width: 1100px) {
  .cw-card-wrap { flex-basis: calc((100% - 48px) / 4); }
  .adetail-poster-col { flex-basis: clamp(150px, 22vw, 200px); }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; }
  .auth-form-wrap { justify-content: flex-start; padding-top: 10px; }
  .cw-card-wrap { flex-basis: calc((100% - 32px) / 3); }
  .adetail-inner { flex-wrap: wrap; }
  .adetail-poster-col { flex: 0 0 132px; width: 132px; }
  .adetail-poster-actions .btn-secondary span { display: none; }
  .adetail-eps-head { grid-template-columns: 1fr auto; }
  .adetail-eps-title { grid-column: 1; text-align: left; }
  .adetail-season-pick { grid-column: 2; }
}
@media (max-width: 640px) {
  .cw-card-wrap { flex-basis: calc((100% - 16px) / 2); min-width: 138px; }
  .cw-section { margin-top: 30px; }
  .adetail { padding-top: 22px; }
  .adetail-inner { gap: 16px; }
  .adetail-poster-col { flex-basis: 108px; width: 108px; }
  .adetail-title { font-size: 24px; }
  .adetail-desc { font-size: 13.5px; }
  .adetail-ep { gap: 11px; padding: 8px; }
  .adetail-ep-thumb { flex-basis: 120px; }
  .adetail-ep-top { flex-direction: column; gap: 2px; }
  .adetail-ep-top h4 { white-space: normal; font-size: 13.5px; }
  .adetail-ep-sub { display: none; }
  .adetail-eps-head { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .source-row { flex-wrap: wrap; }
  .src-field { flex: 1 1 calc(50% - 10px); }
  .src-field-url { flex-basis: 100%; }
  .src-remove { flex: 0 0 100%; height: 36px; }
  .ax-mini { right: 12px; bottom: 12px; left: 12px; width: auto; }
}

/* ============================================================
   v7.4 — dizayn düzəlişləri
   1) Qırmızı düymələr: kvadrat, tək rəngli
   2) Giriş səhifəsi: panellər yerini dəyişir, arxa fon #000000
   3) Trend anime → kateqoriyalar: xətt yerinə blurlu rəng keçidi
   4) Bölüm izləmə: bölümlər videonun sağında
   ============================================================ */

/* --- 1. Bütün qırmızı düymələr: kvadrat və tək rəngli qırmızı --- */
.btn-primary,
a.btn-primary,
.btn-danger,
.nav-ep-btn,
.hero-btn-play,
.auth-tab.is-active {
  background: var(--accent-color) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
.btn-primary:hover,
a.btn-primary:hover,
.btn-danger:hover,
.nav-ep-btn:hover:not(:disabled),
.hero-btn-play:hover,
.auth-tab.is-active:hover {
  background: var(--accent-color) !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
/* Aktiv vəziyyət (məs. xəbərdarlıq düyməsi) yaşıl qalır */
.btn-primary.is-on { background: #1f7a3d !important; }

/* --- 2. Giriş səhifəsi: loqo paneli solda, giriş paneli sağda --- */
.auth-panel { order: 2; }
.auth-visual { order: 1; }
.auth-visual-bg { background: #000000; background-image: none; transform: none; }
.auth-visual-logo em { color: var(--accent-color); }
.auth-visual-card { padding: 26px 24px; }

/* --- 3. Trend anime ilə kateqoriyalar arasında blurlu rəng keçidi --- */
.hero-carousel { background: transparent; }
.hero-carousel::after {
  content: '';
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -56px;
  height: 180px;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(52% 120% at 24% 100%, rgba(169, 17, 1, .55), transparent 72%),
    radial-gradient(48% 110% at 78% 100%, rgba(58, 78, 168, .36), transparent 74%),
    linear-gradient(180deg, rgba(14, 15, 18, 0) 0%, rgba(14, 15, 18, .55) 55%, #0e0f12 100%);
  filter: blur(20px);
}
.hero-slide-shade {
  background:
    linear-gradient(90deg, rgba(2, 2, 3, .97) 0%, rgba(2, 2, 3, .9) 30%, rgba(2, 2, 3, .55) 58%, rgba(2, 2, 3, .08) 100%),
    linear-gradient(0deg, #0e0f12 0%, rgba(14, 15, 18, .74) 18%, rgba(14, 15, 18, 0) 58%),
    linear-gradient(180deg, rgba(3, 3, 4, .92) 0%, rgba(3, 3, 4, 0) 26%);
}

/* --- 4. Bölüm izləmə: bölümlər videonun sağında + yükləyən profili --- */
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.watch-main { min-width: 0; }
.watch-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.watch-side-eps { background: #0f1013; border: 1px solid #242424; border-radius: 12px; padding: 14px; }
.watch-side-eps .section-title { font-size: 16px; }
.watch-uploader-card {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: #0f1013; border: 1px solid #242424; border-radius: 12px; padding: 11px 13px;
  cursor: pointer; color: #fff; font-family: inherit; transition: var(--transition);
}
.watch-uploader-card:hover { border-color: var(--accent-color); background: #17181c; }
.watch-uploader-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-color); flex: none; }
.watch-uploader-name { display: block; font-size: 13.5px; font-weight: 700; }
.watch-uploader-role { display: block; font-size: 11.5px; color: #8b8b95; margin-top: 2px; }
.episodes-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.episodes-list .episode-card { min-height: 0; padding: 10px 12px; }
.episodes-list .episode-number { font-size: 13px; margin-bottom: 4px; }
.episodes-list .episode-title { font-size: 12px; }
.episodes-list .episode-date { font-size: 11px; color: #777; margin-top: 4px; }
@media (max-width: 1024px) {
  .watch-grid { grid-template-columns: 1fr; }
  .watch-side { position: static; }
  .episodes-list { max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ============================================================
   v7.5 — düzəlişlər
   1) Hero keçidi: bozdan qaraya + kateqoriyalar bir az aşağıda
   2) Bölüm siyahısında önizləmə şəkilləri
   3) Şərhlərdə şəkil/GIF + profilə klik
   ============================================================ */

/* --- 1. Hero → kateqoriyalar keçidi --- */
.hero-carousel { margin-bottom: 6px; }
.hero-carousel::after {
  left: -6%;
  right: -6%;
  bottom: -58px;
  height: 188px;
  background:
    radial-gradient(52% 120% at 24% 100%, rgba(150, 150, 158, .28), transparent 72%),
    radial-gradient(48% 110% at 78% 100%, rgba(92, 92, 100, .22), transparent 74%),
    linear-gradient(180deg, rgba(4, 4, 5, 0) 0%, rgba(4, 4, 5, .62) 52%, #040405 100%);
  filter: blur(22px);
}
.hero-slide-shade {
  background:
    linear-gradient(90deg, rgba(4, 4, 5, .97) 0%, rgba(4, 4, 5, .9) 30%, rgba(4, 4, 5, .55) 58%, rgba(4, 4, 5, .08) 100%),
    linear-gradient(0deg, #040405 0%, rgba(4, 4, 5, .78) 18%, rgba(4, 4, 5, 0) 58%),
    linear-gradient(180deg, rgba(4, 4, 5, .92) 0%, rgba(4, 4, 5, 0) 26%);
}
.hero-slide-glow {
  background: radial-gradient(closest-side, rgba(190, 190, 198, .16), transparent 72%);
}
.home-page #main-content > .cw-section:first-of-type,
.home-page #main-content > .new-eps-wrap:first-of-type {
  margin-top: 74px;
}

/* --- 2. Bölüm siyahısı: önizləmə şəkli --- */
.episodes-list .episode-card.ep-with-thumb {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.episode-thumb {
  position: relative;
  flex: 0 0 86px;
  width: 86px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.episode-thumb-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .05));
}
.episode-thumb-ico {
  position: absolute; top: 4px; right: 5px;
  font-size: 10px; line-height: 1; text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}
.episode-thumb-ico.ok { color: #2ecc71; }
.episode-info { flex: 1; min-width: 0; }
.episode-card.is-current .episode-number > span:first-child { color: var(--accent-color); }

/* --- 3. Şərhlər: şəkil/GIF və profil linki --- */
.comment-image-input { display: none; }
.comment-tools-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.comment-image-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #181818; border: 1px solid #333; border-radius: 6px;
  color: #dddddd; font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 12px; cursor: pointer; transition: var(--transition);
}
.comment-image-btn:hover { border-color: var(--accent-color); color: #fff; }
.comment-image-preview { position: relative; display: inline-block; margin-top: 10px; }
.comment-image-preview[hidden] { display: none; }
.comment-image-preview img { display: block; max-width: 240px; max-height: 160px; border-radius: 8px; border: 1px solid #333; }
.comment-image-preview button {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: var(--accent-color); color: #fff; cursor: pointer; font-size: 14px; line-height: 1;
}
.comment-image { margin-top: 10px; }
.comment-image img { display: block; max-width: 100%; max-height: 360px; border-radius: 10px; border: 1px solid #2a2a2a; }
.comment-avatar-btn { background: none; border: 0; padding: 0; cursor: pointer; flex: none; line-height: 0; border-radius: 50%; }
.comment-avatar-btn:hover .comment-avatar { border-color: var(--accent-bright); }
.comment-author-link {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 700;
  color: #ffffff; cursor: pointer;
}
.comment-author-link:hover { color: var(--accent-color); text-decoration: underline; }
.member-profile-card { text-align: center; padding: 6px 4px 4px; }
.member-profile-avatar {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent-color);
}
.member-profile-name { font-size: 21px; font-weight: 800; margin: 14px 0 6px; }
.member-profile-role { font-size: 12.5px; color: #8b8b95; }
.member-profile-about { font-size: 14px; color: #cccccc; line-height: 1.7; margin-top: 16px; }
@media (max-width: 640px) {
  .home-page #main-content > .cw-section:first-of-type { margin-top: 56px; }
  .comment-image-preview img { max-width: 100%; }
}

/* Bölüm önizləmələri: dar ekranda grid kartları sıxılmasın */
@media (max-width: 1024px) {
  .episodes-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .episode-thumb { flex-basis: 76px; width: 76px; height: 44px; }
}
@media (max-width: 640px) {
  .episodes-list { grid-template-columns: 1fr; }
}

/* ============================================================
   v7.6 — düzəlişlər
   1) Hero → kateqoriyalar: kəsilməz keçid, ara zolaq yoxdur
   2) Reytinq bölməsi: böyük 1-ci yer + nəhəng sıra nömrələri
   ============================================================ */

/* --- 1. Hero altı: vahid fon, işıq zolağı və boşluq yoxdur --- */
body.home-page { background-color: #040405; }
.hero-carousel { background: #040405; margin-bottom: 0; }
.hero-carousel::after { display: none; }
.hero-slide-shade {
  background:
    linear-gradient(90deg, rgba(4, 4, 5, .97) 0%, rgba(4, 4, 5, .9) 30%, rgba(4, 4, 5, .55) 58%, rgba(4, 4, 5, .08) 100%),
    linear-gradient(0deg, #040405 0%, rgba(4, 4, 5, .9) 10%, rgba(4, 4, 5, .42) 30%, rgba(4, 4, 5, 0) 62%),
    linear-gradient(180deg, rgba(4, 4, 5, .92) 0%, rgba(4, 4, 5, 0) 26%);
}
.home-page #main-content > .cw-section:first-of-type,
.home-page #main-content > .new-eps-wrap:first-of-type { margin-top: 26px; }

/* --- 2. Ən yüksək reytinqlilər: 1-ci yer geniş afişa, qalanlar poster zolağı --- */
.top-rated-row { align-items: flex-end; gap: 34px; overflow-x: auto; padding: 8px 2px 18px; }
.top-card { flex: 0 0 150px; position: relative; display: flex; flex-direction: column; gap: 7px; }
.top-rated-row .top-card > img {
  position: relative; z-index: 1;
  width: 100%; height: auto; aspect-ratio: 2 / 3;
  object-fit: cover; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  transition: var(--transition);
}
.top-rated-row .top-card:not(.top-card-featured) .top-rank {
  position: absolute; z-index: 0; left: -26px; bottom: 48px;
  width: auto; height: auto; padding: 0; margin: 0;
  background: transparent; border: 0; border-radius: 0;
  font-size: clamp(72px, 7vw, 116px); font-weight: 900; line-height: .8;
  letter-spacing: -.06em; color: #9a9aa4; opacity: .22; text-shadow: none;
}
.top-card-featured { flex: 0 0 clamp(300px, 34vw, 440px); }
.top-featured-media {
  position: relative; display: block; overflow: hidden;
  border-radius: 16px; aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 26px 60px -34px #000;
}
.top-featured-media > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: var(--transition);
}
.top-card-featured:hover .top-featured-media > img { transform: scale(1.04); }
.top-featured-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(2, 2, 3, .96) 0%, rgba(2, 2, 3, .62) 34%, rgba(2, 2, 3, .05) 74%);
}
.top-featured-rank {
  position: absolute; top: 2px; left: 16px;
  font-size: clamp(62px, 7vw, 100px); font-weight: 900; line-height: .85;
  letter-spacing: -.06em; color: #fff; opacity: .95;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .7);
}
.top-featured-body {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
}
.top-featured-score { font-size: 12.5px; font-weight: 800; color: #ffd166; }
.top-featured-score small { color: #a8a8b2; font-weight: 600; }
.top-featured-title {
  font-size: clamp(19px, 2vw, 26px); font-weight: 900;
  letter-spacing: -.02em; line-height: 1.15; color: #fff;
}
.top-featured-cat { font-size: 12px; color: #a2a2ad; }
.top-featured-play {
  margin-top: 8px; padding: 9px 22px; border-radius: 8px;
  background: linear-gradient(135deg, #e11d05, #a91101 70%);
  color: #fff; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 12px 24px -14px rgba(233, 30, 5, .9);
  transition: var(--transition);
}
.top-card-featured:hover .top-featured-play { filter: brightness(1.12); }
.top-rated-row .top-card:not(.top-card-featured) .top-title {
  position: relative; z-index: 1; display: block;
  font-size: 13px; font-weight: 600; line-height: 1.3; color: #f1f1f4;
}
.top-rated-row .top-card:not(.top-card-featured) .top-score {
  position: relative; z-index: 1; font-size: 11.5px; color: #8f8f9a;
}
.top-rated-row .top-card:not(.top-card-featured) .top-score small { color: #6f6f79; }
@media (max-width: 860px) {
  .top-rated-row { gap: 26px; }
  .top-card-featured { flex: 0 0 84vw; }
  .top-card { flex: 0 0 124px; }
  .top-rated-row .top-card:not(.top-card-featured) .top-rank { font-size: 76px; left: -18px; bottom: 44px; }
}

/* ============================================================
   v7.7 — kinematoqrafik ana səhifə, yumşaq keçidlər, həftəlik Top 10
   1) Tam genişlik + şəffaf navbar, hero → bölmə keçidi
   2) Detal səhifəsi: banner → məlumat keçidi (mask + overlap)
   3) Bu həftənin Top 10-u carousel
   4) 16:9 bölüm kartları, janr pill-ləri, kataloq
   5) Şərh balı (1-10) UI
   ============================================================ */

/* ---------- 1. Ana səhifə: tam genişlik, şəffaf sticky navbar ---------- */
body.home-page {
  --home-pad: clamp(14px, 2.2vw, 42px);
  background-color: #040405;
}
body.home-page main#main-content {
  max-width: none;
  width: 100%;
  padding: 0 var(--home-pad) 70px;
  margin-top: -80px;                 /* hero birbaşa navbarın altına düşür */
  position: relative;
  z-index: 1;
}
body.home-page #site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
body.home-page #site-header.scrolled {
  background: rgba(11, 11, 13, .88);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: rgba(255, 255, 255, .07);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, .95);
}
.home-page .top10-wrap,
.home-page .new-eps-wrap,
.home-page .cw-section,
.home-page .top-rated-wrap,
.home-page #home-grid-wrap {
  max-width: 1920px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 0;
  margin-bottom: 58px;
}
.home-page .section-head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 16px;
}
.home-page .section-title::after { display: none; }

/* ---------- Hero: 520-580px, yumşaq alt keçid, mərkəzi progress ---------- */
.home-page .hero-carousel { background: #040405; margin-bottom: 0; }
.home-page .hero-track { height: clamp(520px, 62vh, 580px); }
.home-page .hero-art {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.home-page .hero-slide-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .74) 30%, rgba(0, 0, 0, .2) 66%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(0deg, #040405 0%, rgba(4, 4, 5, .9) 12%, rgba(4, 4, 5, .42) 32%, rgba(4, 4, 5, 0) 66%),
    linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .18) 15%, rgba(0, 0, 0, 0) 32%);
}
.home-page .hero-desc {
  -webkit-line-clamp: 2;
  margin-bottom: 26px;
}
.home-page .hero-btn-play { background: #A91101; color: #fff; box-shadow: 0 16px 36px -16px rgba(169, 17, 1, .95); }
.home-page .hero-btn-play:hover { background: #d91602; color: #fff; box-shadow: 0 20px 42px -14px rgba(217, 22, 2, .7); }
.home-page .hero-btn-ghost { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); }
.home-page .hero-ui { justify-content: center; padding-bottom: 54px; }
.home-page .hero-hint { display: none; }
.home-page .hero-dots { gap: 10px; }
.home-page .hero-dot { width: 56px; height: 14px; }
.home-page .hero-dot.active { width: 92px; }
.home-page .hero-dot::before { background: rgba(255, 255, 255, .22); }
.home-page .hero-dot-fill { background: #d91602; box-shadow: 0 0 10px rgba(217, 22, 2, .65); }

/* ---------- 2. Detal səhifəsi: banner → məlumat yumşaq keçidi ---------- */
.adetail-bg {
  inset: 0 0 auto 0;
  height: clamp(340px, 50vh, 520px);
  filter: none;
  opacity: 1;
  transform: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 46%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 46%, transparent 100%);
}
.adetail::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(340px, 50vh, 520px);
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .42) 26%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .12) 48%, rgba(0, 0, 0, .4) 100%);
}
.adetail-fade {
  background:
    linear-gradient(180deg, rgba(4, 4, 5, 0) 0%, rgba(4, 4, 5, .35) 34%, rgba(4, 4, 5, .88) 68%, var(--bg-color) 92%),
    radial-gradient(60% 90% at 20% 40%, rgba(169, 17, 1, .16), transparent 70%);
}
.adetail-inner {
  margin-top: clamp(90px, 11vw, 150px);   /* poster və məlumat bannerin əriyən hissəsinə çıxır */
}
.adetail-poster-wrap { box-shadow: 0 34px 60px -28px #000, 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---------- 3. Bu həftənin Top 10-u ---------- */
.top10-head { align-items: flex-end; }
.top10-sub { margin-top: 6px; font-size: 13px; color: #8b8b95; }
.top10-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(169, 17, 1, .5) transparent;
}
.top10-row::-webkit-scrollbar { height: 6px; }
.top10-row::-webkit-scrollbar-track { background: transparent; }
.top10-row::-webkit-scrollbar-thumb { background: rgba(169, 17, 1, .5); border-radius: 3px; }
.top10-card {
  position: relative;
  flex: 0 0 156px;
  height: 252px;
  scroll-snap-align: start;
  text-decoration: none;
  color: #fff;
  transition: flex-basis .4s cubic-bezier(.22, 1, .36, 1);
}
.top10-card.is-first,
.top10-card:hover { flex-basis: clamp(300px, 30vw, 390px); }
.top10-rank {
  position: absolute;
  left: -4px;
  bottom: 26px;
  z-index: 3;
  font-size: clamp(74px, 7vw, 112px);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .35);
  text-shadow: 0 12px 34px rgba(0, 0, 0, .55);
  pointer-events: none;
  transition: color .3s ease, -webkit-text-stroke-color .3s ease;
}
.top10-card:hover .top10-rank { color: #fff; -webkit-text-stroke-color: transparent; }
.top10-poster {
  position: absolute;
  inset: 0 0 34px 26px;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #101116;
  border: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.top10-card:hover .top10-poster {
  border-color: rgba(255, 90, 60, .38);
  box-shadow: 0 24px 46px -26px rgba(0, 0, 0, .95);
}
.top10-poster > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, filter .3s ease;
}
.top10-card:hover .top10-poster > img { transform: scale(1.05); }
.top10-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 2, 3, .35) 0%, rgba(2, 2, 3, 0) 45%);
  transition: background .3s ease;
}
.top10-card:hover .top10-shade,
.top10-card.is-first .top10-shade {
  background: linear-gradient(0deg, rgba(2, 2, 3, .96) 0%, rgba(2, 2, 3, .55) 40%, rgba(2, 2, 3, .05) 78%);
}
.top10-body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .28s ease .05s, transform .28s ease .05s;
}
.top10-card:hover .top10-body,
.top10-card.is-first .top10-body { opacity: 1; transform: none; }
.top10-score { font-size: 12px; font-weight: 800; color: #ffd166; }
.top10-title {
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.top10-genres { font-size: 11.5px; color: #a5a5b0; }
.top10-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.top10-play {
  padding: 8px 18px;
  border-radius: 7px;
  background: #A91101;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 12px 24px -14px rgba(169, 17, 1, .95);
  transition: background .2s ease;
}
.top10-card:hover .top10-play { background: #d91602; }
.top10-add {
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.top10-add:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.top10-name {
  position: absolute;
  left: 28px;
  right: 0;
  bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #dedee4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity .25s ease;
}
.top10-card:hover .top10-name,
.top10-card.is-first .top10-name { opacity: 0; }
/* Hero ilə Top 10 arasında təmiz məsafə: bölmə bannerin üzərinə çıxmır */
.home-page #main-content > .top10-wrap { margin-top: 32px; position: relative; z-index: 1; }
/* ---------- 4. Yeni bölümlər: 16:9 kartlar, mərkəzi play, qırmızı glow ---------- */
.home-page .new-ep-card { flex: 0 0 340px; }
.home-page .new-ep-poster { aspect-ratio: 16 / 9; border-radius: 12px; }
.home-page .new-ep-pill { background: #A91101; letter-spacing: .06em; }
.home-page .new-ep-poster::after { inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .52)); }
.new-ep-poster .new-ep-play {
  left: 50%; top: 50%; right: auto; bottom: auto;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%) scale(.82);
  opacity: 0;
  background: rgba(8, 8, 10, .5);
  border-color: rgba(255, 255, 255, .35);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.new-ep-card:hover .new-ep-poster { border-color: rgba(217, 22, 2, .55); box-shadow: 0 0 0 1px rgba(217, 22, 2, .45), 0 24px 46px -25px rgba(217, 22, 2, .6); }
.new-ep-card:hover .new-ep-play { opacity: 1; transform: translate(-50%, -50%) scale(1); background: #A91101; border-color: transparent; }
.new-ep-card:hover .new-ep-poster img { transform: scale(1.04); }
/* ---------- Janr pill-ləri + kataloq ---------- */
.catalog-head { margin: 4px 0 14px; }
.genre-pills {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 2px 2px 14px; margin-bottom: 20px;
  scrollbar-width: none;
}
.genre-pills::-webkit-scrollbar { display: none; }
.genre-pill {
  flex: 0 0 auto; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: #cfcfd6; font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.genre-pill:hover { border-color: rgba(255, 90, 60, .5); color: #fff; }
.genre-pill.active {
  background: #A91101; border-color: #A91101; color: #fff;
  box-shadow: 0 10px 24px -14px rgba(169, 17, 1, .9);
}
.home-page .anime-grid { gap: 20px; }
.home-page .anime-card-poster { aspect-ratio: 2 / 3; object-fit: cover; }
.home-page .anime-card:hover .anime-card-poster { transform: scale(1.03); }
.home-page .anime-card-poster-wrap { overflow: hidden; }
.home-page .anime-card-cat { font-size: 11.5px; color: #8b8b95; }
/* ---------- 5. Şərhlərdə 1-10 bal ---------- */
.comments-rating-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  margin: -6px 0 18px; font-size: 13.5px; color: #9a9aa4;
}
.comments-rating-line .cr-star { color: #ffd166; font-size: 15px; }
.comments-rating-line strong { color: #fff; font-size: 15px; }
.comments-rating-line .cr-count { color: #6f6f79; font-size: 12px; }
.comment-score-picker {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  margin-bottom: 10px;
}
.comment-score-label { font-size: 12.5px; font-weight: 600; color: #9a9aa4; }
.comment-score-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.comment-score-chip {
  width: 28px; height: 28px; border-radius: 7px;
  border: 1px solid #333; background: #1a1a1a; color: #bbbbbb;
  font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.comment-score-chip:hover { border-color: rgba(255, 90, 60, .55); color: #fff; }
.comment-score-chip.on { background: #A91101; border-color: #A91101; color: #fff; }
.comment-score-hint { font-size: 11.5px; color: #777; }
.comment-rating-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; margin-left: 6px; border-radius: 999px;
  background: rgba(169, 17, 1, .16); border: 1px solid rgba(255, 90, 60, .35);
  color: #ffb39f; font-size: 11px; font-weight: 700; white-space: nowrap;
}

@media (max-width: 860px) {
  body.home-page main#main-content { margin-top: -72px; }
  .home-page #main-content > .top10-wrap { margin-top: 24px; }
  .top10-card { flex-basis: 124px; height: 214px; }
  .top10-card.is-first,
  .top10-card:hover { flex-basis: 84vw; }
  .top10-rank { font-size: 74px; left: -2px; bottom: 24px; }
  .home-page .new-ep-card { flex: 0 0 290px; }
}
@media (max-width: 560px) {
  .home-page .hero-track { height: 520px; }
  .home-page .hero-title { font-size: 34px; }
  .top10-card { flex-basis: 108px; height: 190px; }
  .top10-poster { inset: 0 0 30px 20px; }
  .home-page .new-ep-card { flex: 0 0 82vw; }
  .comment-score-chip { width: 26px; height: 26px; }
}
/* ============================================================
   v7.8 — Ana səhifə layout düzəlişləri
   1) Hero alt kənarı yumşaq əriyir (kəskin xətt yoxdur)
   2) Yeni bölümlər: böyüdülmüş kartlar (scrollbar gizlidir)
   3) İzləməyə davam et: kataloq ölçüsündə kompakt kart + irəliləyiş zolağı
   ============================================================ */

/* ---------- 1. Hero: alt kənar tünd fona yumşaq keçir ---------- */
.home-page .hero-carousel { margin-bottom: 0; border-bottom: 0; box-shadow: none; }
.home-page .hero-art {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.home-page .hero-slide::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(90px, 15vh, 150px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 4, 5, 0) 0%, rgba(4, 4, 5, .5) 42%, rgba(4, 4, 5, .9) 78%, #040405 100%);
}

/* ---------- 2. Yeni bölümlər: daha oxunaqlı, dolğun kartlar ---------- */
.home-page .new-ep-card { gap: 8px; }
.home-page .new-ep-title { font-size: 14.5px; }
.home-page .new-ep-meta { font-size: 12px; }

/* ---------- 3. İzləməyə davam et: kompakt kart + irəliləyiş zolağı ---------- */
.home-page .cw-grid { gap: 20px; padding-bottom: 4px; }
.home-page .cw-poster { border-radius: 14px; box-shadow: 0 20px 36px -28px #000; }
.home-page .cw-play { width: 38px; height: 38px; }
.home-page .cw-play svg { width: 15px; height: 15px; }
.home-page .cw-ep-pill { top: 7px; left: 7px; padding: 2px 7px; font-size: 9.5px; }
.home-page .cw-when { right: 8px; bottom: 10px; padding: 2px 6px; font-size: 8.5px; }
.home-page .cw-title { font-size: 13px; }
.home-page .cw-meta { font-size: 11px; }
.home-page .cw-remove { top: 6px; right: 6px; width: 22px; height: 22px; font-size: 10px; }
.cw-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 3;
  pointer-events: none;
  background: rgba(255, 255, 255, .16);
}
.cw-progress-fill {
  display: block;
  height: 100%;
  background: #A91101;
  box-shadow: 0 0 10px rgba(169, 17, 1, .85);
  transition: width .35s ease;
}

/* ---------- Kiçik ekranlar ---------- */
@media (max-width: 1100px) {
  .home-page .cw-card-wrap { flex-basis: 196px; }
}
@media (max-width: 900px) {
  .home-page .cw-card-wrap { flex-basis: 180px; }
}
@media (max-width: 640px) {
  .home-page .cw-grid { gap: 12px; }
  .home-page .cw-card-wrap { flex-basis: calc((100% - 12px) / 2); min-width: 0; }
  .home-page .cw-title { font-size: 12.5px; }
  .home-page .cw-play { width: 34px; height: 34px; }
  .home-page .new-ep-title { font-size: 13.5px; }
  .home-page .new-ep-meta { font-size: 11.5px; }
}
/* ============================================================
   v7.9 — Böyük hero banner + 2 sütunlu profil parametrləri
   ============================================================ */

/* ---------- 1. Hero: daha hündür, tam genişlikdə arxa plan ---------- */
.home-page .hero-carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 0;
}
.home-page .hero-track {
  height: clamp(680px, 78vh, 750px);
  min-height: 680px;
}
.home-page .hero-art,
.home-page .hero-art.hero-art-wide {
  width: 100%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
/* Geniş şəkil olmayanda afişa kəsilməsin (mövcud davranış qorunur) */
.home-page .hero-art.hero-art-poster {
  background-size: contain;
  background-position: right 8% center;
}
.home-page .hero-art {
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.home-page .hero-slide::after {
  height: clamp(120px, 18vh, 190px);
  background: linear-gradient(180deg, rgba(4, 4, 5, 0) 0%, rgba(4, 4, 5, .45) 38%, rgba(4, 4, 5, .88) 76%, #040405 100%);
}

@media (max-width: 860px) {
  .home-page .hero-track { height: clamp(580px, 74vh, 660px); min-height: 580px; }
}
@media (max-width: 560px) {
  .home-page .hero-track { height: 560px; min-height: 560px; }
}

/* ---------- 2. Profil parametrləri: sol menyu + sağ məzmun ---------- */
.settings-page { max-width: 1180px; margin: 0 auto; }
.settings-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.settings-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-side-card {
  background: #0b0b0d;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}
.settings-side-banner {
  height: 78px;
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(169, 17, 1, .45), transparent 62%),
    linear-gradient(135deg, #1d0603, #0b0b0d 72%);
  background-size: cover;
  background-position: center;
}
.settings-side-body { padding: 0 16px 16px; margin-top: -31px; }
.settings-side-avatar {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  background: #151517;
  border: 3px solid #0b0b0d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .6);
}
.settings-side-name {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  word-break: break-word;
}
.settings-side-id { margin-top: 2px; font-size: 11.5px; color: #74747d; font-family: monospace; }

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #0d0d10;
  border: 1px solid var(--border-color);
  border-radius: 16px;
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a7a7b0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.settings-nav-item .sni { font-size: 15px; line-height: 1; }
.settings-nav-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.settings-nav-item.active {
  background: rgba(169, 17, 1, .16);
  color: #fff;
  box-shadow: inset 3px 0 0 #A91101;
}

.settings-main { min-width: 0; }
.settings-pane { display: none; }
.settings-pane.active { display: block; animation: settingsFade .25s ease; }
@keyframes settingsFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.settings-pane-head { margin-bottom: 16px; }
.settings-pane-head h2 { font-size: 23px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.settings-pane-head p { margin-top: 6px; font-size: 13.5px; color: #8b8b95; line-height: 1.55; }

.settings-card {
  background: linear-gradient(180deg, #0e0e11, #0a0a0c);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 40px -30px #000;
}
.settings-card + .settings-card { margin-top: 18px; }
.settings-save { width: 100%; padding: 12px 24px; }
.settings-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.settings-hint { font-size: 12px; color: #77777f; margin: -6px 0 16px; }

.settings-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.settings-file-btn { font-size: 12.5px; padding: 8px 14px; cursor: pointer; }
.settings-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #141416;
  border: 2px solid var(--accent-color);
}
.settings-banner-thumb {
  width: 108px;
  height: 58px;
  border-radius: 9px;
  background-color: #141416;
  background-size: cover;
  background-position: center;
  border: 1px solid #2a2a2e;
}

/* Canlı profil önizləməsi */
.profile-preview {
  position: relative;
  margin-bottom: 20px;
  background: #0b0b0d;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}
.profile-preview-banner {
  height: clamp(112px, 18vw, 152px);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(169, 17, 1, .5), transparent 62%),
    linear-gradient(135deg, #200604, #0d0d10 72%);
  background-size: cover;
  background-position: center;
}
.profile-preview-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 0 20px 18px;
  margin-top: -34px;
}
.profile-preview-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: #141416;
  border: 3px solid #0b0b0d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .65);
}
.profile-preview-text { min-width: 0; padding-bottom: 4px; }
.profile-preview-name { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.3; }
.profile-preview-bio {
  margin-top: 3px;
  max-width: 560px;
  font-size: 13px;
  color: #9a9aa4;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Təhlükəsizlik: hesab silmə kartı */
.settings-danger-card { border-color: rgba(169, 17, 1, .38); }
.settings-danger-card h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.settings-danger-card p { font-size: 13px; color: #8b8b95; line-height: 1.6; margin-bottom: 16px; }

/* İzləmə tarixçəsi */
.settings-hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.settings-hist-count { font-size: 13px; color: #8b8b95; }
.settings-hist-clear { font-size: 12.5px; padding: 9px 14px; }
.settings-empty {
  padding: 26px 14px;
  text-align: center;
  color: #77777f;
  font-size: 13.5px;
  border: 1px dashed #26262b;
  border-radius: 12px;
}
.hist-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  margin-bottom: 10px;
  background: #101013;
  border: 1px solid #1f1f23;
  border-radius: 12px;
}
.hist-poster {
  flex: 0 0 54px;
  width: 54px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  background: #18181b;
}
.hist-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hist-info { flex: 1 1 auto; min-width: 0; }
.hist-title { display: block; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35; }
.hist-title:hover { color: var(--accent-bright); }
.hist-meta { margin-top: 3px; font-size: 11.5px; color: #8b8b95; }
.hist-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hist-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid #2c2c32;
  border-radius: 999px;
  background: #1a1a1e;
  color: #c9c9d2;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
}
.hist-chip:hover { border-color: rgba(169, 17, 1, .7); background: rgba(169, 17, 1, .18); color: #fff; }
.hist-del {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #33333a;
  border-radius: 9px;
  background: #18181b;
  color: #d6d6dd;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.hist-del:hover { border-color: #A91101; background: rgba(169, 17, 1, .18); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .settings-layout { grid-template-columns: 1fr; gap: 18px; }
  .settings-side { position: static; }
  .settings-side-card { display: none; }
  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav-item { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .settings-nav-item.active { box-shadow: inset 0 -2px 0 #A91101; }
}
@media (max-width: 620px) {
  .settings-card { padding: 18px 16px; border-radius: 14px; }
  .settings-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .settings-pane-head h2 { font-size: 20px; }
  .profile-preview-inner { gap: 12px; padding: 0 14px 14px; }
  .profile-preview-avatar { width: 70px; height: 70px; }
  .profile-preview-name { font-size: 16px; }
  .hist-row { flex-wrap: wrap; align-items: flex-start; }
  .hist-del { width: 100%; }
}
/* ============================================================
   v8.0 — Üst menyu ilə toqquşmanın aradan qaldırılması
   ============================================================ */
body:not(.home-page):not(.admin-page):not(.about-page):not(.anime-detail-page) main#main-content {
  padding-top: 96px;
}
@media (max-width: 860px) {
  body:not(.home-page):not(.admin-page):not(.about-page):not(.anime-detail-page) main#main-content {
    padding-top: 88px;
  }
}
.settings-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* ============================================================
   v8.1 — Müstəqil "Haqqımızda" səhifəsi (/haqqimizda)
   ============================================================ */
.about-page { background: #000; }
.about-page main#main-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
}

/* --- Hero banner --- */
.about-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 100px;
  background-color: #040405;
  isolation: isolate;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/img/about-hero.jpg') center 34% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 56%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 56%, transparent 100%);
}
.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(115% 85% at 50% 28%, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .62) 58%, rgba(0, 0, 0, .88) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .18) 42%, rgba(4, 4, 5, .86) 100%);
}
.about-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}
.about-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 22px;
  border: 1px solid rgba(169, 17, 1, .55);
  border-radius: 999px;
  background: rgba(169, 17, 1, .14);
  color: #ff8b78;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.about-hero h1 {
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 18px 60px rgba(0, 0, 0, .85);
}
.about-hero-sub {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: clamp(14.5px, 1.7vw, 18px);
  line-height: 1.7;
  font-style: italic;
  color: #d6d6db;
}
.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.about-hero-actions .btn-primary,
.about-hero-actions .btn-secondary {
  padding: 12px 26px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Ümumi bölmə quruluşu --- */
.about-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.about-section { padding: 64px 0; }
.about-section + .about-section { padding-top: 0; }
.about-title {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.about-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff4a2b, #A91101);
  box-shadow: 0 0 18px rgba(169, 17, 1, .6);
}
.about-head { text-align: center; }
.about-head .about-title::after { left: 50%; transform: translateX(-50%); }
.about-lead {
  margin: 16px auto 0;
  max-width: 700px;
  color: #9b9ba4;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

/* --- "AnimeXana Nədir?" --- */
.about-intro { padding-top: 12px; }
.about-intro .about-title { display: block; text-align: center; }
.about-intro .about-title::after { left: 50%; transform: translateX(-50%); }
.about-intro-text {
  max-width: 840px;
  margin: 26px auto 0;
  text-align: center;
}
.about-intro-text p {
  color: #b7b7c0;
  font-size: 15.5px;
  line-height: 1.95;
}
.about-intro-text p + p { margin-top: 18px; }
.about-intro-text strong { color: #fff; font-weight: 700; }
.about-intro-text .accent { color: #ff6a52; font-weight: 700; }

/* --- Üstünlük kartları (3 sütun) --- */
.about-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.about-card {
  position: relative;
  padding: 28px 24px;
  background: #111114;
  border: 1px solid #232327;
  border-radius: 18px;
  overflow: hidden;
  transition: var(--transition);
}
.about-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, #A91101, rgba(169, 17, 1, 0));
}
.about-card:hover {
  border-color: rgba(169, 17, 1, .55);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -30px rgba(169, 17, 1, .9);
}
.about-card-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: rgba(169, 17, 1, .14);
  border: 1px solid rgba(169, 17, 1, .3);
  color: #ff6a52;
}
.about-card-ico svg { width: 22px; height: 22px; }
.about-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
}
.about-card p {
  color: #9d9da6;
  font-size: 14px;
  line-height: 1.75;
}

/* --- Sosial şəbəkə kartları (4 sütun) --- */
.about-social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.about-social-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
  background: #111114;
  border: 1px solid #232327;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
.about-social-card:hover {
  border-color: #A91101;
  box-shadow: 0 0 0 1px rgba(169, 17, 1, .55), 0 24px 50px -32px rgba(169, 17, 1, .95);
  transform: translateY(-4px);
}
.about-social-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(169, 17, 1, .13);
  border: 1px solid rgba(169, 17, 1, .28);
  color: #fff;
  transition: var(--transition);
}
.about-social-ico svg { width: 22px; height: 22px; }
.about-social-card:hover .about-social-ico {
  background: #A91101;
  border-color: #A91101;
  color: #fff;
}
.about-social-card h3 { font-size: 15.5px; font-weight: 800; color: #fff; }
.about-social-card p { color: #9d9da6; font-size: 13.5px; line-height: 1.7; }
.about-social-go {
  margin-top: auto;
  padding-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #ff6a52;
  letter-spacing: .01em;
}
.about-social-card:hover .about-social-go { color: #ff8b78; }

/* --- Səhifə sonu CTA --- */
.about-cta {
  margin: 10px 0 78px;
  padding: 40px 28px;
  text-align: center;
  border: 1px solid rgba(169, 17, 1, .35);
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(169, 17, 1, .22), transparent 62%),
    #0b0b0d;
}
.about-cta h2 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.about-cta p { color: #a3a3ac; font-size: 14.5px; line-height: 1.8; max-width: 560px; margin: 0 auto 22px; }

@media (max-width: 1024px) {
  .about-social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .about-hero { min-height: 520px; padding: 96px 20px 76px; }
  .about-section { padding: 48px 0; }
  .about-features { grid-template-columns: 1fr; gap: 16px; }
  .about-wrap { padding: 0 18px; }
  .about-cta { margin-bottom: 56px; }
}
@media (max-width: 620px) {
  .about-hero { min-height: 470px; padding: 86px 16px 64px; }
  .about-hero-sub { font-size: 14px; }
  .about-social-grid { grid-template-columns: 1fr; }
  .about-intro-text p { font-size: 14.5px; line-height: 1.85; }
  .about-hero-actions .btn-primary,
  .about-hero-actions .btn-secondary { width: 100%; }
}
/* Ana səhifədə render olunan daxili səhifələr (profil, parametrlər, biletlər)
   üst menyunun altına düşməsin — hero üçün olan mənfi margin ləğv edilir. */
body.home-page.ax-inner-page main#main-content {
  margin-top: 0;
  padding-top: 96px;
}
@media (max-width: 860px) {
  body.home-page.ax-inner-page main#main-content {
    margin-top: 0;
    padding-top: 88px;
  }
}

/* ============================================================
   v8.2 — Anime detal banneri, admin banner sahəsi, haqqımızda
   ============================================================ */

/* Banner üst menyunun (şəffaf navbar) arxasından başlayır: yuxarıda qara boşluq qalmır */
body.anime-detail-page main#main-content { padding-top: 0; }
body.anime-detail-page .adetail {
  margin-top: calc(var(--ax-header-h, 80px) * -1);
  padding-top: calc(var(--ax-header-h, 80px) + clamp(18px, 3vw, 40px));
}
body.anime-detail-page #site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
body.anime-detail-page #site-header.scrolled {
  background: rgba(11, 11, 13, .88);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: rgba(255, 255, 255, .07);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, .95);
}
body.anime-detail-page .adetail-fade {
  background:
    linear-gradient(180deg, rgba(4, 4, 5, .26) 0%, rgba(4, 4, 5, .55) 45%, var(--bg-color) 100%),
    radial-gradient(60% 90% at 20% 40%, rgba(169, 17, 1, .16), transparent 70%);
}
@media (max-width: 860px) {
  body.anime-detail-page .adetail { padding-top: calc(var(--ax-header-h, 88px) + 16px); }
}

/* Admin paneldə banner ön baxışı */
.admin-banner-preview {
  width: 168px;
  height: 94px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0b0b0d;
  display: block;
}
.admin-banner-preview[src=""] { visibility: hidden; }
