@font-face {
  font-family: "Determination (8-bit oper. JVE) Mono";
  src: local("Determination (8-bit oper. JVE) Mono"),
  url("/assets/determination-8-bit-oper-jve-mono.otf") format("opentype");
}


/* ===================================================================
 *  BASE — DESKTOP
 *  =================================================================== */

html {
  background-color: #000000;
  color: #ffffff;
  font-family: "Determination (8-bit oper. JVE) Mono", monospace;
  image-rendering: pixelated;
}

/* Фон-плитка — два слоя с разной скоростью анимации */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url(/img/bg-tile.png);
  background-size: 80px;
  background-repeat: repeat;
  opacity: 0.5;
  animation: backgroundAnimation 15s linear infinite;
  z-index: -10;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url(/img/bg-tile.png);
  background-size: 80px;
  background-repeat: repeat;
  animation: backgroundAnimation2 10s linear infinite;
  z-index: -10;
}

/* Контентная карточка */
.body {
  background-color: #000000ca;
  border: 5px solid #ffffff;
  margin: 10px;
  padding: 10px;
  padding-left: 20px;
}

main {
  padding: 20px;
}

section {
  margin-top: -15px;
}

/* Плеер */
#radio {
display: grid;
grid-template-areas:
"radio"
"links";
grid-template-rows: 100px;
grid-template-columns: 1fr;
gap: 40px;
padding: 25px;
place-items: center;
}

#silliradio {
grid-area: radio;
margin: 0;
}

#links {
grid-area: links;
}

/* Шапка/навигация */
#main-header {
display: flex;
max-width: fit-content;
font-size: 20px;
gap: 32px;
}

/* Старый ползунок громкости (для легаси-плеера) */
#volume {
margin: 0;
padding: 0;
margin-bottom: -5px;
margin-left: 10px;
width: 50px;
}


/* ===================================================================
 *  MOBILE OVERRIDES — max-width: 1080px
 *  =================================================================== */

@media (max-width: 1080px) {
  body {
    padding: 0;
    margin: 0;
  }

  .body {
    margin: 0;
  }

  main {
    padding: 0;
  }

  h2 {
    padding-left: 0;
  }

  section {
    margin-top: -5px;
  }

  #radio {
  margin-top: 0px;
  grid-template-rows: 100px 100px;
  }

  #main-header {
  gap: 24px;
  }

  #tuta {
  font-size: 20px;
  height: fit-content;
  }
}

@media (max-width: 700px) {
  #main-header {
  max-width: none;
  justify-content: space-between;
  }
}

@media (max-width: 550px) {
  #main-header {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  max-width: none;
  gap: 8px;
  }

  #main-header a {
  padding: 10px 14px;
  text-align: center;
  }
}

/* ===================================================================
 *  COMMON
 *  =================================================================== */

@keyframes backgroundAnimation {
  0%   { background-position: 0 0; }
  100% { background-position: 160px 80px; }
}

@keyframes backgroundAnimation2 {
  0%   { background-position: 0 0; }
  100% { background-position: 80px 160px; }
}

header {
  padding: 10px;
  border-radius: 10px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #f8ef64;
  transition: all 0.3s ease;
}

a {
  color: #ffffff;
  transition: all 0.3s ease;
}

a:hover {
  color: #f8ef64;
  transition: all 0.3s ease;
}

#links {
text-align: center;
}

.link_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 20px;
  text-decoration: none;
  margin: 8px;
  transition: all 0.3s ease;
}

.link_button:hover {
  border-color: #f8ef64;
  color: #f8ef64;
}

footer {
  background-color: #00000098;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px;
  text-align: center;
}

input {
  background-color: #444444;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  margin: 5px 5px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #555555;
  transition: all 0.3s ease;
}

.page-section[hidden] {
  display: none;
}

/* Webamp */
:root {
  --webamp-corner-bottom: 70px;
  --webamp-corner-right: 15px;
}

#webamp {
transition: transform 0.3s ease;
}

#webamp-wrap {
position: relative;
width: 275px;
height: 116px;
}

#webamp-container {
position: relative;
width: 100%;
height: 100%;
box-sizing: border-box;
}

#webamp-container::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-sizing: border-box;
border: 2px dashed rgba(255, 255, 255, 0.45);
pointer-events: none;
}

.webamp-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.webamp-placeholder a {
  pointer-events: auto;
  cursor: pointer;
  color: #f8ef64;
  text-decoration: underline;
}

/* Сердечко навигации */
.sick-cool-background {
  position: relative;
}

.heart {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: url('/img/h.png') center no-repeat;
  background-size: contain;
  image-rendering: pixelated;
  transition: left 0.3s ease, top 0.3s ease, opacity 0.15s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.heart.is-visible { opacity: 1; }
.heart.is-moving  { opacity: 0.3; }

/* RSS-раздел */
.rss-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rss-header h2 {
  margin: 0;
  font-size: 1.4em;
}

.rss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rss-action {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.85em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rss-action:hover {
  border-color: #f8ef64;
  color: #f8ef64;
}

#rss-status {
color: rgba(255, 255, 255, 0.75);
font-style: italic;
margin: 0 0 12px 0;
}

#rss-list:not([hidden]) {
display: flex;
flex-direction: column;
gap: 16px;
}

.rss-item {
  padding: 8px 14px;
  border-left: 3px solid #f8ef64;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 0 8px 8px 0;
}

.rss-item h3 {
  margin: 0 0 4px 0;
  font-size: 1.05em;
}

.rss-item h3 a {
  color: #f8ef64;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}

.rss-item h3 a:hover {
  border-bottom-color: #f8ef64;
}

.rss-item .rss-date {
  display: block;
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.rss-item p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  white-space: pre-wrap;
}

.rss-author::before {
  content: "· ";
}

.rss-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.rss-excerpt {
  margin: 0 0 8px 0;
  font-size: 0.9em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.rss-more {
  display: inline-block;
  font-size: 0.85em;
  color: #f8ef64;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 0.2s ease;
}

.rss-more:hover {
  border-bottom-color: #f8ef64;
}

.rss-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  color: inherit;
  shape-rendering: crispEdges;
}


/* <======| Deprecated shit |======> */
/* Тут лежит всякая legacy фигня оставшаяся от старой главной страницы которая возможно понадобится позже */

.navigation_div {
  padding: 10px;
  background-color: #00000000;
  border: 5px solid #666666;
  transition: all 0.3s ease-out;
  color: white;
  text-align: center;
  text-decoration: none;
  outline: none;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.navigation_hover {
  background-color: #000000aa;
  border: 5px solid #ffff00;
  color: yellow;
}

#playbutton {
color: white;
font-size: 18px;
text-decoration: none;
}

#playbutton:hover {
color: yellow;
}

#Ralsei {
width: 150px;
height: auto;
}

@keyframes squish {
  0%, 100% { transform: scale(1, 1) translateY(0); }
  50%      { transform: scale(1.5, 0.4) translateY(100px); }
}

#RalseiButton {
position: fixed;
bottom: 70px;
right: 15px;
border: 0;
cursor: pointer;
z-index: 1000;
image-rendering: pixelated;
background-color: transparent;
user-select: none;
}

.squish-animation {
  animation: squish 0.3s ease-in-out;
}
