/*
           _________
         /'        /|
        /         / |_
       /         /  //|
      /_________/  ////|
     |   _ _    | 8o////|
     | /'// )_  |   8///|
     |/ // // ) |   8o///|
     / // // //,|  /  8//|
    / // // /// | /   8//| <- Random Machine Gun
   / // // ///__|/    8//|        
  /.(_)// /// |       8///|
 (_)' `(_)//| |       8////|___________
(_) /_\ (_)'| |        8///////////////
(_) \"/ (_)'|_|         8/////////////
 (_)._.(_) d' Hb         8oooooooopb'
   `(_)'  d'  H`b
         d'   `b`b
        d'     H `b
       d'      `b `b
      d'           `b
     d'             `b⠀⠀⠀⠀
*/
/* === FONTS & BASE === */
@font-face {
  font-family: "Silkscreen";
  src: url("fonts/Silkscreen.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Daydream";
  src: url("fonts/Daydream.otf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Basiic";
  src: url("fonts/Basiic.ttf") format("truetype");
  font-display: swap;
}

body {
  font-family: "Basiic", monospace;
  text-align: center;
  margin: 0;
  background-image: url("images/background.jpg");
  background-size: cover;
  background-position: top left;
  background-attachment: scroll;
  font-weight: normal;
  -webkit-text-stroke: 0;
}

/* === MAIN PAGE SCROLLING === */
html,
body {
  overflow: hidden;
  height: 100%;
}

.container {
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  overflow-x: hidden;
}

.container::-webkit-scrollbar {
  width: 10px;
}

.container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin: 15px 0;
}

.container::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to right,
    rgba(135, 180, 255, 0.8),
    rgba(65, 120, 225, 0.8)
  );
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.7);
}

.container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to right,
    rgba(160, 200, 255, 0.95),
    rgba(80, 140, 245, 0.95)
  );
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.9);
}

/* === DEFAULT WINDOW === */
.window {
  position: relative;
  background: rgba(180, 215, 255, 0.88);
  border: 2px solid rgba(110, 165, 245, 0.75);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65),
    0 8px 20px rgba(0, 50, 150, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
  overflow: hidden;
  margin-bottom: 8px;
}

.title-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  box-sizing: border-box;
  padding: 6px 8px 6px 14px;
  background: linear-gradient(
    to bottom,
    #6ba9ff 0%,
    #4b8eef 25%,
    #3274d8 58%,
    #1454bc 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(0, 40, 130, 0.3);
  overflow: hidden;
}

.player-title-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  box-sizing: border-box;
  padding: 6px 8px 6px 14px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #d1e2fa 25%,
    #a4bde2 58%,
    #5f81b8 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(0, 40, 130, 0.3);
  overflow: hidden;
}

.title-bar::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 48%;
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.title-bar-text {
  position: relative;
  z-index: 2;
  font-family: "Silkscreen", monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-shadow:
    1px 1px 2px rgba(0, 35, 100, 0.95),
    0 0 2px rgba(255, 255, 255, 0.3);
}

.window-body {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(254, 255, 255, 0.75) 100%
  );
  padding: 16px;
  box-shadow:
    inset 0 1px 4px rgba(255, 255, 255, 0.9),
    inset 0 0 15px rgba(120, 180, 245, 0.18);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: normal;
}

/* === TYPOGRAPHY & HIGHLIGHTS === */
p,
.changelog-desc,
.sidebar-left a.aero-nav-btn .main-text,
.song-title,
.artist-name,
.changelog-date,
.nav-section-title {
  font-weight: bold !important;
  -webkit-text-stroke: 0.5px currentColor !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title-bar-text,
.gallery-subtitle,
.sub-text,
.lightbox-caption {
  -webkit-text-stroke: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Daydream", monospace;
}

.highlight-blue {
  color: #1e52c8;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(30, 82, 200, 0.3);
}

.title-bar-controls {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 4px;
}

.title-bar-controls button {
  position: relative;
  width: 27px;
  height: 23px;
  padding: 0;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(
    to bottom,
    rgba(120, 185, 255, 0.95),
    rgba(40, 105, 210, 0.95)
  );
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    0 1px 2px rgba(0, 40, 100, 0.35);
  cursor: pointer;
  transition:
    filter 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.08s ease;
}

.title-bar-controls button::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  right: 2px;
  height: 45%;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.38),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.title-bar-controls button:hover {
  filter: brightness(1.12);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 3px rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(0, 40, 100, 0.4),
    0 0 4px rgba(120, 200, 255, 0.4);
}

