html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

.hide-region {
  display: inline-block;
}
.geo-blocking .hide-region {
  display: none;
}
.container {
  width: 100%;
  height: var(--real-vh, 100dvh);
  min-height: var(--real-vh, 100dvh);
  max-width: none;
  max-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 24px;
  box-shadow: 0 0 0vw rgba(0,0,0,0.4);
  box-sizing: border-box;
  top: 0vw;
  padding-top: 24px;
  padding-bottom: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: #000; /* fallback на случай без blur */
  overflow-x: hidden;
}

#background-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.8);
  z-index: 0;
}

#background-blur::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.02); /* мягкий светлый налёт */
  z-index: 1;
}

.branding {
  width: 90vw;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  margin: 24px auto 10px auto;
  justify-content: flex-start;
  position: relative;
  left: 0;
  top: 0;
  padding-left: 0;
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 11vw;
  height: 11vw;
  object-fit: contain;
  opacity: 0.9;
  margin-top: 2.5vw;
  margin-left: 0;
}

.branding-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.branding-text .station-name, .branding-text .station-tag {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.branding-text .station-name {
  font-size: 5vw;
  font-weight: bold;
  margin-top: 0;
  margin-left: 0;
  color: white;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
  max-width: none;
}
.branding-text .station-tag {
  font-size: 3.5vw;
  font-weight: normal;
  text-align: left;
  margin-left: 0;
  color: rgba(255, 255, 255, 0.6);
}

.cover {
  width: 90vw;
  max-width: 40vh;
  max-height: 40vh;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  margin: 12px auto 8px auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  display: block;
  transition: opacity 0.5s cubic-bezier(.4,0,.2,1);
  opacity: 1;
}
.cover.fade-out {
  opacity: 0;
}
.cover.fade-in {
  opacity: 1;
}

.track-info {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.track-title,
.track-artist {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.track-title span, .track-artist span {
  display: inline-block;
  white-space: nowrap;
  transition: none;
}

.track-title {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: bold;
  max-width: 100%;
  display: block;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.track-artist {
  font-size: 20px;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 5px;
  opacity: 0.6;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.play-button svg {
  width: 100%;
  height: 100%;
  display: block;
}

.play-button svg path,
.play-button svg polygon,
.play-button svg rect,
.play-button svg circle {
  fill: white !important;
  stroke: white !important;
}

.play-button {
  width: clamp(32px, 12vw, 80px);
  height: clamp(32px, 12vw, 80px);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 5px solid rgba(255, 255, 255, 0.9) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  margin-top: clamp(8px, 4vw, 40px);
}

.play-button:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Global styles for increasing icons in the footer */
.footer-icons a, .footer-icons i {
  transition: transform 0.2s cubic-bezier(.4,0,.2,1), color 0.3s;
  transform: scale(1);
}
.footer-icons a:hover, .footer-icons a:focus,
.footer-icons i:hover, .footer-icons i:focus {
  transform: scale(1.25);
  /* color: #ffd700 !important;
  fill: #ffd700 !important; */
}

.footer-icons {
  font-size: 30px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
  display: flex;
  justify-content: space-around;
  padding: 0 8px 24px 8px;
  gap: clamp(24px, 8vw, 80px);
  flex-shrink: 0;
  padding-bottom: calc(6vw + env(safe-area-inset-bottom, 0px));
}
.footer-icons a, .footer-icons i {
  flex-shrink: 0;
  min-width: 0;
  color: #fff !important;
  fill: #fff !important;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(.4,0,.2,1), color 0.3s;
  transform: scale(1);
}

.footer-icons a:hover,
.footer-icons i:hover {
  transform: scale(1.25);
  /* color: #ffd700 !important;
  fill: #ffd700 !important; */
}

.container > *:not(#background-blur) {
  position: relative;
  top: 1vw;
}

.main-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: clamp(8px, 2vw, 16px);
}

/* 

/* ===================================================== */
/*  Адаптивность по унифицированной сетке                 */
/* ===================================================== */

/* Portait */
@media (orientation: portrait) {
  .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 24px;
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
  }

  #burger-menu {
    position: absolute;
    top: 12vw;
    right: 6vw;
    width: 8vw;
    height: 6vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
  }
  #burger-menu span {
    display: block;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  #burger-menu.open span:nth-child(1){transform:translateY(10px) rotate(45deg);}
  #burger-menu.open span:nth-child(2){opacity:0;}
  #burger-menu.open span:nth-child(3){transform:translateY(-10px) rotate(-45deg);}

  #side-menu{
    position:fixed; 
    top:0; 
    right:-75vw;
    width:70vw;
    max-width:380px;
    height:100vh;
    overflow: hidden;
    background:linear-gradient(
        to bottom,
        rgba(25,25,25,.95) 0%,
        rgba(25,25,25,.80) 60%,
        rgba(25,25,25,.50) 100%
    );
    backdrop-filter:blur(4px);
    display:flex; flex-direction:column;
    padding:80px 24px; gap:24px;
    box-shadow:-4px 0 16px rgba(0,0,0,.4);
    transition:right .3s ease-out;
    z-index:999;
  }
  #side-menu.open{right:0;}
  #side-menu nav ul.menu{
    list-style:none; margin:0; padding:0;
    display:flex; flex-direction:column;
    gap:6vw;
  }
  #side-menu nav li a{
    display:flex; 
    align-items:center; 
    gap:6vw;
    font-size:6vw;
    font-weight:600;
    color:#fff; text-decoration:none;
    opacity:.9; transition:opacity .2s;
  }
  #side-menu nav li a:hover{opacity:1;}
  #side-menu .icon{
    font-size:1.2em; 
    width:1em; 
    height:1em;
    display:inline-block; 
    line-height:1;
    color: #fff;
  }
  #overlay{
    position:fixed; inset:0;
    background:rgba(0,0,0,.5);
    backdrop-filter:blur(2px);
    opacity:0; pointer-events:none;
    transition:opacity .3s;
    z-index:998;
  }
  #overlay.open{opacity:1; pointer-events:auto;}

  .label-copyright {
    position: relative;
    left: 0;
    right: 0;
    bottom: -111vw;
    width: 100%;
    text-align: left;
    font-size: 3vw;
    color: #ccc;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
  }
  .label-copyright-text {
    font-weight: normal;
    color: #ccc;
    font-size: 1em;
  }

  .branding {
    width: 90vw;
    max-width: 340px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    /* margin: 24px auto 10px auto; */
    margin-left: 0;
    justify-content: flex-start;
    position: relative;
    left: 0;
    top: 0;
    padding-left: 0;
    box-sizing: border-box;
    margin-top: 2vw;
    margin-bottom: 10px;
    flex-shrink: 0;
  }
  
  .logo-icon {
    width: 11vw;
    height: 11vw;
    object-fit: contain;
    opacity: 0.9;
    margin-top: 2.5vw;
    margin-left: 0;
  }
  .branding-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .branding-text .station-name, .branding-text .station-tag {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .branding-text .station-name {
    font-size: 5vw;
    font-weight: bold;
    margin-top: 1vw;
    margin-left: 0;
    color: white;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
  }
  .branding-text .station-tag {
    font-size: 3.5vw;
    font-weight: normal;
    text-align: left;
    margin-left: 0;
    color: rgba(255, 255, 255, 0.6);
  }
  .main-content {
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    flex: none;
    align-items: center;
    gap: 0vw;
    flex: 1;
    width: 100%;
    margin-top: 6vw;
    padding-left: 0vw;
    padding-right: 0vw;
    min-height: 0;
    overflow: hidden;
  }
  .cover {
    width: 90vw;
    max-width: 42vh;
    max-height: 42vh;
    object-fit: contain;
    border-radius: 16px;
    margin: 1vw auto 1vw auto;
    box-shadow: 0 0 1vw rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
    display: block;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1);
    opacity: 1;
  }
  .cover.fade-out {
    opacity: 0;
  }
  .cover.fade-in {
    opacity: 1;
  }
  .track-info {
    width: 100%;
    max-width: 100%;
    padding: 2vw 1vw 0 1vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }
  
  .track-title,
  .track-artist {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  }
  
  .track-title {
    font-size: 7vw;
    font-weight: bold;
    max-width: 100%;
    display: block;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  }
  
  .track-artist {
    font-size: 5vw;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    opacity: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  }

  .play-button {
    width: 20vw;
    height: 20vw;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 5px solid rgba(255, 255, 255, 0.9) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    margin-top: 10vw;
  }
  
  .play-button:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
  }

  .footer-icons {
    font-size: 7vw;
    width: 100%;
    max-width: none;
    margin: 0;
    margin-bottom: -10vw;
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    justify-content: space-around;
    padding: 0;
    padding-top: 0;
    /* padding-bottom: 18vw; */
    gap: 8vw;
    flex-shrink: 0;
    padding-bottom: calc(10vw + env(safe-area-inset-bottom, 0px));
  }

  .footer-icons a, .footer-icons i {
    transition: transform 0.2s cubic-bezier(.4,0,.2,1), color 0.3s;
    transform: scale(1);
  }
  .footer-icons a:hover, .footer-icons a:focus,
  .footer-icons i:hover, .footer-icons i:focus {
    transform: scale(1.25);
    /* color: #ffd700 !important;
    fill: #ffd700 !important; */
  }

  .footer-icons a, .footer-icons i {
    flex-shrink: 0;
    min-width: 0;
    color: #fff !important;
    fill: #fff !important;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .footer-icons a:hover,
  .footer-icons i:hover {
    opacity: 1;
    /* color: #ffd700 !important;
    fill: #ffd700 !important; */
  }
}

