:root {
  --bg-main: #070511;
  --bg-elevated: rgba(18, 10, 27, 0.96);
  --bg-card: rgba(29, 16, 45, 0.96);

  --accent-pink: #ff4f9a;
  --accent-pink-soft: #ff8cc2;
  --accent-burgundy: #5b1433;
  --accent-purple: #7e4dff;

  --text-main: #f7f3ff;
  --text-muted: #b19bbf;

  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.75);
  --transition-fast: 0.18s ease-out;
}
a,
a:visited {
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: none; /* на всякий случай, чтобы браузер не возвращал */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.app-body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 154, 0.20), transparent 55%),
    radial-gradient(circle at bottom right, rgba(126, 77, 255, 0.18), transparent 60%),
    #070511;
  color: var(--text-main);
}

/* Лейаут */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(7,5,17,0.95), rgba(16,8,32,0.9));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--accent-burgundy), var(--accent-pink));
  box-shadow: 0 0 18px rgba(255,79,154,0.4);
}

.main-nav {
  display: flex;
  gap: 16px;
}

.main-nav a {
  position: relative;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.main-nav a:hover {
  color: var(--text-main);
  background: radial-gradient(circle at top, rgba(255,79,154,0.16), transparent 60%);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-admin {
  border: 1px solid rgba(255,79,154,0.6);
}

/* Кнопки-капсулы */

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  background: radial-gradient(circle at 10% 0, var(--accent-pink) 0, var(--accent-burgundy) 45%, #1a0b27 80%);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-pill:hover {
  transform: translateY(-1px) translateZ(0);
  filter: brightness(1.05);
  box-shadow: 0 24px 60px rgba(255,79,154,0.45);
}

.btn-pill:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Карточки серий, сезонов и блоков */
.card {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(34, 20, 54, 0.95), rgba(16, 8, 32, 0.98));
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255,79,154,0.0);
  pointer-events: none;
  transition: border-color var(--transition-fast), opacity var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.9);
  border-color: rgba(255,255,255,0.12);
}

.card:hover::before {
  border-color: rgba(255,79,154,0.5);
  opacity: 1;
}

/* Адаптив */

.app-main {
  padding: 16px 18px 40px;
  max-width: 1180px;
  margin: 0 auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 22px;
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    inset: 56px 12px auto 12px;
    flex-direction: column;
    padding: 10px;
    background: rgba(10, 5, 20, 0.97);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-link-profile {
    /* те же стили, что и .main-nav a */
    position: relative;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-link-profile::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-fast);
}

.nav-link-profile:hover {
    color: var(--text-main);
    background: radial-gradient(circle at top, rgba(255,79,154,0.16), transparent 60%);
}

.nav-link-profile:hover::after {
    transform: scaleX(1);
}
@media (max-width: 768px) {
  .app-header {
    gap: 8px;
  }

  .nav-user {
    margin-left: auto;
  }

  .nav-user .btn-pill {
    padding: 6px 12px;
    font-size: 13px;
  }
}