.title-bar-controls button:active {
  transform: translateY(1px);
  filter: brightness(0.93);
}

.title-bar-controls button[aria-label="Minimize"] {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='10' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 8h8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.title-bar-controls button[aria-label="Maximize"] {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='10' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='1' y='1' width='8' height='8' stroke='%23fff' stroke-width='2' rx='1'/%3E%3C/svg%3E");
}

.title-bar-controls button[aria-label="Close"] {
  background: linear-gradient(to bottom, #ff806d 0%, #ef5a4b 48%, #c93228 100%);
  border-color: rgba(255, 220, 215, 0.9);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.75),
    0 1px 2px rgba(100, 20, 10, 0.4);
}

.title-bar-controls button[aria-label="Close"]::after {
  content: "×";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Silkscreen", Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

.title-bar-controls button[aria-label="Close"]:hover {
  background-color: #e81123;
  filter: brightness(1.1);
  box-shadow:
    inset 0 1px 4px rgba(255, 255, 255, 0.7),
    0 0 5px rgba(255, 50, 50, 0.55);
}

/* === NAVIGATION BUTTONS === */
.sidebar-left a.aero-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 5px 15px;
  margin-bottom: 7px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(247, 251, 255, 0.84) 35%,
    rgba(220, 237, 255, 0.7) 100%
  );
  box-shadow:
    0 2px 5px rgba(30, 80, 150, 0.12),
    inset 0 1px 3px rgba(255, 255, 255, 1),
    inset 0 -1px 2px rgba(100, 150, 210, 0.12);
  color: #142b68;
  text-decoration: none;
  overflow: hidden;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.sidebar-left a.aero-nav-btn::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  right: 2px;
  height: 48%;
  border-radius: 14px 14px 7px 7px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.52),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.sidebar-left a.aero-nav-btn:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 1);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(247, 251, 255, 0.94) 40%,
    rgba(208, 234, 255, 0.82) 100%
  );
  box-shadow:
    0 3px 8px rgba(40, 100, 180, 0.16),
    inset 0 1px 4px rgba(255, 255, 255, 1),
    0 0 5px rgba(100, 180, 255, 0.22);
}

.sidebar-left a.aero-nav-btn:active {
  transform: translateY(1px);
  background: linear-gradient(
    to bottom,
    rgba(210, 230, 250, 0.85),
    rgba(245, 250, 255, 0.92)
  );
  box-shadow:
    inset 0 2px 4px rgba(50, 100, 170, 0.18),
    inset 0 1px 2px rgba(0, 50, 120, 0.08);
}

.nav-section-title {
  display: flex;
  align-items: center;
  min-height: 27px;
  box-sizing: border-box;
  margin: 10px 2px 6px 2px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  background: linear-gradient(
    to bottom,
    rgba(235, 245, 255, 0.82) 0%,
    rgba(190, 215, 245, 0.55) 100%
  );
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(30, 80, 150, 0.08);
  color: #294b82;
  font-family: "Basiic", monospace;
  font-size: 0.78rem;
  font-weight: bold;
  text-align: left;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.95);
  user-select: none;
}

.nav-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  margin-right: 5px;
  font-size: 0.78rem;
}

.nav-section-title:first-child {
  margin-top: 0;
}

.sidebar-left a.aero-nav-btn .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  margin-right: 15px;
}

@keyframes pixelJump {
  0%, 9.99% { transform: translateY(0); }
  10%, 19.99% { transform: translateY(-5px); }
  20%, 100% { transform: translateY(0); }
}

.sidebar-left a.aero-nav-btn .menu-gif {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  animation: pixelJump 4s infinite;
}

.sidebar-left a.aero-nav-btn:nth-of-type(1) .menu-gif { animation-delay: 0s; }
.sidebar-left a.aero-nav-btn:nth-of-type(2) .menu-gif { animation-delay: 0.5s; }
.sidebar-left a.aero-nav-btn:nth-of-type(3) .menu-gif { animation-delay: 1s; }
.sidebar-left a.aero-nav-btn:nth-of-type(4) .menu-gif { animation-delay: 1.5s; }
.sidebar-left a.aero-nav-btn:nth-of-type(5) .menu-gif { animation-delay: 2s; }
.sidebar-left a.aero-nav-btn:nth-of-type(6) .menu-gif { animation-delay: 2.5s; }
.sidebar-left a.aero-nav-btn:nth-of-type(7) .menu-gif { animation-delay: 3s; }

