/* =============================================================
   iPod Nano 3rd Generation Shell — Mobile CSS
   Brand: 313 Paradise | Accent: #07e317 (neon green)
   Font: 'PP Neue Montreal', -apple-system, sans-serif
   ============================================================= */

/* 1. Default: hide shell on desktop */
.ipod-shell {
  display: none;
}

/* =============================================================
   ALL RULES BELOW ARE SCOPED TO max-width: 767px
   ============================================================= */
@media screen and (max-width: 767px) {

  /* -----------------------------------------------------------
     1. Shell Frame
     ----------------------------------------------------------- */
  .ipod-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    padding: 12px;
    font-family: 'PP Neue Montreal', -apple-system, sans-serif;
  }

  .ipod-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 380px;
    max-height: 720px;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2a2a2a 0%, #1c1c1c 30%, #111 60%, #1c1c1c 100%);
    border-radius: 28px;
    border: 1px solid #3a3a3a;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 -1px 0 rgba(0, 0, 0, 0.5),
      0 20px 60px rgba(0, 0, 0, 0.9),
      0 4px 16px rgba(0, 0, 0, 0.6);
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
  }

  .ipod-body::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: repeating-linear-gradient(
      90deg,
      transparent 0 1px,
      rgba(255, 255, 255, 0.015) 1px 2px
    );
    pointer-events: none;
    z-index: 0;
  }

  /* -----------------------------------------------------------
     2. Screen
     ----------------------------------------------------------- */
  .ipod-screen {
    flex: 0 0 52%;
    width: 100%;
    background: #000;
    border-radius: 8px;
    border: 2px solid #222;
    box-shadow:
      inset 0 2px 8px rgba(0, 0, 0, 0.8),
      inset 0 1px 3px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
  }

  .ipod-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: 10;
    border-radius: 6px;
  }

  /* -----------------------------------------------------------
     3. Status Bar
     ----------------------------------------------------------- */
  .ipod-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    background: var(--ipod-status-bg);
    border-bottom: 1px solid var(--ipod-status-border);
    font-size: 11px;
    color: #fff;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
  }

  /* Theme toggle button */
  .ipod-status-bar__theme-btn {
    background: none;
    border: 1px solid #555;
    border-radius: 3px;
    color: #07e317;
    font-size: 9px;
    font-family: 'PP Neue Montreal', -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 1px 5px;
    cursor: pointer;
    text-transform: uppercase;
    line-height: 1.2;
    transition: border-color 0.2s, color 0.2s;
  }

  .ipod-status-bar__theme-btn:active {
    border-color: #07e317;
  }

  .ipod-shell[data-theme="classic"] .ipod-status-bar__theme-btn {
    color: #fff;
    border-color: #888;
  }

  .ipod-status-bar__title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .ipod-status-bar__battery {
    position: relative;
    width: 20px;
    height: 10px;
    border: 1.5px solid #888;
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 1px;
  }

  .ipod-status-bar__battery::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 5px;
    background: #888;
    border-radius: 0 1px 1px 0;
  }

  .ipod-status-bar__battery-fill {
    background: #07e317;
    width: 80%;
    height: 100%;
    border-radius: 1px;
  }

  /* -----------------------------------------------------------
     4. Screen Content
     ----------------------------------------------------------- */
  .ipod-screen-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: var(--ipod-screen-bg, #0a0a0a);
  }

  /* -----------------------------------------------------------
     Theme System — CSS Custom Properties
     ----------------------------------------------------------- */
  .ipod-shell {
    /* 313 Paradise theme (default) */
    --ipod-screen-bg: #0a0a0a;
    --ipod-menu-bg: transparent;
    --ipod-menu-text: #e0e0e0;
    --ipod-menu-border: #1a1a1a;
    --ipod-menu-selected-bg: linear-gradient(180deg, #07e317 0%, #05b012 100%);
    --ipod-menu-selected-text: #000;
    --ipod-chevron: #555;
    --ipod-chevron-selected: #000;
    --ipod-social-text: #e0e0e0;
    --ipod-social-border: #1a1a1a;
    --ipod-social-selected-bg: linear-gradient(180deg, #07e317 0%, #05b012 100%);
    --ipod-social-selected-text: #000;
    --ipod-status-bg: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    --ipod-status-border: #07e317;
  }

  .ipod-shell[data-theme="classic"] {
    /* Classic iPod theme */
    --ipod-screen-bg: #fff;
    --ipod-menu-bg: transparent;
    --ipod-menu-text: #000;
    --ipod-menu-border: #ddd;
    --ipod-menu-selected-bg: linear-gradient(180deg, #4a8df7 0%, #2968d8 100%);
    --ipod-menu-selected-text: #fff;
    --ipod-chevron: #999;
    --ipod-chevron-selected: #fff;
    --ipod-social-text: #000;
    --ipod-social-border: #ddd;
    --ipod-social-selected-bg: linear-gradient(180deg, #4a8df7 0%, #2968d8 100%);
    --ipod-social-selected-text: #fff;
    --ipod-status-bg: linear-gradient(180deg, #4a4a4a, #2a2a2a);
    --ipod-status-border: transparent;
  }

  /* -----------------------------------------------------------
     5. Bezel Gap
     ----------------------------------------------------------- */
  .ipod-bezel {
    flex: 0 0 16px;
    width: 100%;
  }

  /* -----------------------------------------------------------
     6. Click Wheel
     ----------------------------------------------------------- */
  .ipod-wheel {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2e2e2e 0%, #1a1a1a 50%, #222 100%);
    border: 1px solid #333;
    touch-action: none;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 -1px 0 rgba(0, 0, 0, 0.4),
      0 4px 16px rgba(0, 0, 0, 0.6);
    z-index: 1;
  }

  /* Cardinal labels */
  .ipod-wheel__label {
    position: absolute;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    font-family: 'PP Neue Montreal', -apple-system, sans-serif;
    letter-spacing: 0.5px;
    pointer-events: none;
    user-select: none;
  }

  .ipod-wheel__label--menu {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
  }

  .ipod-wheel__label--prev {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
  }

  .ipod-wheel__label--next {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
  }

  .ipod-wheel__label--playpause {
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
  }

  /* Center button */
  .ipod-wheel__center {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a2a 0%, #181818 60%, #222 100%);
    border: 1px solid #3a3a3a;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      inset 0 -1px 0 rgba(0, 0, 0, 0.5),
      0 2px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.1s ease, transform 0.1s ease;
  }

  .ipod-wheel__center:active {
    box-shadow:
      inset 0 2px 6px rgba(0, 0, 0, 0.8),
      inset 0 1px 3px rgba(0, 0, 0, 0.6);
    transform: scale(0.97);
  }

  /* -----------------------------------------------------------
     7. Desktop Content Hiding (on mobile)
     ----------------------------------------------------------- */
  .desktop-content,
  .osmo-ui,
  .section,
  .cloneable,
  .div-block-3 {
    display: none !important;
  }

  /* -----------------------------------------------------------
     8. Menu UI
     ----------------------------------------------------------- */
  .ipod-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
  }

  .ipod-menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--ipod-menu-text);
    border-bottom: 1px solid var(--ipod-menu-border);
    cursor: pointer;
    background: var(--ipod-menu-bg);
  }

  .ipod-menu__item--selected {
    background: var(--ipod-menu-selected-bg);
    color: var(--ipod-menu-selected-text);
  }

  .ipod-menu__chevron {
    color: var(--ipod-chevron);
    font-size: 14px;
    flex-shrink: 0;
  }

  .ipod-menu__item--selected .ipod-menu__chevron {
    color: var(--ipod-chevron-selected);
  }

  .ipod-menu__icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
  }

  .ipod-menu__item-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
  }

  .ipod-menu__item-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* -----------------------------------------------------------
     8b. Modular Grid Menu (artist pages)
     ----------------------------------------------------------- */
  .ipod-modular {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 8px;
    align-content: center;
    background: var(--ipod-screen-bg, #0a0a0a);
    overflow-y: auto;
  }

  .ipod-modular__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    gap: 6px;
  }

  .ipod-modular__tile--selected {
    background: rgba(7, 227, 23, 0.12);
    transform: scale(1.05);
  }

  .ipod-modular__icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
  }

  .ipod-modular__icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
  }

  .ipod-modular__label {
    font-family: 'PP Neue Montreal', -apple-system, sans-serif;
    font-size: 10px;
    color: var(--ipod-menu-text, #e0e0e0);
    text-align: center;
    line-height: 1.2;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ipod-modular__tile--selected .ipod-modular__label {
    color: #07e317;
  }

  /* Gerez artist theme override for modular */
  .ipod-shell[data-artist="gerez"] .ipod-modular__tile--selected {
    background: rgba(253, 158, 29, 0.15);
  }

  .ipod-shell[data-artist="gerez"] .ipod-modular__tile--selected .ipod-modular__label {
    color: #fd9e1d;
  }

  /* -----------------------------------------------------------
     9. Slide Transitions
     ----------------------------------------------------------- */
  @keyframes ipod-slide-in-left {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
  }

  @keyframes ipod-slide-out-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
  }

  @keyframes ipod-slide-in-right {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
  }

  @keyframes ipod-slide-out-right {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
  }

  .ipod-menu--enter-left {
    animation: ipod-slide-in-left 0.3s ease-out forwards;
  }

  .ipod-menu--exit-left {
    animation: ipod-slide-out-left 0.3s ease-out forwards;
  }

  .ipod-menu--enter-right {
    animation: ipod-slide-in-right 0.3s ease-out forwards;
  }

  .ipod-menu--exit-right {
    animation: ipod-slide-out-right 0.3s ease-out forwards;
  }

  /* -----------------------------------------------------------
     10. Player View
     ----------------------------------------------------------- */
  .ipod-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #111 0%, #000 60%, #0d0d0d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
  }

  .ipod-player__art {
    width: 55%;
    aspect-ratio: 1;
    border-radius: 4px;
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 6px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .ipod-player__info {
    width: 75%;
    text-align: center;
    color: #fff;
    flex-shrink: 0;
  }

  .ipod-player__track {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
  }

  .ipod-player__artist {
    font-size: 10px;
    color: #aaa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Progress bar */
  .ipod-player__progress-container {
    width: 75%;
    margin-top: 6px;
    flex-shrink: 0;
  }

  .ipod-player__progress-bar {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
  }

  .ipod-player__progress-fill {
    height: 100%;
    background: #07e317;
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s linear;
  }

  .ipod-player__times {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #888;
  }

  /* Volume bar */
  .ipod-player__volume-container {
    width: 85%;
    margin-top: 8px;
    flex-shrink: 0;
  }

  .ipod-player__volume-bar {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
  }

  .ipod-player__volume-fill {
    height: 100%;
    background: #07e317;
    border-radius: 2px;
    width: 70%;
  }

  /* -----------------------------------------------------------
     11. Cover Art Grid
     ----------------------------------------------------------- */
  .ipod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    background: #000;
    overflow-y: auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100%;
  }

  .ipod-grid__item {
    aspect-ratio: 1;
    cursor: pointer;
    overflow: hidden;
    position: relative;
  }

  .ipod-grid__item--selected {
    outline: 3px solid #07e317;
    outline-offset: -3px;
  }

  .ipod-grid__art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ipod-grid__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    padding: 12px 6px 4px;
    font-size: 10px;
    color: #fff;
  }

  .ipod-grid__label-title {
    font-weight: 700;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ipod-grid__label-artist {
    color: #aaa;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* -----------------------------------------------------------
     12. Content Views
     ----------------------------------------------------------- */
  .ipod-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: absolute;
    top: 0;
    left: 0;
  }

  .ipod-content--dark {
    background: #000;
    color: #fff;
  }

  .ipod-content--light {
    background: var(--ipod-screen-bg);
    color: var(--ipod-menu-text);
  }

  /* Bio — modular profile card */
  .ipod-bio {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  .ipod-bio__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-size: cover;
    background-position: center;
    filter: blur(16px) brightness(0.35);
    z-index: 0;
  }

  .ipod-bio__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, #000 100%);
  }

  .ipod-bio__card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 12px;
    width: 100%;
  }

  .ipod-bio__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
  }

  .ipod-bio__name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 6px;
  }

  .ipod-bio__role {
    font-size: 10px;
    color: #07e317;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    background: rgba(7, 227, 23, 0.1);
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid rgba(7, 227, 23, 0.2);
    margin: 0;
  }

  .ipod-bio__desc-card {
    position: relative;
    z-index: 1;
    margin: 12px 12px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ipod-bio__description {
    font-size: 12px;
    line-height: 1.6;
    color: #bbb;
    margin: 0;
    text-align: center;
  }

  /* Gerez artist theme: orange role badge */
  .ipod-shell[data-artist="gerez"] .ipod-bio__role {
    color: #fd9e1d;
    background: rgba(253, 158, 29, 0.1);
    border-color: rgba(253, 158, 29, 0.2);
  }

  /* Shows */
  .ipod-shows__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #222;
  }

  .ipod-shows__date {
    font-size: 12px;
    font-weight: 700;
    color: #07e317;
    flex-shrink: 0;
    margin-right: 12px;
  }

  .ipod-shows__details {
    flex: 1;
    min-width: 0;
  }

  .ipod-shows__venue {
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ipod-shows__city {
    font-size: 12px;
    color: #888;
    display: block;
  }

  /* Lookbook */
  .ipod-lookbook {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .ipod-lookbook__photo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
  }

  /* YouTube-style blurred background for non-fitting images */
  .ipod-lookbook__blur {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.4);
    z-index: 0;
  }

  .ipod-lookbook__photo {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
  }

  .ipod-lookbook__counter {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 10px;
  }

  /* Social */
  .ipod-social__item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--ipod-social-text);
    border-bottom: 1px solid var(--ipod-social-border);
    cursor: pointer;
  }

  .ipod-social__item--selected {
    background: var(--ipod-social-selected-bg);
    color: var(--ipod-social-selected-text);
  }

  .ipod-social__icon {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    flex-shrink: 0;
  }

  .ipod-social__label {
    flex: 1;
  }

  /* -----------------------------------------------------------
     13. Loading
     ----------------------------------------------------------- */
  .ipod-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
  }

  @keyframes ipod-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }

  .ipod-loading__spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #333;
    border-top-color: #07e317;
    animation: ipod-spin 0.8s linear infinite;
  }

} /* end @media screen and (max-width: 767px) */

