* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --topbar-h: 0px;
  --bottombar-h: 0px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  background-color: #000814;
  color: #fff;
  font-family: var(--main-font, 'Unbounded', 'Montserrat', Arial, sans-serif);
  height: 100vh;
  overflow: hidden;
  position: relative;
  --glitch-intensity: 5;
  --neon-pink: #ff00aa;
  --neon-green: #00ff9f;
  --neon-blue: #00ffff;
}

/* Фоновое видео */
#bg-video {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; opacity: 0.5; pointer-events: none;
  filter: grayscale(50%) contrast(1.2);
}
.overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 8, 20, 0.7); z-index: -1; pointer-events: none;
}

/* CRT curvature */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: inset 0 0 150px black;
  z-index: 1000;
}

/* VHS-шум */
.vhs-noise {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.2) 0px, rgba(255,255,255,0.03) 1px, transparent 2px),
              repeating-linear-gradient(45deg, rgba(255,0,170,0.03) 0px, rgba(0,255,255,0.03) 2px, transparent 4px);
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  mix-blend-mode: overlay;
  animation: scan 6s linear infinite;
}
@keyframes scan {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 20px, 40px 40px; }
}

/* Верхняя панель */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  background: transparent;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.top-bar > * {
  pointer-events: auto;
  width: 100%;
}

.tv-header {
  background: black;
  color: #00ff9f;
  font-family: monospace;
  font-size: 12px;
  padding: 4px;
  letter-spacing: 2px;
  text-align: center;
}

.signal-time-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 2px 10px;
  background: rgba(0,0,0,0.5);
  font-family: monospace;
  font-size: 12px;
}
#signal { color: #ff0044; }
.vhs-time { color: white; }

.signal-strength {
  height: 4px;
  background: linear-gradient(90deg, #00ff9f, #ff00aa, #00ffff);
  width: 100%;
  transform-origin: left;
  animation: signalPulse 2s infinite;
}
@keyframes signalPulse {
  0% { opacity: 0.5; width: 100%; }
  50% { opacity: 1; width: 70%; }
  100% { opacity: 0.5; width: 100%; }
}

.radio-intercept {
  font-family: monospace;
  font-size: 14px;
  color: #00ff9f;
  text-shadow: 0 0 10px #00ff9f;
  background: rgba(0,0,0,0.5);
  padding: 2px 10px;
  width: 100%;
  text-align: center;
}

/* Остальные фиксированные эффекты */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 999;
}

.vhs-tracking {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 45px;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.2), rgba(255,255,255,0.2) 2px, transparent 2px, transparent 4px);
  animation: vhsTrack 0.3s infinite;
  pointer-events: none;
  z-index: 999;
}
@keyframes vhsTrack {
  0% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  100% { transform: translateX(-4px); }
}

.vhs-rewind {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2000;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.25), rgba(255,255,255,0.25) 3px, transparent 3px, transparent 6px);
  opacity: 0;
  transition: opacity 0.15s;
}

.tv-off {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 99999;
  transform: scaleY(0);
  transform-origin: center;
  pointer-events: none;
}
.tv-off.active { animation: tvOff 0.6s forwards; }
@keyframes tvOff {
  0% { transform: scaleY(1); }
  60% { transform: scaleY(0.02); }
  100% { transform: scaleY(0); }
}

.pirate-signal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: #00ff9f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 28px;
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
}
.pirate-signal.active { animation: pirateFlash 1.5s forwards; }
@keyframes pirateFlash {
  0% { opacity: 0; }
  20% { opacity: 1; }
  40% { opacity: 0; }
  60% { opacity: 1; }
  100% { opacity: 0; }
}

.vhs-pause {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  pointer-events: none;
  opacity: 0;
  z-index: 5000;
}
.vhs-pause.active {
  opacity: 1;
  animation: vhsPause 0.8s infinite;
}
@keyframes vhsPause {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}

.vhs-glitch {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  mix-blend-mode: overlay;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
}

.screen-shake {
  animation: shake 0.2s infinite;
}
@keyframes shake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2px, -1px); }
  50% { transform: translate(-2px, 1px); }
  75% { transform: translate(1px, 2px); }
  100% { transform: translate(0, 0); }
}

