
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Orbitron', sans-serif;
  overflow-y: auto;
  overflow-x: hidden;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: pan-y;
}
#starfield-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(ellipse at center, #0a001a 0%, #000000 80%);
}
.container {
  position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.header {
  text-align: center;
  margin: auto;
  padding: 11px;
}
.info {
  position: fixed;
  opacity: 0;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  will-change: transform;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 204, 255, 0.5);
  cursor: move;
  user-select: none;
}

.info h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #00ccff;
  text-shadow: 0 0 15px #00ccff, 0 0 30px #00ccff;
}

.info p {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #00ffe1;
  text-shadow: 0 0 10px #00ffe1;
}
.rotate-btn {
  position: absolute;
  top: 24px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.rotate-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.rotate-btn:active {
  transform: scale(0.9);
  background: rgba(0, 204, 255, 0.3);
}

.rotate-btn .icon {
  pointer-events: none;
}
.contacts {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border: 2px solid #00ccff;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.contact-item:hover {
  background: rgba(0, 0, 0, 0.7);
}

.contact-item:active {
  transform: scale(0.95);
  background: rgba(0, 204, 255, 0.2);
}
.contact-item::after,
.rotate-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.contact-item:hover::after,
.rotate-btn:hover::after {
  opacity: 1;
}
.contact-item .icon {
  flex-shrink: 0;
}

.contact-item:only-child svg {
  margin: 0;
}

a.contact-item:not(:has(span)) {
  padding: 10px;
}

.quote-container {
  padding: 40px 50px;
  font-size: 2rem;
  text-align: center;
  max-width: 800px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: none;
  border: none;
  box-shadow: none;
  text-shadow: none;
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: #00ffe1;
  animation: blink 1s step-start infinite;
  margin-left: 2px;
  vertical-align: text-bottom;
  height: 1em;
}

.cursor.no-blink {
  animation: none;
}

@keyframes blink {
  50% { opacity: 0; }
}

.music-player-top {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.2);
  z-index: 1000;
}

.music-player-top::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    #005577 0%,
    #006688 25%,
    #005577 50%,
    #006688 75%,
    #005577 100%
  );
  background-size: 200% 100%;
  animation: borderGlow 2s linear infinite;
  z-index: -1;
  opacity: 0.6;
}

@keyframes borderGlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

.visualizer-wrapper {
  position: relative;
  height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  background: transparent;
  border-radius: 0 0 8px 8px;
  z-index: 1;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.6s ease,
              margin-top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.visualizer-wrapper.active {
  height: 50px;
  opacity: 1;
  margin-top: 12px;
}

#visualizer {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  transition: opacity 0.4s ease;
}

#visualizer.hiding {
  opacity: 0;
}

.goodbye-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.5s ease;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
  font-weight: 700;
}

.goodbye-text.show {
  opacity: 1;
}

.hello-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.5s ease;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

.hello-text.show {
  opacity: 1;
}

.player-main-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  background: rgba(0, 20, 40, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.player-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (min-width: 671px) {
  .player-progress-bar {
    min-height: 24px;
  }
  
  .player-progress-bar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    bottom: -10px;
  }
}

.player-volume-slider {
  width: 100px;
}

.player-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #00ccff;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 10;
}

.player-btn:hover {
  background: rgba(0, 204, 255, 0.2);
  color: #00ffe1;
}

.player-btn:active {
  transform: scale(0.95);
  background: rgba(0, 204, 255, 0.3);
}

.player-btn-play {
  width: 36px;
  height: 36px;
}

.player-time {
  font-size: 0.75rem;
  color: #00ffe1;
  min-width: 38px;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  opacity: 0.8;
}

.player-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ccff, #00ffe1);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(0, 204, 255, 0.6);
}
.player-fol {display: flex;}
.player-volume-slider {
  width: 82px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin-top: 7px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #00ccff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 204, 255, 0.6);
  transition: all 0.2s ease;
}

.player-volume-slider::-webkit-slider-thumb:hover {
  background: #00ffe1;
  box-shadow: 0 0 10px rgba(0, 255, 225, 0.8);
  transform: scale(1.1);
}

.player-volume-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
  background: #00ffe1;
}

.player-volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #00ccff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(0, 204, 255, 0.6);
  transition: all 0.2s ease;
}

.player-volume-slider::-moz-range-thumb:hover {
  background: #00ffe1;
  box-shadow: 0 0 10px rgba(0, 255, 225, 0.8);
  transform: scale(1.1);
}

.player-volume-slider::-moz-range-thumb:active {
  transform: scale(1.2);
  background: #00ffe1;
}