.sidebar-left a.aero-nav-btn .btn-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  line-height: 1;
}

.sidebar-left a.aero-nav-btn .main-text {
  font-family: "Basiic", monospace;
  font-size: 1rem;
  font-weight: bold;
  color: #102b73;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 0 2px rgba(16, 43, 115, 1);
}

.sidebar-left a.aero-nav-btn .sub-text {
  font-family: "Silkscreen", monospace;
  font-size: 0.7rem;
  font-weight: 400;
  color: #666f7c;
  margin-top: 4px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85);
}

/* === AERO TASKBAR === */
#aero-taskbar {
  position: fixed !important;
  bottom: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  height: 46px;
  border-radius: 12px;
  background: rgba(30, 90, 160, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 5px 15px rgba(0, 0, 0, 0.4);
  z-index: 1447;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  padding: 0 5px;
}

.start-segment {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(
    to right,
    rgba(0, 40, 90, 0.5),
    rgba(0, 50, 100, 0.1)
  );
  padding: 0 15px 0 10px;
  border-radius: 10px 0 0 10px;
}

.start-segment img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
  margin-right: 5px;
}

.player-segment {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
  padding: 0 20px;
  background: transparent !important;
  border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}

.tray-segment {
  display: flex;
  align-items: center;
  border-right: none;
  box-shadow: none;
  gap: 12px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 50, 100, 0.15)
  );
  padding: 0 15px;
  border-radius: 0 10px 10px 0;
}

.tray-clock,
.tray-arrow {
  display: none !important;
}

#start-button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

#start-button img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
  margin: 0 !important;
}

.start-text {
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
  font-style: italic;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  padding-right: 5px;
}

.player-glow {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.5) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.taskbar-cover {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.taskbar-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 100px;
  z-index: 2;
  line-height: 1;
}

.taskbar-info .song-title {
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  margin-bottom: 2px;
  -webkit-text-stroke: 0 !important;
}

.taskbar-info .artist-name {
  font-size: 0.75rem;
  color: #cce0ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  -webkit-text-stroke: 0 !important;
}

.taskbar-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 10px;
}

.taskbar-sliders {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 10px;
}

.tray-icon {
  width: 20px;
  height: auto;
}