/* ===================================================== */
/*  Landscape                                         */
/* ===================================================== */
/* Landscape */
@media (orientation: landscape) {
  .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 24px;
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
  }

  #burger-menu {
    position: absolute;
    top: 3vw;
    right: 4vw;
    width: 5vw;
    height: 4vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
  }
  
  #burger-menu span {
    display: block;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* ───────── бургер-крестик ───────── */
  #burger-menu.open span:nth-child(1){transform:translateY(14px) rotate(45deg);}
  #burger-menu.open span:nth-child(2){opacity:0;}
  #burger-menu.open span:nth-child(3){transform:translateY(-14px) rotate(-45deg);}

  /* ───────── боковая панель ───────── */
  #side-menu{
    position:fixed; 
    top:0; 
    right:-50vw;
    width:70vw;           /* базовая ширина меню (можно править) */
    max-width:45vw;
    height:100vh;
    overflow: hidden;

    background:linear-gradient(
        to bottom,
        rgba(25,25,25,.95) 0%,
        rgba(25,25,25,.80) 60%,
        rgba(25,25,25,.50) 100%
    );
    backdrop-filter:blur(4px);

    display:flex; flex-direction:column;
    padding:80px 24px; gap:24px;
    box-shadow:-4px 0 16px rgba(0,0,0,.4);
    transition:right .3s ease-out;
    z-index:999;
  }
  #side-menu.open{right:0;}

  /* ───────── сам список пунктов ───────── */
  #side-menu nav ul.menu{
    list-style:none; margin:0; padding:0;
    display:flex; flex-direction:column;          /* вертикально */
    gap:2.5vw;                                     /* интервалы между пунктами */
  }

  /*  ➜ пункт меню (иконка + надпись в строку) */
  #side-menu nav li a{
    display:flex; align-items:center; 
    gap:3vw;   /* иконка-текст */
    font-size:3vw;   /* ← РАЗМЕР ШРИФТА (меняйте здесь или в media-query) */
    font-weight:600;
    color:#fff; 
    text-decoration:none;
    opacity:.9; 
    transition:opacity .2s;
  }
  #side-menu nav li a:hover{opacity:1;}

  /* иконка, если вставляете SVG/эмодзи */
  #side-menu .icon{
    font-size:1.2em; 
    width:1em; 
    height:1em;       /* размер иконки = 1.2× шрифта */
    display:inline-block; 
    line-height:1;
    color: #fff;
  }

  /* ───────── overlay ───────── */
  #overlay{
    position:fixed; inset:0;
    background:rgba(0,0,0,.5);
    backdrop-filter:blur(2px);
    opacity:0; pointer-events:none;
    transition:opacity .3s;
    z-index:998;
  }
  #overlay.open{opacity:1; pointer-events:auto;}

  .label-copyright {
    position: relative;
    left: 0;
    right: 0;
    bottom: 10px;
    width: 100%;
    text-align: left;
    font-size: 1.5vw;
    color: #ccc;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
    z-index: 10;
  }
  /* .label-copyright-text {
    font-weight: normal;
    color: #ccc;
    font-size: 1em;
  } */

  .branding {
    width: 90vw;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 1vw;
    z-index: 2;
    margin-left: 2vw;
    margin-bottom: 2.5vw;
    margin-top: -3vw;
    justify-content: flex-start;
    position: relative;
    left: 0;
    top: 0;
    padding-left: 0;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .logo-icon {
    width: 5vw;
    height: 5vw;
    object-fit: contain;
    opacity: 0.9;
    margin-top: 1vw;
    margin-left: 0;
    margin-bottom: 0;
  }

  .branding-text .station-name, .branding-text .station-tag {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .branding-text .station-name {
    font-size: 2vw;
    font-weight: bold;
    margin-top: 0.5vw;
    margin-left: 0;
    color: white;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
  }
  .branding-text .station-tag {
    font-size: 1.75vw;
    font-weight: normal;
    text-align: left;
    margin-left: 0;
    color: rgba(255, 255, 255, 0.6);
  }
  .main-content {
    justify-content: flex-start;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3vw;
    flex: 1;
    width: 100%;
    margin-bottom: 0vw;
    margin-top: -3vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }

  .cover {
    width: 100%;
    height: auto;
    max-height: 50vh;
    max-width: 50vh;
    object-fit: contain;
    border-radius: 16px;
    flex-shrink: 0;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1);
    opacity: 1;
  }
  .cover.fade-out {
    opacity: 0;
  }
  .cover.fade-in {
    opacity: 1;
  }

  .track-info {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0vw;
  }
  
  .track-title,
  .track-artist {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent -3%, black 1%, black 92%, transparent 100%);
  }
  
  .track-title {
    font-size: 4vw;
    text-align: left;
    font-weight: bold;
    max-width: 100%;
    display: block;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  }
  
  .track-artist {
    font-size: 2.5vw;
    text-align: left;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    opacity: 0.9;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  }

  .play-button {
    width: 7.5vw;
    height: 7.5vw;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.5);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4vw;
  }

  .footer-icons a, .footer-icons i {
    transition: transform 0.2s cubic-bezier(.4,0,.2,1), color 0.3s;
    transform: scale(1);
  }
  .footer-icons a:hover, .footer-icons a:focus,
  .footer-icons i:hover, .footer-icons i:focus {
    transform: scale(1.25);
    /* color: #ffd700 !important;
    fill: #ffd700 !important; */
  }

  .footer-icons {
    font-size: 4vw;
    width: 100%;
    max-width: none;
    margin-bottom: 0vw;
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    justify-content: space-around;
    padding: 0 8px 24px 8px;
    padding-top: 1vw;
    padding-bottom: 5vw;
    gap: 8vw;
    flex-shrink: 0;
  }
  .footer-icons a, .footer-icons i {
    flex-shrink: 0;
    min-width: 0;
    color: #fff !important;
    fill: #fff !important;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .footer-icons a:hover,
  .footer-icons i:hover {
    opacity: 1;
    /* color: #ffd700 !important;
    fill: #ffd700 !important; */
  }

  .label-copyright {
    width: 100%;
    text-align: center;
    margin: 20px 0 10px 0;
    font-size: 1.2vw;
    color: #ccc;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
  }
  .label-copyright-text {
    font-weight: normal;
    color: #ccc;
    font-size: 1em;
  }
}

