* {
  box-sizing: border-box;
}

html, body {
  cursor: url('src/images/cursor.png') 14 14, auto;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

a, button, .social-link {
  cursor: url('src/images/cursor.png') 14 14, pointer;
}

input, textarea, select {
  cursor: url('src/images/cursor.png') 14 14, text;
}

.volume-toggle {
  cursor: url('src/images/cursor.png') 14 14, pointer;
}

.volume-slider {
  cursor: url('src/images/cursor.png') 14 14, pointer;
}

.volume-slider::-webkit-slider-thumb {
  cursor: url('src/images/cursor.png') 14 14, grab;
}

.volume-slider::-webkit-slider-thumb:active {
  cursor: url('src/images/cursor.png') 14 14, grabbing;
}

.volume-slider::-moz-range-thumb {
  cursor: url('src/images/cursor.png') 14 14, grab;
}

.volume-slider::-moz-range-thumb:active {
  cursor: url('src/images/cursor.png') 14 14, grabbing;
}

#bg-music {
  display: none;
}

.volume-control {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0.375rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease, transform 0.2s ease, padding 0.3s ease, gap 0.3s ease;
  opacity: 0;
}

body.content-visible .volume-control {
  animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.volume-control:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  padding-right: 0.625rem;
  gap: 0.5rem;
}