.player-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.player-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.control-btn {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.play-btn-img {
  width: 44px;
  height: 44px;
}

.control-btn:hover {
  transform: scale(1.15);
  filter: brightness(1.1);
}

.control-btn:active {
  transform: scale(0.95);
}

.custom-slider {
  width: 100%;
  height: 12px;
  background: rgba(0, 30, 80, 0.15);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  position: relative;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 5px;
}

.volume-slider {
  width: 65px;
  height: 10px;
}

.slider-fill {
  height: 100%;
  width: 0%;
  position: relative;
  pointer-events: none;
  overflow: visible;
  background: linear-gradient(
    to bottom,
    #d9f8ff 0%,
    #75e2ff 12%,
    #13c8ed 38%,
    #0798d5 55%,
    #0567b8 75%,
    #003d86 100%
  );
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(0, 20, 70, 0.65),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.slider-fill::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 100%;
  height: 45%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: inherit;
  pointer-events: none;
}

.slider-knob {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 10;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-right: 8px;
}

.speaker-icon {
  width: 25px;
  height: auto;
}

.player-controls span {
  transition: transform 0.2s ease;
}

.player-controls span:hover {
  transform: scale(1.2);
}

/* === GALLERY & LIGHTBOX === */
.gallery-section {
  margin-bottom: 15px;
  text-align: left;
}

.gallery-subtitle {
  font-family: "Silkscreen", monospace;
  font-weight: bold;
  color: #1e3a8a;
  margin: 0 0 8px 0;
  font-size: 0.85rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 2px 5px rgba(0, 50, 120, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-thumb:hover {
  transform: scale(1.06);
  box-shadow:
    0 5px 12px rgba(0, 40, 120, 0.35),
    0 0 6px rgba(100, 190, 255, 0.45);
  z-index: 2;
}

.see-more-override {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #1e52c8;
  text-decoration: underline;
  padding: 0;
  display: inline-block;
  font-size: 0.75rem;
  text-transform: lowercase;
  font-weight: bold;
}

.see-more-override:hover {
  color: #ff9900;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 20, 40, 0.85);
  z-index: 99888;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  color: #ffffff;
  font-family: "Silkscreen", monospace;
  margin-top: 15px;
  font-size: 1.2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(to bottom, #ff7a7a 0%, #d60000 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    0 4px 10px rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 14px;
  font-family: Verdana, sans-serif;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, filter 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.content-center .gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
  gap: 12px !important;
}

#volume-popup {
  position: absolute;
  bottom: 42px;
  right: 94px;
  width: 50px;
  height: 165px;
  border-radius: 6px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0 10px 0;
  z-index: 9999999;
  background: linear-gradient(
    to bottom,
    rgba(246, 251, 255, 0.95),
    rgba(220, 238, 255, 0.85)
  );
}

#volume-popup.active {
  display: flex;
}

.volume-popup-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.popup-speaker-icon {
  width: 25px;
  height: auto;
  margin-top: 10px;
}

.custom-slider-vertical {
  width: 10px;
  height: 150px;
  background: rgba(0, 30, 80, 0.15);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  position: relative;
  cursor: pointer;
  border-radius: 6px;
}

.slider-fill-vertical {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    #d9f8ff 0%,
    #75e2ff 12%,
    #13c8ed 38%,
    #0798d5 55%,
    #0567b8 75%,
    #003d86 100%
  );
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.slider-fill-vertical::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: inherit;
}

.slider-knob-vertical {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 10;
}

/* === DIARY CAROUSEL === */
.diary-carousel {
  position: relative;
  padding: 15px 25px;
  box-sizing: border-box;
}

.diary-inner-box {
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 20px 30px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.diary-pages-container {
  position: relative;
  min-height: 250px;
}

.diary-page {
  display: none;
  animation: fadeInPage 0.4s ease-out forwards;
}

.diary-page.active {
  display: block;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.diary-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95),
    rgba(200, 220, 255, 0.7)
  );
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 4px 10px rgba(0, 50, 150, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 1);
  font-size: 15px;
  color: #1e52c8;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

#diary-prev { left: -17px; }
#diary-next { right: -17px; }

.diary-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  filter: brightness(1.15);
}

.diary-arrow:disabled {
  background: rgba(220, 220, 220, 1);
  border-color: rgba(200, 200, 200, 1);
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

.diary-photo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px auto;
  width: 100%;
  max-width: 420px;
}

.diary-img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 50, 150, 0.2);
}

.diary-caption {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #555;
}

/* === UPDATES WIDGET === */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.changelog-list::-webkit-scrollbar {
  width: 6px;
}

.changelog-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.changelog-list::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    rgba(135, 180, 255, 0.8),
    rgba(65, 120, 225, 0.8)
  );
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.7);
}

.changelog-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    rgba(160, 200, 255, 0.95),
    rgba(80, 140, 245, 0.95)
  );
}

.changelog-item {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.55),
    rgba(215, 235, 255, 0.45)
  );
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 10px;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    0 2px 5px rgba(0, 50, 150, 0.1);
}

.changelog-item:hover {
  transform: translateY(2px);
  background: rgba(255, 255, 255, 0.6);
}

.changelog-date {
  display: block;
  font-weight: bold;
  color: #1e52c8;
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.changelog-desc {
  display: block;
  font-size: 0.8rem;
  color: #333;
}

/* === CUSTOM CURSOR === */
* {
  cursor: none !important;
}

body.native-cursor-active * {
  cursor: auto !important;
}

#magic-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-2px, -2px);
  image-rendering: pixelated;
}

.cursor-trail {
  position: fixed;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 9999998;
  transform: translate(-2px, -2px);
  image-rendering: pixelated;
  animation: sandevistan-fade 0.4s ease-out forwards;
}

@keyframes sandevistan-fade {
  0% {
    opacity: 0.7;
    transform: translate(-2px, -2px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-2px, -2px) scale(1.3);
  }
}

img,
.banner,
.status-balloon {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
}

/* === LAYOUT STRUCTURE & HEADER === */
.container {
  max-width: 1250px;
  width: 98%;
  margin: -10px auto 0 auto;
  display: grid;
  grid-template-areas:
    "header"
    "main";
  grid-template-columns: 1fr;
  gap: 8px;
  border-style: solid;
  border-width: 10px;
  border-image-source: url("images/squarebubblefinal.png");
  border-image-slice: 90 fill;
  border-image-repeat: stretch;
  padding: 0px 6px 6px 6px;
}