/* ===================================================== */
/*  Tablet iPad mini                                      */
/* ===================================================== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 24px;
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    min-height: var(--real-vh, 100dvh);
    max-height: 100vh;
    max-width: none;
    margin: 0 auto;
    box-sizing: border-box;
    box-shadow: 0 0 0vw rgba(0,0,0,0.4);
    border-radius: 24px;
    top: 0vw;

  #burger-menu {
    position: absolute;
    top: 3vw;
    right: 4vw;
    width: 5vw;
    height: 4vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
  }
    
  #burger-menu span {
    display: block;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
    /* ───────── бургер-крестик ───────── */
#burger-menu.open span:nth-child(1){transform:translateY(8px) rotate(45deg);}
#burger-menu.open span:nth-child(2){opacity:0;}
#burger-menu.open span:nth-child(3){transform:translateY(-8px) rotate(-45deg);}
  
  /* ───────── боковая панель ───────── */
  #side-menu{
    position:fixed; 
    top:0; 
    right:-50vw;
    width:70vw;           /* базовая ширина меню (можно править) */
    max-width:45vw;
    height:100vh;
    overflow: hidden;
  
    background:linear-gradient(
        to bottom,
        rgba(25,25,25,.95) 0%,
        rgba(25,25,25,.80) 60%,
        rgba(25,25,25,.50) 100%
    );
    backdrop-filter:blur(4px);
  
    display:flex; flex-direction:column;
    padding:80px 24px; gap:24px;
    box-shadow:-4px 0 16px rgba(0,0,0,.4);
    transition:right .3s ease-out;
    z-index:999;
  }
  #side-menu.open{right:0;}
  
  /* ───────── сам список пунктов ───────── */
  #side-menu nav ul.menu{
    list-style:none; margin:0; padding:0;
    display:flex; flex-direction:column;          /* вертикально */
    gap:2.5vw;                                     /* интервалы между пунктами */
  }
  
  /*  ➜ пункт меню (иконка + надпись в строку) */
  #side-menu nav li a{
    display:flex; align-items:center; 
    gap:3vw;   /* иконка-текст */
    font-size:3vw;   /* ← РАЗМЕР ШРИФТА (меняйте здесь или в media-query) */
    font-weight:600;
    color:#fff; 
    text-decoration:none;
    opacity:.9; 
    transition:opacity .2s;
  }
  #side-menu nav li a:hover{opacity:1;}
  
  /* иконка, если вставляете SVG/эмодзи */
  #side-menu .icon{
    font-size:1.2em; 
    width:1em; 
    height:1em;       /* размер иконки = 1.2× шрифта */
    display:inline-block; 
    line-height:1;
    color: #fff;
  }
  
  /* ───────── overlay ───────── */
  #overlay{
    position:fixed; inset:0;
    background:rgba(0,0,0,.5);
    backdrop-filter:blur(2px);
    opacity:0; pointer-events:none;
    transition:opacity .3s;
    z-index:998;
  }
  #overlay.open{opacity:1; pointer-events:auto;}
  
  
  .label-copyright {
    width: 100%;
    text-align: center;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
    color: #ccc;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
  }
  .label-copyright-text {
    font-weight: normal;
    color: #ccc;
    font-size: 1em;
  }
  /* ===================================================== */
  .branding {
    width: 90vw;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 1vw;
    z-index: 2;
    margin-left: 2vw;
    margin-bottom: 0.5vw;
    margin-top: 0.5vw;
    justify-content: flex-start;
    position: relative;
    left: 0;
    top: 0;
    padding-left: 0;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .logo-icon {
    width: 5vw;
    height: 5vw;
    object-fit: contain;
    opacity: 0.9;
    margin-top: 1vw;
    margin-left: 0;
    margin-bottom: 0;
  }

  .branding-text .station-name, .branding-text .station-tag {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .branding-text .station-name {
    font-size: 2.5vw;
    font-weight: bold;
    margin-top: 0;
    margin-left: 0;
    color: white;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
  }
  .branding-text .station-tag {
    font-size: 1.75vw;
    font-weight: normal;
    text-align: left;
    margin-left: 0;
    color: rgba(255, 255, 255, 0.6);
  }
  .main-content {
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vw;
    flex: none;
    width: 100%;
    margin-top: 2vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }

  .cover {
    width: 100%;
    height: auto;
    max-height: 46vh;
    max-width: 46vh;
    object-fit: contain;
    border-radius: 16px;
    flex-shrink: 0;
    margin: 0;
    position: relative;
    z-index: 2;
    display: block;
    box-shadow: 0 0 1vw rgba(0, 0, 0, 0.7);
    margin-top: 0vw;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1);
    opacity: 1;
  }
  .cover.fade-out {
    opacity: 0;
  }
  .cover.fade-in {
    opacity: 1;
  }

  .track-info {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0vw;
  }
  
  .track-title,
  .track-artist {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .track-title {
    font-size: 4vw;
    font-weight: bold;
    max-width: 100%;
    display: block;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  }
  
  .track-artist {
    font-size: 2.5vw;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    opacity: 0.6;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  }

  .play-button {
    width: 13vw;
    height: 13vw;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.5);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6vw;
  }

  .footer-icons a, .footer-icons i {
    transition: transform 0.2s cubic-bezier(.4,0,.2,1), color 0.3s;
    transform: scale(1);
  }
  .footer-icons a:hover, .footer-icons a:focus,
  .footer-icons i:hover, .footer-icons i:focus {
    transform: scale(1.25);
    /* color: #ffd700 !important;
    fill: #ffd700 !important; */
  }

  .footer-icons {
    font-size: 5vw;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    margin-top: 15vw;
    margin-bottom: 0vw;
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    justify-content: space-around;
    padding-bottom: 0vw;
    gap: 8vw;
    flex-shrink: 0;
  }
  .footer-icons a, .footer-icons i {
    flex-shrink: 0;
    min-width: 0;
    color: #fff !important;
    fill: #fff !important;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .footer-icons a:hover,
  .footer-icons i:hover {
    opacity: 1;
    /* color: #ffd700 !important;
    fill: #ffd700 !important; */
  }

  .label-copyright {
    width: 100%;
    text-align: center;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
    color: #ccc;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
  }
  .label-copyright-text {
    font-weight: normal;
    color: #ccc;
    font-size: 1em;
  }
}

/* ===================================================== */
/*  iPad Pro (ландшафт) и Surface Pro                    */
/* ===================================================== */
@media (min-width: 912px) and (max-width: 1368px) and (orientation: portrait) {
  .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 24px;
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
  }

  #burger-menu {
    position: absolute;
    top: 4vw;
    right: 4vw;
    width: 5vw;
    height: 4vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
  }
  
  #burger-menu span {
    display: block;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* ───────── бургер-крестик ───────── */