/* ========== ЗАСТАВКА ========== */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s, transform 0.8s;
}
#splash-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.8;
  filter: contrast(1.2) brightness(0.8);
}
.splash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(255,0,170,0.15) 0px, rgba(0,255,255,0.15) 2px, transparent 4px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: flicker 0.3s infinite;
}
@keyframes flicker {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}
#splash-message {
  font-size: clamp(2rem, 12vw, 6rem);
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green), 0 0 20px #000, 2px 2px 0 var(--neon-pink), -2px -2px 0 var(--neon-blue);
  font-family: 'Orbitron', var(--main-font, 'Unbounded'), monospace;
  letter-spacing: 0.5rem;
  animation: textGlitch 1.5s infinite;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
}
@keyframes textGlitch {
  0% { text-shadow: 2px 2px 0 var(--neon-pink), -2px -2px 0 var(--neon-blue); }
  25% { text-shadow: -2px 2px 0 var(--neon-blue), 2px -2px 0 var(--neon-pink); }
  50% { text-shadow: 2px -2px 0 var(--neon-green), -2px 2px 0 var(--neon-pink); }
  75% { text-shadow: -2px -2px 0 var(--neon-blue), 2px 2px 0 var(--neon-green); }
  100% { text-shadow: 2px 2px 0 var(--neon-pink), -2px -2px 0 var(--neon-blue); }
}
#splash-screen.tv-off { animation: tvOff 0.6s forwards; }

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
#main-content {
  display: none;
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 10;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Вертикальный скролл */
.vertical-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-pink) #000814;
}
.vertical-scroll::-webkit-scrollbar { width: 8px; }
.vertical-scroll::-webkit-scrollbar-track { background: #000814; }
.vertical-scroll::-webkit-scrollbar-thumb { background: var(--neon-pink); border-radius: 4px; box-shadow: 0 0 10px var(--neon-pink); }

/* Секции занимают всю высоту окна */
.section {
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 3px ridge #00ffff;
  padding: 20px;
  box-sizing: border-box;
  padding-top: var(--topbar-h);
  padding-bottom: var(--bottombar-h);
}

.content-container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 40px 20px; }

.section-title { position: relative; margin-bottom: 30px; }
.section-title::after {
  content: ''; position: absolute; bottom: -10px; left: 0; width: 100px; height: 3px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-green));
  box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-blue);
  animation: titleGlitch 3s infinite;
}
@keyframes titleGlitch {
  0% { transform: translateX(0); opacity: 1; }
  25% { transform: translateX(-5px); opacity: 0.8; }
  50% { transform: translateX(5px); opacity: 0.9; }
  75% { transform: translateX(-2px); opacity: 1; }
  100% { transform: translateX(0); }
}

/* Секция 1 */
.release-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.cover-left { flex: 1 1 300px; max-width: 400px; }
.cover-left img { width: 100%; border: 3px solid var(--neon-pink); box-shadow: 0 0 30px var(--neon-pink), 0 0 60px rgba(255,0,170,0.3); animation: coverGlitch calc(var(--glitch-intensity) * 0.2s) infinite; }
@keyframes coverGlitch {
  0% { transform: translate(0); filter: hue-rotate(0deg); }
  2% { transform: translate(-2px, 2px); filter: hue-rotate(90deg); }
  4% { transform: translate(2px, -2px); filter: hue-rotate(180deg); }
  6% { transform: translate(0); filter: hue-rotate(0deg); }
  100% { transform: translate(0); }
}
.info-right { flex: 2 1 400px; display: flex; flex-direction: column; gap: 1.5rem; }
.info-right h2 { border-bottom: none; font-size: 2.5rem; margin-bottom: 0; }
.info-right .teaser { color: var(--neon-blue); font-size: 1.3rem; font-style: italic; text-shadow: 0 0 5px var(--neon-blue); border-left: 4px solid var(--neon-blue); padding-left: 1rem; }
.music-icons { display: flex; gap: 2rem; margin-top: 1rem; flex-wrap: wrap; }
.music-icons a { color: var(--neon-green); font-size: 2.5rem; transition: 0.2s; }
.music-icons a:hover { color: var(--neon-pink); transform: scale(1.2); text-shadow: 0 0 20px var(--neon-pink); }

/* Секция 2 */
.manifesto-section { display: flex; flex-direction: row; gap: 2rem; min-height: 70vh; height: auto; align-items: stretch; flex-wrap: wrap; }
.manifesto-text { flex: 1 1 300px; font-size: 1.2rem; line-height: 1.6; border-right: 2px solid var(--neon-pink); padding-right: 2rem; overflow-y: auto; text-shadow: 0 0 2px var(--neon-green); }
.vertical-gallery {
  flex: 1 1 300px;
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}
.vertical-gallery img {
  width: 100%;
  height: auto;
  border: 2px solid var(--neon-blue);
  transition: opacity 0.3s ease;
}
.gallery-glitch {
  animation: glitch-img 0.2s infinite;
}
@keyframes glitch-img {
  0% { transform: translate(0); opacity: 1; }
  20% { transform: translate(-3px, 3px); opacity: 0.9; }
  40% { transform: translate(3px, -3px); opacity: 0.8; }
  60% { transform: translate(-3px, -3px); opacity: 0.9; }
  80% { transform: translate(3px, 3px); opacity: 1; }
  100% { transform: translate(0); }
}

/* Секция 3 */
.releases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding: 2rem 0; }
.release-card {
  text-align: center; transition: 0.2s; border: 1px solid var(--neon-green); padding: 1rem;
  background: rgba(0,0,0,0.3); display: flex; flex-direction: column; align-items: center;
}
.release-card img { width: 100%; border: 2px solid var(--neon-green); margin-bottom: 1rem; filter: drop-shadow(0 0 10px var(--neon-green)); }
.release-card:hover { transform: scale(1.05); border-color: var(--neon-pink); box-shadow: 0 0 30px var(--neon-pink); }
.release-card .music-icons { margin-top: 0.5rem; justify-content: center; gap: 1rem; }
.release-card .music-icons a { font-size: 1.8rem; }