header {
  grid-area: header;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pfp {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 160px;
  height: 160px;
  z-index: 10;
  image-rendering: pixelated;
}

.pfp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(200, 225, 245, 0.4) 100%
  );
  border-radius: 8px;
  border: 2px solid rgba(160, 200, 230, 0.8);
  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 1),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
  z-index: -1;
}

.pfp-img {
  width: 135%;
  height: 135%;
  position: absolute;
  bottom: -14px;
  left: -5%;
  object-fit: contain;
  pointer-events: none;
}

.status-balloon {
  position: absolute;
  top: -15px;
  left: -20px;
  width: 55px;
  height: 55px;
  background-image: url("images/balloon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 20;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.status-balloon:hover {
  transform: scale(1.15);
  filter: brightness(1.1);
}

#emoji-img {
  position: absolute;
  width: 28px;
  height: auto;
  pointer-events: none;
  top: 12px;
  left: 13px;
}

.banner {
  width: 100%;
  height: 240px;
  background-image: url("images/banner.jpg");
  image-rendering: pixelated;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.main-body {
  grid-area: main;
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 10px;
}

.main-body.two-columns {
  grid-template-columns: 250px 1fr;
}

.tags-bar {
  width: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.3)
  );
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow:
    0 4px 10px rgba(0, 50, 150, 0.15),
    inset 0 0 10px rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 6px 0;
}

.tag-item {
  font-family: "Silkscreen", Tahoma, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #142b68;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.tag-item img {
  width: 16px;
  height: auto;
  image-rendering: pixelated;
}

.logo-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
  image-rendering: pixelated;
}

.interactive-logo {
  max-width: 30%;
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    filter 0.3s ease;
  position: relative;
  z-index: 20;
}

.interactive-logo:hover {
  transform: scale(1.1);
}

.glitter-particle {
  position: absolute;
  width: 55px;
  height: 55px;
  background-image: url("images/icons/sparkles_icon.gif");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: hue-rotate(100deg) brightness(1.2);
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 14;
  animation: glitter-fall 2.5s linear forwards;
}

@keyframes glitter-fall {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(80px) scale(0);
    opacity: 0;
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.mascot-container {
  position: fixed;
  right: 15px;
  bottom: 35px;
  z-index: 9997;
  pointer-events: none;
}

#opera-mascot {
  width: 150px;
  height: auto;
  pointer-events: auto;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    filter 0.2s ease;
  image-rendering: pixelated;
}

#opera-mascot:hover {
  transform: scale(1.08) translateY(-8px);
  filter: brightness(1.1);
}

#opera-mascot:active {
  transform: scale(1);
}

.error-speech-bubble {
  position: relative;
  background: #ffffff;
  border: 2px solid #676767;
  padding: 15px 25px;
  box-shadow: 0 4px 10px rgba(0, 50, 150, 0.2);
  display: inline-block;
  margin-bottom: 10px;
}

.error-speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -23px;
  right: 48px;
  border-width: 25px 25px 0 0;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
  display: block;
  width: 0;
  z-index: 1;
}

.error-speech-bubble::before {
  content: "";
  position: absolute;
  bottom: -28px;
  right: 47px;
  border-width: 28px 28px 0 0;
  border-style: solid;
  border-color: #676767 transparent transparent transparent;
  display: block;
  width: 0;
  z-index: 0;
}

.center-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.center-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.center-bottom-right {
  display: flex;
  flex-direction: column;
}

#header-container {
  min-height: 290px;
  display: flex;
  flex-direction: column;
}

/* === FAVORITES PAGE: TABS & CARDS === */
.aero-tabs-wrapper input[type="radio"] {
  display: none;
}

.tab-labels {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 6px 15px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.8),
    rgba(210, 230, 255, 0.5)
  );
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px 8px 0 0;
  color: #142b68;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    0 -2px 5px rgba(0, 50, 150, 0.05);
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1),
    rgba(230, 245, 255, 0.8)
  );
  transform: translateY(-2px);
}

#tab-games:checked ~ .tab-labels label[for="tab-games"],
#tab-animes:checked ~ .tab-labels label[for="tab-animes"],
#tab-series:checked ~ .tab-labels label[for="tab-series"] {
  background: linear-gradient(to bottom, #75e2ff 0%, #13c8ed 100%);
  color: #002d6b;
  border-color: #fff;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    0 0 8px rgba(117, 226, 255, 0.6);
  transform: translateY(-1px);
}