/* =============================================================
   Desktop Floating iPod Player
   Shown when .ipod-shell--desktop is added via JS.
   Reuses all the mobile iPod component styles but in a
   compact floating widget.
   ============================================================= */
@media screen and (min-width: 768px) {

  .ipod-shell--desktop {
    display: flex !important;
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 800;
    padding: 0;
    background: none;
    animation: ipod-float-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes ipod-float-in {
    from {
      opacity: 0;
      transform: translateY(40px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .ipod-shell--desktop .ipod-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
    height: 500px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1c1c1c 30%, #111 60%, #1c1c1c 100%);
    border-radius: 22px;
    border: 1px solid #3a3a3a;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.08),
      inset 0 -1px 0 rgba(0,0,0,0.5),
      0 20px 60px rgba(0,0,0,0.7),
      0 4px 16px rgba(0,0,0,0.4);
    padding: 14px 12px 10px;
    position: relative;
    overflow: hidden;
  }

  /* Brushed metal */
  .ipod-shell--desktop .ipod-body::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: repeating-linear-gradient(90deg, transparent 0 1px, rgba(255,255,255,0.015) 1px 2px);
    pointer-events: none;
    z-index: 0;
  }

  .ipod-shell--desktop .ipod-screen {
    flex: 0 0 52%;
    width: 100%;
    background: #000;
    border-radius: 6px;
    border: 2px solid #222;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
  }

  .ipod-shell--desktop .ipod-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(255,255,255,0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: 10;
    border-radius: 4px;
  }

  .ipod-shell--desktop .ipod-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 8px;
    background: var(--ipod-status-bg, linear-gradient(180deg, #111, #0a0a0a));
    border-bottom: 1px solid var(--ipod-status-border, #07e317);
    font-size: 10px;
    color: #fff;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
  }

  .ipod-shell--desktop .ipod-status-bar__title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .ipod-shell--desktop .ipod-status-bar__battery {
    position: relative;
    width: 16px;
    height: 8px;
    border: 1px solid #888;
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 1px;
  }

  .ipod-shell--desktop .ipod-status-bar__battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 4px;
    background: #888;
    border-radius: 0 1px 1px 0;
  }

  .ipod-shell--desktop .ipod-status-bar__battery-fill {
    background: #07e317;
    width: 80%;
    height: 100%;
    border-radius: 1px;
  }

  .ipod-shell--desktop .ipod-screen-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: var(--ipod-screen-bg, #0a0a0a);
  }

  .ipod-shell--desktop .ipod-bezel {
    flex: 0 0 10px;
  }

  .ipod-shell--desktop .ipod-wheel {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2e2e2e 0%, #1a1a1a 50%, #222 100%);
    border: 1px solid #333;
    touch-action: none;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.06),
      inset 0 -1px 0 rgba(0,0,0,0.4),
      0 2px 8px rgba(0,0,0,0.4);
    z-index: 1;
  }

  .ipod-shell--desktop .ipod-wheel__label {
    position: absolute;
    font-size: 9px;
    text-transform: uppercase;
    color: #888;
    font-family: 'PP Neue Montreal', -apple-system, sans-serif;
    letter-spacing: 0.5px;
    pointer-events: none;
    user-select: none;
  }

  .ipod-shell--desktop .ipod-wheel__label--menu {
    top: 10px; left: 50%; transform: translateX(-50%);
  }
  .ipod-shell--desktop .ipod-wheel__label--prev {
    left: 10px; top: 50%; transform: translateY(-50%); font-size: 11px;
  }
  .ipod-shell--desktop .ipod-wheel__label--next {
    right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px;
  }
  .ipod-shell--desktop .ipod-wheel__label--playpause {
    bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 10px;
  }

  .ipod-shell--desktop .ipod-wheel__center {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a2a, #181818, #222);
    border: 1px solid #3a3a3a;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.07),
      inset 0 -1px 0 rgba(0,0,0,0.5),
      0 2px 8px rgba(0,0,0,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ipod-shell--desktop .ipod-wheel__center:active {
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
    transform: scale(0.97);
  }

  /* Theme button */
  .ipod-shell--desktop .ipod-status-bar__theme-btn {
    background: none;
    border: 1px solid #555;
    border-radius: 3px;
    color: #07e317;
    font-size: 8px;
    font-family: 'PP Neue Montreal', -apple-system, sans-serif;
    font-weight: 600;
    padding: 1px 4px;
    cursor: pointer;
    text-transform: uppercase;
    line-height: 1.2;
  }

  /* Close button for desktop iPod */
  .ipod-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff5f57;
    border: 1px solid #e0443e;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: transparent;
    transition: color 0.15s;
  }

  .ipod-close:hover {
    color: #4a0000;
  }

  /* Reuse all iPod content styles in desktop context */
  .ipod-shell--desktop .ipod-menu { list-style:none; margin:0; padding:0; position:absolute; top:0; left:0; width:100%; height:100%; overflow-y:auto; }
  .ipod-shell--desktop .ipod-menu__item { display:flex; align-items:center; justify-content:space-between; padding:8px 12px; font-size:13px; color:var(--ipod-menu-text,#e0e0e0); border-bottom:1px solid var(--ipod-menu-border,#1a1a1a); cursor:pointer; }
  .ipod-shell--desktop .ipod-menu__item--selected { background:var(--ipod-menu-selected-bg, linear-gradient(180deg,#07e317,#05b012)); color:var(--ipod-menu-selected-text,#000); }
  .ipod-shell--desktop .ipod-menu__chevron { color:var(--ipod-chevron,#555); font-size:12px; }
  .ipod-shell--desktop .ipod-menu__item--selected .ipod-menu__chevron { color:var(--ipod-chevron-selected,#000); }
  .ipod-shell--desktop .ipod-menu__icon { width:28px; height:28px; border-radius:5px; object-fit:cover; margin-right:8px; }
  .ipod-shell--desktop .ipod-menu__item-content { display:flex; align-items:center; flex:1; min-width:0; }
  .ipod-shell--desktop .ipod-menu__item-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  /* Player in desktop iPod */
  .ipod-shell--desktop .ipod-player { position:absolute; top:0; left:0; width:100%; height:100%; background:linear-gradient(180deg,#111,#000); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:10px; }
  .ipod-shell--desktop .ipod-player__art { width:55%; aspect-ratio:1; border-radius:4px; object-fit:cover; box-shadow:0 4px 12px rgba(0,0,0,0.5); margin-bottom:6px; }
  .ipod-shell--desktop .ipod-player__info { width:80%; text-align:center; color:#fff; font-family:'PP Neue Montreal',sans-serif; }
  .ipod-shell--desktop .ipod-player__track { font-size:12px; font-weight:700; margin-bottom:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ipod-shell--desktop .ipod-player__artist { font-size:10px; color:#aaa; }
  .ipod-shell--desktop .ipod-player__progress-container { width:80%; margin-top:8px; }
  .ipod-shell--desktop .ipod-player__progress-bar { width:100%; height:3px; background:#333; border-radius:2px; overflow:hidden; margin-bottom:3px; }
  .ipod-shell--desktop .ipod-player__progress-fill { height:100%; background:#07e317; border-radius:2px; width:0%; transition:width 0.5s linear; }
  .ipod-shell--desktop .ipod-player__times { display:flex; justify-content:space-between; font-size:9px; color:#888; }
  .ipod-shell--desktop .ipod-player__volume-container { width:80%; margin-top:6px; }
  .ipod-shell--desktop .ipod-player__volume-bar { width:100%; height:2px; background:#333; border-radius:2px; overflow:hidden; }
  .ipod-shell--desktop .ipod-player__volume-fill { height:100%; background:#07e317; border-radius:2px; width:70%; }

  /* Grid in desktop iPod */
  .ipod-shell--desktop .ipod-grid { display:grid; grid-template-columns:1fr 1fr; gap:3px; padding:3px; background:#000; overflow-y:auto; position:absolute; top:0; left:0; width:100%; height:100%; }
  .ipod-shell--desktop .ipod-grid__item { aspect-ratio:1; cursor:pointer; overflow:hidden; position:relative; }
  .ipod-shell--desktop .ipod-grid__item--selected { outline:2px solid #07e317; outline-offset:-2px; }
  .ipod-shell--desktop .ipod-grid__art { width:100%; height:100%; object-fit:cover; }
  .ipod-shell--desktop .ipod-grid__label { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(transparent,rgba(0,0,0,0.75)); padding:8px 4px 3px; font-size:9px; color:#fff; }
  .ipod-shell--desktop .ipod-grid__label-title { font-weight:700; display:block; }
  .ipod-shell--desktop .ipod-grid__label-artist { color:#aaa; display:block; }

  /* Slide transitions */
  .ipod-shell--desktop .ipod-menu--enter-left { animation: ipod-slide-in-left 0.3s ease-out forwards; }
  .ipod-shell--desktop .ipod-menu--exit-left { animation: ipod-slide-out-left 0.3s ease-out forwards; }
  .ipod-shell--desktop .ipod-menu--enter-right { animation: ipod-slide-in-right 0.3s ease-out forwards; }
  .ipod-shell--desktop .ipod-menu--exit-right { animation: ipod-slide-out-right 0.3s ease-out forwards; }

  /* Content views */
  .ipod-shell--desktop .ipod-content { width:100%; height:100%; overflow-y:auto; position:absolute; top:0; left:0; font-family:'PP Neue Montreal',sans-serif; }
  .ipod-shell--desktop .ipod-content--dark { background:#000; color:#fff; }
  .ipod-shell--desktop .ipod-content--light { background:var(--ipod-screen-bg,#0a0a0a); color:var(--ipod-menu-text,#e0e0e0); }

  /* Hide the old inline desktop player when iPod is active */
  .ipod-shell--desktop ~ .artist-page .artist-player { display: none !important; }

}

/* =============================================================
   14. Tablet Scaling (480px – 767px)
   ============================================================= */
@media screen and (min-width: 480px) and (max-width: 767px) {

  .ipod-body {
    max-width: 420px;
    max-height: 800px;
  }

  .ipod-wheel {
    width: 260px;
    height: 260px;
  }

  .ipod-wheel__center {
    width: 95px;
    height: 95px;
  }

}

/* =============================================================
   15. Artist iPod Themes — Custom colors + sticker per artist
   Smooth transitions on all themed properties.
   ============================================================= */

/* Transition all themed elements smoothly */
.ipod-body,
.ipod-screen,
.ipod-wheel,
.ipod-wheel__center,
.ipod-wheel__label,
.ipod-status-bar,
.ipod-status-bar__theme-btn,
.ipod-status-bar__battery-fill,
.ipod-menu__item,
.ipod-menu__item--selected,
.ipod-menu__chevron,
.ipod-player__progress-fill,
.ipod-player__volume-fill,
.ipod-grid__item--selected,
.ipod-social__item--selected {
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Sticker element — pasted onto the iPod body --- */
.ipod-sticker {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  object-fit: contain;
  /* Worn sticker look */
  transform: rotate(-8deg);
  filter: saturate(1.1) contrast(1.05);
  border: none;
  box-shadow: none;
}

/* Mobile sticker — bottom-right below wheel */
@media screen and (max-width: 767px) {
  .ipod-sticker {
    width: 70px;
    height: 70px;
    right: 20px;
    bottom: 16px;
    border-radius: 0;
  }
}

/* Desktop sticker — bottom-right of body */
@media screen and (min-width: 768px) {
  .ipod-shell--desktop .ipod-sticker {
    width: 56px;
    height: 56px;
    bottom: 12px;
    right: 12px;
    top: auto;
    left: auto;
    border-radius: 0;
  }
}

/* =============================================================
   GEREZ THEME — Warm golden orange
   Colors sampled from gerez-square.jpeg illustrated avatar
   ============================================================= */
.ipod-shell[data-artist="gerez"] {
  /* Override 313 theme vars with exact specified colors */
  --ipod-screen-bg: #1a1208;
  --ipod-menu-text: #f0dcc0;
  --ipod-menu-border: #2a1c0a;
  --ipod-menu-selected-bg: linear-gradient(180deg, #f3a32a 0%, #e17219 100%);
  --ipod-menu-selected-text: #1a0e00;
  --ipod-chevron: #6b5030;
  --ipod-chevron-selected: #1a0e00;
  --ipod-social-text: #f0dcc0;
  --ipod-social-border: #2a1c0a;
  --ipod-social-selected-bg: linear-gradient(180deg, #f3a32a 0%, #e17219 100%);
  --ipod-social-selected-text: #1a0e00;
  --ipod-status-bg: linear-gradient(180deg, #1e1508 0%, #140e04 100%);
  --ipod-status-border: #f3a32a;
}

/* Gerez body — solid #f3a32a orange */
.ipod-shell[data-artist="gerez"] .ipod-body {
  background: #fd9e1d;
  border-color: #e8900a;
}

.ipod-shell[data-artist="gerez"] .ipod-body::before {
  background: repeating-linear-gradient(
    90deg,
    transparent 0 1px,
    rgba(243, 163, 42, 0.04) 1px 2px
  );
}

/* Gerez screen border */
.ipod-shell[data-artist="gerez"] .ipod-screen {
  border-color: #e17219;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.8),
    0 0 8px rgba(243,163,42,0.15);
}

/* Gerez battery fill */
.ipod-shell[data-artist="gerez"] .ipod-status-bar__battery-fill {
  background: #f3a32a;
}

/* Gerez theme button */
.ipod-shell[data-artist="gerez"] .ipod-status-bar__theme-btn {
  color: #f3a32a;
  border-color: #e17219;
}

/* Gerez wheel — #e17219 */
.ipod-shell[data-artist="gerez"] .ipod-wheel {
  background: linear-gradient(145deg, #e17219 0%, #c45e10 50%, #e17219 100%);
  border-color: #f3a32a;
  box-shadow:
    inset 0 1px 0 rgba(243,163,42,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 4px 16px rgba(0,0,0,0.4);
}

.ipod-shell[data-artist="gerez"] .ipod-wheel__label {
  color: rgba(0,0,0,0.5);
  text-shadow: 0 1px 0 rgba(243,163,42,0.3);
}

/* Gerez center — #f3a32a */
.ipod-shell[data-artist="gerez"] .ipod-wheel__center {
  background: linear-gradient(145deg, #f3a32a 0%, #e8922a 50%, #f3a32a 100%);
  border-color: #e17219;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    0 2px 8px rgba(0,0,0,0.4);
}

.ipod-shell[data-artist="gerez"] .ipod-wheel__center:active {
  background: linear-gradient(145deg, #e8922a 0%, #d4800a 50%, #e8922a 100%);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}

/* Gerez player accent */
.ipod-shell[data-artist="gerez"] .ipod-player__progress-fill,
.ipod-shell[data-artist="gerez"] .ipod-player__volume-fill {
  background: #f3a32a;
}

/* Gerez grid selection */
.ipod-shell[data-artist="gerez"] .ipod-grid__item--selected {
  outline-color: #f3a32a;
}

/* Gerez bio role color */
.ipod-shell[data-artist="gerez"] .ipod-bio__role {
  color: #f3a32a;
}

/* Gerez shows date */
.ipod-shell[data-artist="gerez"] .ipod-shows__date {
  color: #f3a32a;
}

/* =============================================================
   Additional artist themes can follow the same pattern:

   .ipod-shell[data-artist="juanpa-arce"] { ... }
   .ipod-shell[data-artist="otty-cht"] { ... }
   ============================================================= */