#burger-menu.open span:nth-child(1){transform:translateY(8px) rotate(45deg);}
#burger-menu.open span:nth-child(2){opacity:0;}
#burger-menu.open span:nth-child(3){transform:translateY(-8px) rotate(-45deg);}

/* ───────── боковая панель ───────── */
#side-menu{
  position:fixed; 
  top:0; 
  right:-50vw;
  width:70vw;           /* базовая ширина меню (можно править) */
  max-width:45vw;
  height:100vh;
  overflow: hidden;

  background:linear-gradient(
      to bottom,
      rgba(25,25,25,.95) 0%,
      rgba(25,25,25,.80) 60%,
      rgba(25,25,25,.50) 100%
  );
  backdrop-filter:blur(4px);

  display:flex; flex-direction:column;
  padding:80px 24px; gap:24px;
  box-shadow:-4px 0 16px rgba(0,0,0,.4);
  transition:right .3s ease-out;
  z-index:999;
}
#side-menu.open{right:0;}

/* ───────── сам список пунктов ───────── */
#side-menu nav ul.menu{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column;          /* вертикально */
  gap:2.5vw;                                     /* интервалы между пунктами */
}

/*  ➜ пункт меню (иконка + надпись в строку) */
#side-menu nav li a{
  display:flex; align-items:center; 
  gap:3vw;   /* иконка-текст */
  font-size:3vw;   /* ← РАЗМЕР ШРИФТА (меняйте здесь или в media-query) */
  font-weight:600;
  color:#fff; 
  text-decoration:none;
  opacity:.9; 
  transition:opacity .2s;
}
#side-menu nav li a:hover{opacity:1;}