@media (max-width: 768px) {
  .info h1 {
    font-size: 2.2rem;
  }
  .info p {
    font-size: 1.2rem;
  }
  .contact-item {
    font-size: 1rem;
    padding: 8px 16px;
  }
  .player-time {
    display: none;
  }
  
  .music-player-top {
    top: 10px;
    max-width: 95%;
  }
  
  .player-main-controls {
    gap: 8px;
    padding: 4px;
  }
  
  .player-btn {
    width: 28px;
    height: 28px;
  }
  
  .player-btn-play {
    width: 32px;
    height: 32px;
  }
  
  .player-volume-slider {
    width: 60px;
  }
  
  .visualizer-wrapper.active {
    height: 60px;
    margin-top: 8px;
  }
  
  #visualizer {
    height: 50px;
  }
  
  .goodbye-text,
  .hello-text {
    font-size: 1rem;
    white-space: normal;
  }
  
  .container {
    height: auto;
    min-height: 100vh;
    padding-bottom: 100px;
  }
  
  .header {
    padding: 10px;
  }
  
  .info {
    padding: 15px 20px;
  }
  
  .quote-container {
    padding: 20px 30px;
    font-size: 1.5rem;
    min-height: 150px;
  }
  
  .player-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .player-btn-play svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 674px) {
  .player-time {
    display: none;
  }
  
  .player-main-controls {
    justify-content: center;
  }
  
  .header {
    margin-top: 120px !important;
  }
}

@media (max-width: 671px) {
  .music-player-top {
    top: 5px;
    max-width: 98%;
  }
  
  .player-fol,
  .player-progress-bar,
  .player-time {
    display: none;
  }
  
  .player-main-controls {
    gap: 6px;
    padding: 3px;
    justify-content: center;
  }
  
  .header {
    margin-top: 120px !important;
    padding: 5px;
  }
  
  .info {
    padding: 12px 15px;
  }
  
  .info h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
  
  .info p {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .contacts {
    gap: 10px;
  }
  
  .contact-item {
    font-size: 0.9rem;
    padding: 6px 12px;
    gap: 6px;
  }
  
  .quote-container {
    font-size: 1.2rem;
    padding: 15px 20px;
    min-height: 120px;
  }
  
  .goodbye-text,
  .hello-text {
    font-size: 0.8rem;
    padding: 0 8px;
    white-space: normal;
  }
  
  .player-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .player-btn-play svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .music-player-top {
    position: fixed;
    bottom: 10px;
    top: auto;
    max-width: 95%;
  }
  
  .header {
    margin-top: 0;
    margin-bottom: 20px;
  }
  
  .info h1 {
    font-size: 1.5rem;
  }
  
  .info p {
    font-size: 0.9rem;
  }
  
  .contact-item {
    font-size: 0.85rem;
    padding: 5px 10px;
  }
  
  .quote-container {
    font-size: 1rem;
    padding: 12px 16px;
  }
  
  .visualizer-wrapper.active {
    height: 55px;
  }
  
  #visualizer {
    height: 50px;
  }
  
  .player-main-controls {
    gap: 4px;
  }
  
  .player-btn {
    width: 36px;
    height: 36px;
  }
  
  .player-btn-play {
    width: 40px;
    height: 40px;
  }
  
  .player-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .player-btn-play svg {
    width: 28px;
    height: 28px;
  }
  
  .goodbye-text,
  .hello-text {
    font-size: 0.85rem;
    white-space: normal;
    padding: 0 8px;
    max-width: calc(100vw - 40px);
  }
  
  .container {
    padding-bottom: 120px;
  }
}

@media (max-width: 360px) {
  .visualizer-wrapper.active {
    height: 65px;
  }
  
  #visualizer {
    height: 60px;
  }
  
  .goodbye-text,
  .hello-text {
    font-size: 0.65rem;
    padding: 0 6px;
    max-width: calc(100vw - 30px);
    white-space: normal;
  }
}

@media (max-width: 280px) {
  .visualizer-wrapper.active {
    height: 70px;
  }
  
  #visualizer {
    height: 65px;
  }
  
  .goodbye-text,
  .hello-text {
    font-size: 0.7rem;
    padding: 0 2px;
    max-width: calc(100vw - 10px);
    white-space: normal;
  }
}

@media (max-width: 240px) {
  .visualizer-wrapper.active {
    height: 75px;
  }
  
  #visualizer {
    height: 70px;
  }
  
  .goodbye-text,
  .hello-text {
    font-size: 0.75rem;
    padding: 0;
    max-width: 100vw;
    white-space: normal;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .music-player-top {
    top: 5px;
    bottom: auto;
    max-width: 98%;
  }
  
  .header {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .container {
    padding-bottom: 10px;
  }
  
  .info h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }
  
  .info p {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .quote-container {
    font-size: 1.2rem;
    padding: 15px 20px;
    min-height: 100px;
  }
}

@media (max-width: 480px) and (orientation: landscape) {
  .music-player-top {
    top: 5px;
    bottom: auto;
  }
  
  .header {
    margin-top: 0;
  }
  
  .container {
    padding-bottom: 10px;
  }
}