.volume-toggle {
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #f5f5f5;
  padding: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.volume-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.volume-toggle:active {
  transform: scale(0.95);
}

.volume-slider-wrapper {
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease 0.1s, width 0.3s ease;
  width: 0;
  overflow: hidden;
}

.volume-control:hover .volume-slider-wrapper {
  opacity: 1;
  pointer-events: all;
  width: 90px;
  padding: 0 7px;
  box-sizing: content-box;
  overflow: visible;
  transition: width 0.3s ease, opacity 0.2s ease 0.15s;
}

.volume-control.slider-open .volume-slider-wrapper {
  opacity: 1;
  pointer-events: all;
  width: 90px;
  padding: 0 7px;
  box-sizing: content-box;
  overflow: visible;
  transition: width 0.3s ease, opacity 0.2s ease 0.15s;
}

.volume-icon {
  display: block;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.volume-slider {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  min-width: 90px;
  position: relative;
  margin: 0;
  padding: 0;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.volume-slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.volume-slider::-moz-range-thumb:active {
  transform: scale(1.1);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #000000;
  color: #f5f5f5;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.content-visible {
  animation: fadeIn 0.6s ease-out forwards;
}

body.content-hidden {
  overflow: hidden;
}

.welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: visible;
  will-change: opacity, backdrop-filter;
}

.welcome-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.welcome-content {
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-screen.hidden .welcome-content {
  transform: scale(0.95);
  opacity: 0;
}

.welcome-text {
  font-size: 2rem;
  font-weight: 600;
  color: #f5f5f5;
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-screen:hover .welcome-text {
  transform: scale(1.05);
}

.welcome-screen:active .welcome-text {
  transform: scale(0.98);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.container {
  position: relative;
  width: 100%;
  max-width: 800px;
  padding: 2rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
}

body.content-visible .container {
  animation: slideUp 0.8s ease-out forwards;
}

.profile-header {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

body.content-visible .profile-header {
  animation: slideUp 0.8s ease-out 0.2s forwards;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.profile-top-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profile-name {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: #f5f5f5;
}

.clock {
  display: flex;
  align-items: baseline;
}

.time {
  font-size: 1.75rem;
  opacity: 0.7;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #f5f5f5;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
  transform-origin: center center;
  will-change: transform, opacity, filter;
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

.social-link:active {
  transform: translateY(-1px) scale(1.05);
}

.social-link-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.widgets {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  width: 100%;
}

body.content-visible .widgets {
  animation: slideUp 0.8s ease-out 0.4s forwards;
}

.widget {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 380px;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  transform-origin: center center;
  overflow: hidden;
}

.widget.js-hover-effect {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.discord-widget {
  min-height: 95px;
  padding: 1.25rem;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  opacity: 0.95;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.discord-widget:hover {
  opacity: 1;
}

.discord-widget.js-hover-effect {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease, box-shadow 0.3s ease;
}

.discord-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

.discord-avatar-wrapper .avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  background-color: rgba(255, 255, 255, 0.05);
}

.discord-avatar-wrapper .avatar:not([src]),
.discord-avatar-wrapper .avatar[src=""] {
  opacity: 0.3;
}

.discord-avatar-wrapper .status-indicator {
  position: absolute;
  right: 0px;
  bottom: 0px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 2;
  overflow: visible;
}

.discord-avatar-wrapper .status-indicator svg,
.discord-avatar-wrapper .status-indicator img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 1px;
}

.discord-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.discord-username {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  color: #f5f5f5;
}

.spotify-widget {
  min-height: 95px;
  padding: 1.25rem;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  opacity: 0.95;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.spotify-widget:hover {
  opacity: 1;
}

.spotify-widget.js-hover-effect {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease, box-shadow 0.3s ease;
}

.spotify-widget .spotify-cover {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  background-color: rgba(255, 255, 255, 0.05);
}

.spotify-widget .spotify-cover:not([src]),
.spotify-widget .spotify-cover[src=""] {
  opacity: 0.3;
  display: none;
}

.spotify-widget .spotify-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.spotify-widget .spotify-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  color: #f5f5f5;
  margin: 0;
}

.spotify-widget .spotify-artist {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.25;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f5f5f5;
  margin: 0;
}

.spotify-widget .spotify-artist:empty {
  display: none;
}

.spotify-widget .spotify-time {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.6;
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
  color: #f5f5f5;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

.spotify-widget .spotify-time:empty {
  display: none;
}

.spotify-widget .spotify-button {
  margin-left: auto;
  padding: 0.45rem 0.9rem;
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-shrink: 0;
  border: 1.5px solid rgba(30, 215, 96, 0.95);
  border-radius: 999px;
  background: rgba(30, 215, 96, 0.18);
  color: #e8ffef;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center center;
}

.spotify-widget .spotify-button:hover:not(.disabled) {
  background: rgba(30, 215, 96, 0.28);
  border-color: rgba(30, 215, 96, 1);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 12px rgba(30, 215, 96, 0.3);
}

.spotify-widget .spotify-button:active:not(.disabled) {
  transform: translateY(0) scale(1.01);
  box-shadow: 0 2px 8px rgba(30, 215, 96, 0.25);
}

.spotify-widget .spotify-button.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.spotify-widget .spotify-button-icon {
  font-size: 0.9rem;
  line-height: 1;
  display: inline-block;
}

@media (max-width: 768px) {
  body {
    align-items: flex-start;
    padding: 1rem 0;
  }

  .container {
    padding: 1.5rem 1.25rem;
  }

  .profile-header {
    margin-bottom: 1.5rem;
  }

  .profile-main {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .profile-avatar {
    width: 88px;
    height: 88px;
  }

  .profile-text {
    align-items: center;
    text-align: center;
  }

  .profile-top-row {
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }

  .profile-name {
    font-size: 1.375rem;
  }

  .time {
    font-size: 1.375rem;
  }

  .social-links {
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .social-link-icon {
    width: 22px;
    height: 22px;
  }

  .widgets {
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
    width: 100%;
  }

  .widget {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .discord-widget {
    padding: 1.125rem;
    gap: 1rem;
    min-height: 85px;
  }

  .spotify-widget {
    padding: 1.125rem;
    gap: 1rem;
    min-height: 85px;
  }

  .discord-avatar-wrapper {
    width: 64px;
    height: 64px;
  }

  .spotify-widget .spotify-cover {
    width: 64px;
    height: 64px;
  }

  .discord-avatar-wrapper .status-indicator {
    width: 18px;
    height: 18px;
    right: 0px;
    bottom: 0px;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .discord-username {
    font-size: 1.25rem;
  }

  .spotify-widget .spotify-title {
    font-size: 0.95rem;
  }

  .spotify-widget .spotify-artist {
    font-size: 0.75rem;
  }

  .spotify-widget .spotify-time {
    font-size: 0.65rem;
  }

  .spotify-widget .spotify-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    min-width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .profile-header {
    margin-bottom: 1.25rem;
    gap: 1rem;
  }

  .profile-main {
    gap: 0.875rem;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .profile-name {
    font-size: 1.25rem;
  }

  .profile-top-row {
    gap: 0.875rem;
  }

  .time {
    font-size: 1.25rem;
  }

  .social-links {
    gap: 0.625rem;
    margin-top: 0.75rem;
  }

  .social-link {
    width: 32px;
    height: 32px;
  }

  .social-link-icon {
    width: 20px;
    height: 20px;
  }

  .widgets {
    gap: 1rem;
    margin-top: 0.875rem;
  }

  .discord-widget {
    padding: 1rem;
    gap: 0.875rem;
    min-height: 85px;
  }

  .spotify-widget {
    padding: 1rem;
    gap: 0.875rem;
    min-height: 85px;
  }

  .discord-avatar-wrapper {
    width: 60px;
    height: 60px;
  }

  .spotify-widget .spotify-cover {
    width: 60px;
    height: 60px;
  }

  .discord-avatar-wrapper .status-indicator {
    width: 18px;
    height: 18px;
    right: 0px;
    bottom: 0px;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .discord-username {
    font-size: 1.125rem;
  }

  .spotify-widget .spotify-title {
    font-size: 0.9rem;
  }

  .spotify-widget .spotify-artist {
    font-size: 0.75rem;
  }

  .spotify-widget .spotify-time {
    font-size: 0.6rem;
  }

  .spotify-widget .spotify-button {
    padding: 0.35rem 0.7rem;
    font-size: 0.65rem;
    min-width: 36px;
    height: 36px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0.875rem 0.75rem;
  }

  .profile-header {
    margin-bottom: 1rem;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
  }

  .profile-name {
    font-size: 1.125rem;
  }

  .time {
    font-size: 1.125rem;
  }

  .widgets {
    gap: 0.875rem;
  }

  .discord-widget {
    padding: 0.875rem;
    gap: 0.75rem;
    min-height: 80px;
  }

  .spotify-widget {
    padding: 0.875rem;
    gap: 0.75rem;
    min-height: 80px;
  }

  .discord-avatar-wrapper {
    width: 56px;
    height: 56px;
  }

  .spotify-widget .spotify-cover {
    width: 56px;
    height: 56px;
  }

  .discord-avatar-wrapper .status-indicator {
    width: 16px;
    height: 16px;
    right: 0px;
    bottom: 0px;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .discord-username {
    font-size: 1.05rem;
  }

  .spotify-widget .spotify-title {
    font-size: 0.875rem;
  }

  .spotify-widget .spotify-artist {
    font-size: 0.7rem;
  }

  .spotify-widget .spotify-time {
    font-size: 0.6rem;
  }

  .spotify-widget .spotify-button {
    padding: 0.3rem 0.65rem;
    font-size: 0.65rem;
    min-width: 34px;
    height: 34px;
  }
}