/* Контейнеры для изображений с глитч-эффектом */
.release-img, .cover-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 0;
}

.release-img::after, .cover-img::after {
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: var(--neon-green);
  font-family: 'Orbitron', var(--main-font, 'Unbounded'), monospace;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-shadow: 2px 2px 0 var(--neon-pink), -2px -2px 0 var(--neon-blue);
  backdrop-filter: blur(2px);
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 20px var(--neon-pink);
  animation: glitchHover 3s infinite step-end;
  z-index: 10;
}

.release-img:hover::after, .cover-img:hover::after {
  opacity: 1;
}

@keyframes glitchHover {
  0%, 100% { transform: translate(0); filter: hue-rotate(0deg); }
  10% { transform: translate(-2px, 2px); filter: hue-rotate(90deg); }
  20% { transform: translate(2px, -2px); filter: hue-rotate(180deg); }
  30% { transform: translate(-2px, -2px); filter: hue-rotate(270deg); }
  40%, 100% { transform: translate(0); filter: hue-rotate(0deg); }
}

/* Секция 4 (генератор постеров) */
.poster-generator {
  display: flex;
  flex-direction: row;
  gap: 30px;
  flex-wrap: wrap;
}
.generator-controls {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border: 2px solid var(--neon-green);
}
.generator-controls select,
.generator-controls input,
.generator-controls button {
  padding: 10px;
  background: #111;
  color: white;
  border: 1px solid var(--neon-blue);
  font-family: monospace;
}
.generator-controls button {
  background: var(--neon-pink);
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}
.generator-controls button:hover {
  background: var(--neon-green);
}
.generator-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.poster-preview {
  flex: 2;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--neon-green);
  padding: 10px;
}
#poster-canvas {
  width: 100%;
  height: auto;
  max-width: 500px;
  border: 2px solid var(--neon-green);
}
#download-btn {
  padding: 10px 20px;
  background: var(--neon-pink);
  color: black;
  border: none;
  font-weight: bold;
  cursor: pointer;
}
#download-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .poster-generator {
    flex-direction: column;
  }
  .generator-controls, .poster-preview {
    width: 100%;
  }
}

/* Секция 5 (контакты) */
.contact-section { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.contact-logo { flex: 1 1 200px; text-align: center; }
.contact-logo img { max-width: 200px; border: 2px solid var(--neon-pink); box-shadow: 0 0 30px var(--neon-pink); }
.contact-logo h2 { border-bottom: none; font-size: 2rem; }
.contact-details { flex: 1 1 300px; display: flex; flex-direction: column; gap: 1rem; font-size: 1.2rem; }
.contact-details a { color: var(--neon-blue); text-decoration: none; border-bottom: 1px dashed var(--neon-blue); }
.contact-details a:hover { color: var(--neon-pink); border-bottom-color: var(--neon-pink); }
.contact-details .social-icons { display: flex; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; }
.contact-details .social-icons a { font-size: 2rem; border-bottom: none; }

/* Нижняя панель */
.bottom-panel {
  background: #000814;
  border-top: 2px solid var(--neon-green);
  padding: 10px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 100;
  width: 100%;
}
@media (max-width: 768px) {
  .bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
}

.ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Orbitron', var(--main-font, 'Unbounded'), monospace;
  text-transform: uppercase;
  color: var(--neon-green);
  font-size: 14px;
}
.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 35s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.tape-player {
  display: flex;
  align-items: center;
  gap: 10px;
  background: black;
  border: 2px solid cyan;
  padding: 5px 10px;
  font-family: monospace;
}
.tape-player span { font-size: 12px; color: white; }
.tape-buttons { display: flex; gap: 5px; }
.tape-buttons button {
  background: #111;
  color: white;
  border: 1px solid cyan;
  cursor: pointer;
  width: 30px;
  height: 30px;
  font-size: 14px;
}
.tape-buttons button:hover { background: cyan; color: black; }

.nav-buttons { display: flex; gap: 10px; }
.nav-btn {
  background: rgba(0, 8, 20, 0.8);
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: 0.2s;
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
}
.nav-btn:hover {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  box-shadow: 0 0 20px var(--neon-pink);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .tape-player span { font-size: 10px; }
  .nav-btn { width: 35px; height: 35px; font-size: 1.2rem; }
  .ticker { font-size: 12px; }
}
/* 4-я секция (телевизор 90-х) */
.section:nth-child(4) {
  min-height: 100vh;
  height: 100vh;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.section:nth-child(4) .content-container {
  flex: 1;
  height: 100%;
  width: 100%;
  padding: 0 !important;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tv-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Стили для 4-й секции (телевизор) */
.section:nth-child(4) {
  background: transparent !important; /* убираем фон секции, чтобы видео просвечивало */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.section:nth-child(4) .content-container {
  background: transparent;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tv-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