/* иконка, если вставляете SVG/эмодзи */
#side-menu .icon{
  font-size:1.2em; 
  width:1em; 
  height:1em;       /* размер иконки = 1.2× шрифта */
  display:inline-block; 
  line-height:1;
  color: #fff;
}

/* ───────── overlay ───────── */
#overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.5);
  backdrop-filter:blur(2px);
  opacity:0; pointer-events:none;
  transition:opacity .3s;
  z-index:998;
}
#overlay.open{opacity:1; pointer-events:auto;}


  .label-copyright {
    width: 100%;
    text-align: center;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
    color: #ccc;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
  }
  .label-copyright-text {
    font-weight: normal;
    color: #ccc;
    font-size: 1em;
  }
  .branding {
    width: 90vw;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 1vw;
    z-index: 2;
    margin-left: 2vw;
    margin-bottom: 0.5vw;
    margin-top: 0.5vw;
    justify-content: flex-start;
    position: relative;
    left: 0;
    top: 0;
    padding-left: 0;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .logo-icon {
    width: 5vw;
    height: 5vw;
    object-fit: contain;
    opacity: 0.9;
    margin-top: 1vw;
    margin-left: 0;
    margin-bottom: 0;
  }

  .branding-text .station-name, .branding-text .station-tag {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .branding-text .station-name {
    font-size: 2.5vw;
    font-weight: bold;
    margin-top: 0;
    margin-left: 0;
    color: white;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
  }
  .branding-text .station-tag {
    font-size: 1.75vw;
    font-weight: normal;
    text-align: left;
    margin-left: 0;
    color: rgba(255, 255, 255, 0.6);
  }
  .main-content {
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4vw;
    flex: 1;
    width: 100%;
    margin-top: -2vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }

  .cover {
    width: 100%;
    height: auto;
    max-height: 46vh;
    max-width: 46vh;
    object-fit: contain;
    border-radius: 16px;
    flex-shrink: 0;
    margin-top: 6vw;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1);
    opacity: 1;
  }
  .cover.fade-out {
    opacity: 0;
  }
  .cover.fade-in {
    opacity: 1;
  }

  .track-info {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0vw;
  }
  
  .track-title,
  .track-artist {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .track-title {
    font-size: 4vw;
    font-weight: bold;
    max-width: 100%;
    display: block;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  }
  
  .track-artist {
    font-size: 2.5vw;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
    opacity: 0.6;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
  }

  .play-button {
    width: 13vw;
    height: 13vw;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8vw;
  }

  .footer-icons a, .footer-icons i {
    transition: transform 0.2s cubic-bezier(.4,0,.2,1), color 0.3s;
    transform: scale(1);
  }
  .footer-icons a:hover, .footer-icons a:focus,
  .footer-icons i:hover, .footer-icons i:focus {
    transform: scale(1.25);
    /* color: #ffd700 !important;
    fill: #ffd700 !important; */
  }

  .footer-icons {
    font-size: 5vw;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    margin-bottom: 5vw;
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    justify-content: space-around;
    padding-bottom: 0vw;
    gap: 8vw;
    flex-shrink: 0;
  }
  .footer-icons a, .footer-icons i {
    flex-shrink: 0;
    min-width: 0;
    color: #fff !important;
    fill: #fff !important;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(.4,0,.2,1), color 0.3s;
    transform: scale(1);
  }
  
  .footer-icons a:hover,
  .footer-icons a:focus,
  .footer-icons i:hover,
  .footer-icons i:focus {
    transform: scale(1.25);
    /* color: #ffd700 !important;
    fill: #ffd700 !important; */
  }

  .label-copyright {
    width: 100%;
    text-align: center;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
    color: #ccc;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
  }
  .label-copyright-text {
    font-weight: normal;
    color: #ccc;
    font-size: 1em;
  }
}

/* ===================================================== */
/*  Surface Duo (landscape)                             */
/* ===================================================== */
@media (max-width: 720px) and (orientation: landscape) {
  .cover {
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1);
    opacity: 1;
  }
  .cover.fade-out {
    opacity: 0;
  }
  .cover.fade-in {
    opacity: 1;
  }
  /* ... existing code ... */

  .label-copyright {
    width: 100%;
    text-align: center;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
    color: #ccc;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
  }
  .label-copyright-text {
    font-weight: normal;
    color: #ccc;
    font-size: 1em;
  }
}
}