.tab-content {
  display: none;
  animation: fadeInPage 0.4s ease-out forwards;
}

#tab-games:checked ~ #content-games,
#tab-animes:checked ~ #content-animes,
#tab-series:checked ~ #content-series {
  display: block;
}

.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  padding: 5px;
}

.fav-card {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.7),
    rgba(235, 245, 255, 0.5)
  );
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow:
    0 4px 8px rgba(0, 40, 100, 0.1),
    inset 0 1px 3px rgba(255, 255, 255, 0.8);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.fav-card:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow:
    0 8px 15px rgba(0, 50, 150, 0.2),
    inset 0 1px 3px rgba(255, 255, 255, 1);
  border-color: #75e2ff;
}

.fav-cover {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.fav-title {
  font-weight: bold;
  color: #1e3a8a;
  font-size: 0.9rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.fav-stars {
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.fav-desc {
  font-family: "Silkscreen", monospace;
  font-size: 0.65rem;
  color: #555;
  line-height: 1.3;
}

/* === MEDIA QUERIES (RESPONSIVE) === */
@media (max-width: 1050px) {
  #header-container { min-height: 260px; }
  .main-body { grid-template-columns: 210px 1fr 210px; gap: 15px; }
  .container { width: 94%; }
  .banner { height: 210px; }
  .pfp { width: 135px; height: 135px; top: 40px; left: 30px; }
  .player-guardian { width: 300px; }
  .guardian-left { left: -130px; }
  .guardian-right { right: -130px; }
  .mascot-container { right: -80px; }
  #opera-mascot { width: 160px; }
}

@media (max-width: 850px) {
  * { cursor: auto !important; }
  #magic-cursor, .cursor-trail { display: none !important; }
  html, body {
    overflow: auto !important;
    height: auto !important;
    position: relative;
  }
  .main-body, .main-body.two-columns { grid-template-columns: 1fr !important; gap: 15px; }
  .container {
    margin: 10px auto 140px auto;
    width: 96%;
    border-width: 20px;
    padding: 5px;
    box-sizing: border-box;
    max-height: none !important;
    overflow: visible !important;
  }
  .player-guardian { width: 200px; z-index: 61; }
  .guardian-left { left: -70px; }
  .guardian-right { right: -70px; }
  .mascot-container {
    position: absolute;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    z-index: 10;
  }
  #opera-mascot { width: 120px; }
  .tags-bar { flex-wrap: wrap; gap: 10px; padding: 10px; }
  .player-content { flex-direction: column; align-items: center; text-align: center; }
  .track-info { text-align: center; align-items: center; }
  .banner { height: 140px; background-size: cover; background-position: right center; }
  .pfp { width: 100px; height: 100px; top: 25px; left: 10px; }
  .pfp-img { bottom: -6px; }
  .interactive-logo { max-width: 60%; margin-left: 100px; top: -40px; }
  .status-balloon { width: 38px; height: 38px; top: -8px; left: -12px; }
  #emoji-img { width: 20px; top: 8px; left: 9px; }
  .diary-carousel { padding: 15px 20px; }
  #diary-prev { left: -15px; }
  #diary-next { right: -15px; }
  .window { background: rgba(180, 215, 255, 0.95) !important; }
  .tags-bar {
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.95) 50%,
      rgba(255, 255, 255, 0.8)
    ) !important;
  }
  .center-bottom-grid { grid-template-columns: 1fr !important; }

  #aero-taskbar {
    width: 95% !important;
    max-width: 420px !important;
    padding: 0 4px !important;
    gap: 2px !important;
  }
  .start-text { display: none !important; }
  .start-segment { padding: 0 6px !important; }
  .player-segment {
    padding: 0 6px !important;
    gap: 6px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }
  .taskbar-info { min-width: 0 !important; flex: 1 !important; overflow: hidden !important; }
  .taskbar-info .song-title,
  .taskbar-info .artist-name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .taskbar-controls { margin-left: 2px !important; gap: 3px !important; }
  .control-btn { width: 26px !important; height: 26px !important; }
  .play-btn-img { width: 36px !important; height: 36px !important; }
  #volume-popup { right: 10px !important; }
}