@font-face {
  font-family: "Azonix";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("/assets/fonts/Azonix.woff2") format("woff2"),
    url("/assets/fonts/Azonix.otf") format("opentype");
}

:root {
  --shell-red-600: #a12222;
  --shell-black-900: #111111;
  --shell-gray-100: #f2f2f2;
  --shell-white: #ffffff;
  --shell-viewport-height: 100dvh;
  --shell-header-height: 84px;
  --shell-logo-height: 74px;
  --shell-logo-max-width: 360px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
  color: #1c1c1c;
  font-family: "Source Sans 3", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.shell-loading {
  overflow-y: auto;
}

.shell-app {
  min-height: 100vh;
  background: #ffffff;
}

.shell-app.is-player-mode {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--shell-viewport-height);
  height: var(--shell-viewport-height);
  overflow: hidden;
  background: #000000;
}

.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: var(--shell-header-height);
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 9, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shell-header-sep {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--shell-red-600) 0%, #c53b2f 52%, var(--shell-red-600) 100%);
}

.shell-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.shell-logo {
  height: var(--shell-logo-height);
  max-height: var(--shell-logo-height);
  max-width: var(--shell-logo-max-width);
  width: auto;
  display: block;
  object-fit: contain;
}

.shell-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.shell-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.shell-link,
.shell-auth-link {
  color: var(--shell-gray-100);
  text-decoration: none;
  font-family: "Azonix", "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.shell-link:hover,
.shell-link:focus-visible,
.shell-auth-link:hover,
.shell-auth-link:focus-visible {
  color: var(--shell-white);
}

.shell-link.is-active,
.shell-link-accent {
  color: #ffd8d8;
}

.shell-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--shell-white);
  cursor: pointer;
  position: static;
}

.shell-menu-lines,
.shell-menu-lines::before,
.shell-menu-lines::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.shell-menu-lines::before {
  transform: translateY(-6px);
}

.shell-menu-lines::after {
  transform: translateY(4px);
}

.shell-main {
  width: 100%;
  min-height: calc(100vh - var(--shell-header-height) - 4px);
}

.shell-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - var(--shell-header-height) - 4px);
  border: 0;
  background: #ffffff;
}

.shell-app.is-player-mode .shell-header,
.shell-app.is-player-mode .shell-header-sep {
  display: none;
}

.shell-app.is-player-mode .shell-main,
.shell-app.is-player-mode .shell-frame {
  min-height: var(--shell-viewport-height);
  height: var(--shell-viewport-height);
}

.shell-app.is-player-mode .shell-main {
  overflow: hidden;
}

body.shell-player-active {
  overflow: hidden;
}

.shell-media-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.84);
}

.shell-media-overlay.is-open {
  display: flex;
}

.shell-media-panel {
  width: min(100%, 720px);
  display: grid;
  gap: 12px;
  align-items: start;
}

.shell-media-panel.is-video {
  width: min(100%, 640px);
  gap: 0;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(34, 34, 34, 0.97) 0%, rgba(16, 16, 16, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(255, 174, 112, 0.12);
}

.shell-media-panel.is-document {
  width: min(100%, 1120px);
}

.shell-media-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.96) 0%, rgba(17, 17, 17, 0.9) 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shell-media-panel.is-video .shell-media-toolbar {
  position: static;
  align-items: center;
  padding: 13px 16px 12px;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 16%, rgba(18, 18, 18, 0) 100%),
    linear-gradient(180deg, rgba(52, 52, 52, 0.5) 0%, rgba(18, 18, 18, 0) 100%);
  box-shadow: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shell-media-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

.shell-media-card.is-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  box-shadow: none;
}

.shell-media-card.is-video::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 14%, transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 12%, transparent 88%, rgba(255, 174, 112, 0.12) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 174, 112, 0.18);
}

.shell-media-card.is-document {
  max-height: min(calc(var(--shell-viewport-height) - 20px), 920px);
  background: #111111;
}

