body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background-color: #000;
      color: #fff;
      text-align: center;
      padding: 0 5vw;
      box-sizing: border-box;
    }

    a {
      color: #fff;
      text-decoration: none;
      padding: clamp(0.4rem, 1.5vw, 0.6rem) clamp(0.6rem, 2vw, 0.8rem);
      border-radius: clamp(6px, 1.5vw, 8px);
      transition: all 0.3s ease;
      display: inline-block;
    }

    a:hover {
      text-decoration: none;
      background-color: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .header {
      position: absolute;
      top: 2vh;
      left: 2vw;
      display: flex;
      gap: clamp(1rem, 3vw, 2rem);
      align-items: center;
      font-size: clamp(0.9rem, 2vw, 1.05rem);
      z-index: 100;
    }

    .album-cover {
      margin-top: clamp(5rem, 12vh, 8rem);
    }

    .album-cover img {
      width: min(90vw, 420px);
      max-width: 420px;
      height: auto;
      border-radius: clamp(8px, 2vw, 16px);
      box-shadow: 0 0 clamp(30px, 8vw, 60px) rgba(255, 255, 255, 0.2);
    }

    .title {
      font-size: clamp(1.8rem, 6vw, 2.4rem);
      font-weight: bold;
      margin-top: clamp(1rem, 3vh, 1.5rem);
    }

    .description-wrapper {
      max-width: min(90vw, 700px);
      margin: clamp(1rem, 3vh, 1.25rem) auto;
      color: #aaa;
      text-align: left;
      overflow: hidden;
      position: relative;
      cursor: pointer;
      transition: max-height 0.4s ease;
      max-height: clamp(120px, 20vh, 150px);
      padding: 0 1rem;
    }

    .description-wrapper::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: clamp(30px, 5vh, 40px);
      background: linear-gradient(to bottom, transparent, #000);
      pointer-events: none;
    }

    .description-wrapper.expanded {
      max-height: 2000px;
    }

    .description-wrapper.expanded::after {
      display: none;
    }

    .description {
      font-size: clamp(0.9rem, 2.5vw, 1rem);
      line-height: 1.6;
    }

    .tracklist {
      margin: clamp(2rem, 6vh, 2.5rem) auto;
      max-width: min(90vw, 600px);
      text-align: left;
      padding: 0 1rem;
    }

    .track {
      padding: clamp(0.5rem, 2vh, 0.75rem) 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .track-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      font-size: clamp(0.85rem, 2.2vw, 1rem);
    }

    .track-header span:first-child a {
      font-weight: 500;
      color: rgba(255, 255, 255, 0.78);
      transition: color 0.2s ease;
    }

    .track.active-track {
      background: rgba(255, 255, 255, 0.05);
      border-bottom-color: rgba(255, 255, 255, 0.4);
    }

    .track.active-track .track-header span:first-child a {
      color: #fff;
    }

    .arrow {
      transition: all 0.3s ease;
    }

    .track-desc {
      margin-top: clamp(0.3rem, 1vh, 0.5rem);
      font-size: clamp(0.8rem, 2vw, 0.9rem);
      color: #bbb;
      display: none;
    }

    .player-bar {
      width: min(460px, 90vw);
      background: #111;
      color: #fff;
      padding: clamp(0.4rem, 1.5vh, 0.65rem) clamp(0.8rem, 2.5vw, 1.1rem);
      font-size: clamp(0.82rem, 2vw, 0.95rem);
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-radius: clamp(6px, 1.5vw, 8px);
      border: 1px solid transparent;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
      transition: transform 0.35s ease, opacity 0.2s ease;
      opacity: 1;
    }

    .now-playing {
      position: fixed;
      bottom: clamp(0.6rem, 1.5vh, 1rem);
      left: 50%;
      transform: translate(-50%, 0);
      display: none;
      z-index: 200;
    }

    .overlay-now-playing {
      position: static;
      width: 100%;
      margin-top: clamp(0.85rem, 2vh, 1.2rem);
      transform: none;
    }

    .overlay-now-playing.player-bar {
      width: clamp(320px, 50%, 860px);
      align-self: center;
      margin-top: clamp(1.2rem, 3vh, 1.8rem);
      margin-bottom: 0;
    }

    .overlay-now-playing.player-bar.is-tucked {
      transform: translateY(calc(100% - 20px));
    }

    .player-bar.is-tucked {
      /* Leave 14px visible and clear of system navigation zones */
      transform: translate(-50%, calc(100% - 14px)); 
      opacity: 0.95;
      border-top: 2px solid rgba(255, 255, 255, 0.85); /* Slightly thicker border for clear visibility */
      border-left: 1px solid rgba(255, 255, 255, 0.1);
      border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .player-bar .now-playing-center {
      display: flex;
      align-items: center;
      gap: clamp(0.65rem, 2.5vw, 1rem);
      justify-content: center;
      flex-shrink: 0;
    }

    .nav-icon {
      width: clamp(14px, 3vw, 18px);
      height: clamp(14px, 3vw, 18px);
      filter: brightness(0) invert(1);
      transition: all 0.2s ease;
    }

    .player-bar .nav-btn {
      font-size: clamp(0.95rem, 2.6vw, 1.15rem);
      cursor: pointer;
      color: #fff;
      user-select: none;
      padding: clamp(0.35rem, 1.2vw, 0.5rem);
      border-radius: 50%;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      width: clamp(34px, 7vw, 42px);
      height: clamp(34px, 7vw, 42px);
    }

    .player-bar .nav-btn:hover {
      color: #ccc;
      background: rgba(255, 255, 255, 0.1);
    }

    .player-bar .nav-btn:hover .nav-icon {
      filter: brightness(0) invert(0.8);
    }

    .player-bar .expand-btn {
      font-size: clamp(0.85rem, 2.4vw, 1.1rem);
      cursor: pointer;
      color: #000;
      user-select: none;
      padding: clamp(0.2rem, 0.8vw, 0.35rem);
      border-radius: 50%;
      transition: all 0.2s ease;
      background: #fff;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      width: clamp(26px, 5vw, 30px);
      height: clamp(26px, 5vw, 30px);
      border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .player-bar .expand-btn:hover {
      background: #000;
      color: #fff;
      transform: scale(1.05);
      border-color: rgba(255, 255, 255, 0.6);
    }

    .overlay-now-playing .expand-btn {
      opacity: 1;
      pointer-events: auto;
      transition: opacity 0.25s ease, transform 0.2s ease, background 0.2s ease;
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #000;
      display: none;
      justify-content: flex-start;
      align-items: center;
      padding: clamp(1.5rem, 3vw, 3.25rem) clamp(1rem, 4vw, 4rem) clamp(0.05rem, 0.4vw, 0.35rem);
      z-index: 9999;
      box-sizing: border-box;
    }

    .overlay-content {
      display: flex;
      gap: clamp(0.75rem, 2vw, 2rem);
      width: min(1750px, 100%);
      margin-right: 0;
      height: 100%;
      align-items: stretch;
    }

    .overlay-left {
      flex: 4;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: clamp(0.35rem, 1vh, 0.75rem);
      min-height: clamp(560px, 78vh, 940px);
      height: 100%;
      width: 100%;
      padding: 0;
      background: transparent;
      border: none;
      box-shadow: none;
      position: relative;
    }

    .overlay-drawer-toggle {
      display: none;
      align-self: flex-end;
      gap: 0.55rem;
      
      /* 1. Strip background, borders, shapes, and structural padding completely */
      background: transparent !important;
      border: none !important;
      border-radius: 0 !important;
      padding: 0.25rem 0 !important;
      box-shadow: none !important;
      margin-bottom: clamp(0.5rem, 1.5vh, 0.75rem);
      
      color: #fff;
      cursor: pointer;
      
      /* 2. Increased sizing parameters to ensure comfortable thumb tap targeting */
      font-size: clamp(1.05rem, 2.8vw, 1.25rem); 
      font-weight: 600;
      transition: opacity 0.2s ease;
    }

    .overlay-drawer-toggle i {
      /* Scales the layout size of the list dots icon relative to the enlarged text dimensions */
      font-size: 0.95em; 
    }

    .overlay-drawer-toggle:hover,
    .overlay-drawer-toggle:focus-visible {
      /* 3. Pure text color/opacity shifting instead of button backgrounds */
      opacity: 0.75;
      background: transparent !important;
      outline: none;
    }

    .overlay-left.is-fullscreen {
      gap: 0;
      padding: 0;
    }

    .overlay-left.is-fullscreen .overlay-drawer-toggle {
      display: none !important;
    }

    .overlay-left.is-fullscreen .tool-mock {
      min-height: 100%;
      border-radius: 0;
    }

    .overlay-left.is-fullscreen .overlay-now-playing.player-bar {
      position: absolute;
      left: 50%;
      bottom: clamp(0.35rem, 1vh, 0.75rem);
      transform: translate(-50%, 0);
      width: min(460px, 90vw);
      margin: 0;
      z-index: 30;
    }

    .overlay-left.is-fullscreen .overlay-now-playing.player-bar.is-tucked {
      transform: translate(-50%, calc(100% - 2px));
    }

    .overlay-tracklist {
      flex: 1;
      display: flex;
      flex-direction: column;
      height: 100%;
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      margin-left: clamp(0.1rem, 0.5vw, 0.4rem);
      align-self: stretch;
      width: clamp(220px, 22vw, 300px);
      position: relative;
      z-index: 5;
    }

    .overlay-drawer-header {
      display: none;
      align-items: center;
      justify-content: space-between;
      padding: 0.9rem 1rem;
      font-size: 0.95rem;
      font-weight: 600;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .overlay-drawer-close {
      background: transparent;
      border: none;
      color: #fff;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.2s ease;
    }

    .overlay-drawer-close:hover,
    .overlay-drawer-close:focus-visible {
      background: rgba(255, 255, 255, 0.15);
      outline: none;
      transform: scale(1.05);
    }

    .overlay-drawer-backdrop {
      display: block;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
      z-index: 1;
    }

    .overlay.overlay-drawer-open .overlay-drawer-backdrop {
      opacity: 1;
      pointer-events: auto;
    }

    .overlay-track-list {
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      padding-right: 0;
      flex: 1;
      height: 100%;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .overlay-track-list::-webkit-scrollbar {
      display: none;
    }

    .overlay-track-list::-webkit-scrollbar-thumb {
      display: none;
    }

    .overlay-track-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.75rem 0.8rem;
      border: 1px solid #111;
      border-radius: 10px;
      cursor: pointer;
      background: #121212;
      color: #f4f4f4;
      transition: all 0.2s ease;
    }

    .overlay-track-item:hover {
      border-color: #2a2a2a;
      color: #fff;
      background: #1a1a1a;
    }

    .overlay-track-item.active-track {
      background: #ffffff;
      border-color: #ffffff;
      color: #000;
    }

    .overlay-track-number {
      width: 1.5rem;
      font-size: 0.85rem;
      text-align: right;
      color: rgba(255, 255, 255, 0.65);
    }

    .overlay-track-meta {
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .overlay-track-meta span:first-child {
      font-weight: 600;
      margin-bottom: 0.15rem;
    }

    .overlay-track-time {
      font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.7);
    }

    .track-info {
      display: flex;
      align-items: center;
      gap: clamp(0.75rem, 2vw, 1rem);
      flex: 1;
      min-width: 0;
    }

    .music-bar-album-cover {
      width: clamp(45px, 10vw, 55px);
      height: clamp(45px, 10vw, 55px);
      border-radius: clamp(4px, 1vw, 6px);
      object-fit: cover;
      flex-shrink: 0;
    }

    .track-text {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      min-width: 0;
      flex: 1;
    }

    .track-text span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
    }

    #overlayNowPlayingTitle,
    #nowPlayingTitle {
      font-weight: 600;
      font-size: clamp(0.9rem, 2.3vw, 1rem);
    }

    .tool-mock {
      width: 100%;
      flex: 1 1 auto;
      min-height: clamp(420px, 75vh, 820px);
      background: #050505;
      border-radius: clamp(14px, 2.5vw, 20px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      box-shadow: 0 25px 55px rgba(0, 0, 0, 0.65);
      transition: box-shadow 0.3s ease;
    }

    .tool-mock.is-fullscreen {
      border-radius: 0;
    }

    .tool-mock-frame {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
      display: none;
      background: #000;
      z-index: 1;
    }

    .tool-mock-content {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: clamp(1rem, 3vw, 2rem);
      color: #fff;
      font-size: clamp(1rem, 2.5vw, 1.25rem);
      z-index: 2;
      background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.8));
    }

    .nav-action-btn {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #fff;
      border-radius: 50%;
      width: clamp(32px, 6vw, 38px);
      height: clamp(32px, 6vw, 38px);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: clamp(0.85rem, 2.4vw, 1rem);
      margin-right: clamp(0.3rem, 1vw, 0.45rem);
      transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, transform 0.2s ease;
      padding: 0;
    }

    .nav-action-btn:hover,
    .nav-action-btn:focus-visible {
      background: rgba(255, 255, 255, 0.15);
      border-color: rgba(255, 255, 255, 0.35);
      outline: none;
      transform: scale(1.05);
    }

    .nav-action-btn.is-disabled {
      opacity: 0.35;
      pointer-events: none;
      cursor: default;
    }

    .close-btn {
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: clamp(0.25rem, 1vw, 0.4rem);
      border-radius: 50%;
      transition: color 0.2s ease, background 0.2s ease;
      user-select: none;
    }

    .close-btn:hover,
    .close-btn:focus-visible {
      color: #ccc;
      background: rgba(255, 255, 255, 0.12);
      outline: none;
    }

    .track-subtext {
      font-size: clamp(0.75rem, 1.9vw, 0.85rem);
      color: #aaa;
      margin-top: 2px;
      font-weight: 400;
    }

    @media (max-width: 1100px) {
      .overlay-content {
        flex-direction: column;
        margin-left: 0;
      }

      .overlay-drawer-toggle {
        display: inline-flex;
      }

      .overlay-tracklist {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: min(360px, 85vw);
        background: #050505;
        padding: 0;
        margin-left: 0;
        transform: translateX(100%);
        box-shadow: -8px 0 35px rgba(0, 0, 0, 0.65);
        transition: transform 0.35s ease;
        z-index: 20;
      }

      .overlay-drawer-header {
        display: flex;
      }

      .overlay-track-list {
        padding: 1rem;
        max-height: none;
      }

      .overlay.overlay-drawer-open .overlay-tracklist {
        transform: translateX(0);
      }

      .overlay-track-list {
        height: calc(100% - 64px);
      }

      .overlay-now-playing.player-bar {
        width: 100%;
      }
    }

    @media (max-width: 700px) {
      .overlay-tracklist {
        width: min(320px, 80vw);
      }
    }

    footer {
      margin-top: clamp(3rem, 8vh, 3.75rem);
      padding: clamp(1rem, 3vh, 1.25rem) 0;
      color: #777;
      font-size: clamp(0.8rem, 2vw, 0.9rem);
    }

    /* Override for TheLegendSeb link in footer */
    a[href="https://github.com/Thelegendseb"] {
      color: #fff !important;
      padding: 0 !important;
      border-radius: 0 !important;
      transition: none !important;
      display: inline !important;
    }

    a[href="https://github.com/Thelegendseb"]:hover {
      background-color: transparent !important;
      border: none !important;
      text-decoration: underline;
    }

    /* Share Modal Styles */
    .share-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 10001;
    }

    .share-modal-content {
      background: #111;
      border-radius: clamp(8px, 2vw, 12px);
      padding: clamp(1.5rem, 4vw, 2rem);
      width: min(90vw, 400px);
      color: #fff;
      position: relative;
    }

    .share-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: clamp(1rem, 3vh, 1.5rem);
    }

    .share-title-container {
      display: flex;
      align-items: center;
      gap: clamp(0.75rem, 2vw, 1rem);
    }

    .share-album-cover {
      width: clamp(40px, 8vw, 50px);
      height: clamp(40px, 8vw, 50px);
      border-radius: clamp(4px, 1vw, 6px);
      object-fit: cover;
    }

    .share-modal-header h3 {
      margin: 0;
      font-size: clamp(1.1rem, 3vw, 1.3rem);
    }

    .share-close-btn {
      font-size: clamp(1.2rem, 3vw, 1.5rem);
      cursor: pointer;
      color: #fff;
      padding: 0.25rem;
    }

    .share-close-btn:hover {
      color: #ccc;
    }

    .share-modal-body p {
      margin: 0 0 clamp(0.75rem, 2vh, 1rem) 0;
      font-size: clamp(0.9rem, 2.5vw, 1rem);
      color: #ccc;
    }

    .share-url-container {
      display: flex;
      gap: clamp(0.5rem, 2vw, 0.75rem);
      margin-bottom: clamp(0.75rem, 2vh, 1rem);
    }

    .share-url-container input {
      flex: 1;
      background: #222;
      border: 1px solid #444;
      color: #fff;
      padding: clamp(0.5rem, 2vw, 0.75rem);
      border-radius: clamp(4px, 1vw, 6px);
      font-size: clamp(0.85rem, 2.2vw, 0.95rem);
      outline: none;
    }

    .share-url-container input:focus {
      border-color: #666;
    }

    .copy-btn {
      background: #333;
      color: #fff;
      border: 1px solid #555;
      padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.25rem);
      border-radius: clamp(4px, 1vw, 6px);
      cursor: pointer;
      font-size: clamp(0.85rem, 2.2vw, 0.95rem);
      transition: all 0.2s ease;
    }

    .copy-btn:hover {
      background: #444;
      border-color: #666;
    }

    .copy-success {
      color: #4CAF50;
      font-size: clamp(0.85rem, 2.2vw, 0.95rem);
      text-align: center;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .copy-success.show {
      opacity: 1;
    }

    /* About Modal Styles */
    .about-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 10001;
    }

    .about-modal-content {
      background: #111;
      border-radius: clamp(8px, 2vw, 12px);
      padding: clamp(2rem, 5vw, 2.5rem);
      width: min(90vw, 500px);
      max-height: 80vh;
      overflow-y: auto;
      color: #fff;
      position: relative;
      text-align: center;
      /* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* Internet Explorer and Edge */
    }

    .about-modal-content::-webkit-scrollbar {
      display: none; /* WebKit browsers */
    }

    .about-close-btn {
      position: absolute;
      top: clamp(1rem, 3vw, 1.25rem);
      left: clamp(1rem, 3vw, 1.25rem);
      font-size: clamp(1.2rem, 3vw, 1.5rem);
      cursor: pointer;
      color: #fff;
      padding: 0.25rem;
      z-index: 10002;
    }

    .about-close-btn:hover {
      color: #ccc;
    }

    .about-modal-body h2 {
      margin: 0 0 clamp(1rem, 3vh, 1.5rem) 0;
      font-size: clamp(1.5rem, 4vw, 2rem);
      font-weight: bold;
    }

    .about-logo {
      width: clamp(100px, 25vw, 150px);
      height: auto;
      margin: 0 0 clamp(1.5rem, 4vh, 2rem) 0;
      border-radius: clamp(8px, 2vw, 12px);
    }

    .about-description {
      text-align: center;
      line-height: 1.6;
      max-width: 100%;
    }

    .about-description p {
      margin: 0 0 clamp(1rem, 3vh, 1.25rem) 0;
      font-size: clamp(0.9rem, 2.5vw, 1rem);
      color: #ccc;
    }

    .about-description p:last-child {
      margin-bottom: 0;
    }

    /* Responsive adjustments for about modal */
    @media (max-width: 768px) {
      .about-modal-content {
        width: min(95vw, 450px);
        padding: clamp(1.5rem, 4vw, 2rem);
      }
      
      .about-logo {
        width: clamp(90px, 22vw, 120px);
      }
    }

    @media (max-height: 600px) {
      .about-modal-content {
        max-height: 90vh;
        padding: clamp(1rem, 3vw, 1.5rem);
      }
      
      .about-logo {
        width: clamp(80px, 18vw, 100px);
        margin: 0 0 clamp(1rem, 2vh, 1.5rem) 0;
      }
      
      .about-modal-body h2 {
        font-size: clamp(1.3rem, 3.5vw, 1.7rem);
        margin: 0 0 clamp(0.75rem, 2vh, 1rem) 0;
      }
    }

    /* Media queries for specific device optimizations */
    @media (max-width: 480px) {
      body {
        padding: 0 3vw;
      }
      
      .header {
        position: relative;
        top: auto;
        left: auto;
        justify-content: center;
        margin-bottom: 1rem;
        flex-wrap: wrap;
      }
      
      .album-cover {
        margin-top: 2rem;
      }
      
      .description-wrapper {
        padding: 0 0.5rem;
      }
      
      .tracklist {
        padding: 0 0.5rem;
      }
      
      .track-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
      }
      
      .track-header span:last-child {
        align-self: flex-end;
      }
    }

    @media (min-width: 481px) and (max-width: 768px) {
      .header {
        gap: clamp(1.5rem, 4vw, 2.5rem);
      }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
      body {
        padding: 0 8vw;
      }
    }

    @media (min-width: 1025px) {
      body {
        padding: 0 10vw;
      }
      
      .album-cover img {
        max-width: 450px;
      }
    }

    @media (orientation: landscape) and (max-height: 600px) {
      .album-cover {
        margin-top: 3rem;
      }
      
      .album-cover img {
        width: min(60vw, 300px);
      }
      
      .tool-mock {
        min-height: 55vh;
      }
    }

    /* --- Fix Layout Cutoff on Small Screen Horizontal/Landscape Rotation --- */
    @media (max-height: 580px) and (orientation: landscape) {
      .overlay {
        /* Compress vertical padding to maximize content area clearance */
        padding: 0.4rem clamp(1rem, 4vw, 4rem) 0.2rem !important; 
      }

      .overlay-left {
        /* Entirely strip the 560px absolute lower bound constraint */
        min-height: unset !important; 
        height: 100% !important;
      }

      .tool-mock {
        /* Drop the 420px height barrier so it flows relative to container size */
        min-height: unset !important;
        flex: 1 !important;
      }

      .overlay-now-playing.player-bar {
        /* Tighten row padding on the media playback layout frame */
        margin-top: 0.35rem !important;
        padding: 0.25rem 0.6rem !important;
      }
    }