.shell-media-title {
  margin: 0;
  color: #ffffff;
  font-family: "Montserrat", "Oswald", "Source Sans 3", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.shell-media-panel.is-video .shell-media-head-copy {
  display: block;
}

.shell-media-head-copy {
  min-width: 0;
}

.shell-media-panel.is-video .shell-media-kicker,
.shell-media-panel.is-video .shell-media-subtitle {
  display: none;
}

.shell-media-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.64);
  font-family: "Source Sans 3", "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-media-subtitle {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-family: "Source Sans 3", "Inter", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.shell-media-close {
  min-width: 72px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: "Source Sans 3", "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.shell-media-panel.is-video .shell-media-close {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 0;
  position: static;
}

.shell-media-panel.is-video .shell-media-close::before {
  content: "×";
  font-size: 24px;
  line-height: 1;
}

.shell-media-body {
  display: block;
  width: 100%;
  padding: 0;
  background: #000000;
}

.shell-media-card.is-document .shell-media-body {
  display: block;
  min-height: auto;
  max-height: min(calc(var(--shell-viewport-height) - 20px), 920px);
  overflow: auto;
  background: #111111;
}

.shell-media-card.is-video .shell-media-body {
  height: 100%;
}

.shell-media-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, rgba(16, 16, 16, 0.96) 0%, rgba(6, 6, 6, 0.98) 100%);
  z-index: 1;
}

.shell-media-loading.is-hidden {
  display: none;
}

.shell-media-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: #ffffff;
  animation: shell-media-spin 0.85s linear infinite;
}

.shell-media-loading-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-family: "Source Sans 3", "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.shell-media-frame,
.shell-media-image {
  width: 100%;
  display: block;
  border: 0;
  background: #000000;
  border-radius: 0;
}

.shell-media-frame.is-video {
  width: 100%;
  height: 100%;
}

.shell-media-frame.is-video.is-loading {
  opacity: 0;
}

.shell-media-frame.is-document {
  min-height: min(calc(var(--shell-viewport-height) - 20px), 840px);
}

.shell-media-image {
  max-height: min(calc(var(--shell-viewport-height) - 20px), 840px);
  object-fit: contain;
}

@keyframes shell-media-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (orientation: landscape) and (max-height: 520px) {
  .shell-media-overlay {
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .shell-media-panel.is-video {
    width: min(100%, 760px);
  }
}

.shell-app:not(.is-ready) .shell-nav {
  visibility: hidden;
}

.shell-app:not(.is-ready) .shell-frame {
  opacity: 0;
}

.shell-frame.is-visible {
  opacity: 1;
  transition: opacity 0.14s ease;
}

.shell-app.is-nav-collapsed .shell-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  position: sticky;
  padding: 0 18px;
}

.shell-app.is-nav-collapsed .shell-menu-btn {
  display: inline-flex;
  grid-column: 3;
  justify-self: end;
  position: relative;
  z-index: 120;
}

.shell-app.is-nav-collapsed .shell-nav {
  position: absolute;
  top: calc(var(--shell-header-height) - 4px);
  right: 18px;
  z-index: 110;
  display: none;
  width: min(280px, calc(100vw - 36px));
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  margin-left: 0;
  background: rgba(17, 17, 17, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.shell-app.is-nav-collapsed .shell-nav.is-open {
  display: flex;
}

.shell-app.is-nav-collapsed .shell-nav-links {
  display: grid;
  gap: 10px;
  width: 100%;
}

.shell-app.is-nav-collapsed .shell-link,
.shell-app.is-nav-collapsed .shell-auth-link {
  display: block;
  width: 100%;
  min-height: auto;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: left;
}

@media (max-width: 700px) {
  :root {
    --shell-header-height: 72px;
    --shell-logo-height: 54px;
    --shell-logo-max-width: 220px;
  }

  .shell-app.is-nav-collapsed .shell-header {
    padding: 0 12px;
  }

  .shell-app.is-nav-collapsed .shell-nav {
    right: 12px;
    width: min(220px, calc(100vw - 24px));
  }

}
