@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Alata&family=DotGothic16&display=swap');

@import url('https://fonts.cdnfonts.com/css/billabong');

@font-face {
  src: url(/fonts/Spirit.woff2);
  font-family: 'spirits';
  font-display: swap;
}

/* -----------------------------------------------------------
   BASE STYLES & CURSOR
----------------------------------------------------------- */

:root {
  --background: #f0f0f0;
  --content-background: #fff;
  --text: #616161;
  --links: #8c8c8c;
  --title: #212121;
  --borders: #e0e0e0;
  --accent: #9fa8da;
  --gradient-1: #7986cb;
  --gradient-2: #e1bee7;
  --icon-background: #f5f6ff;
  --sidebar-link-background: #f5f5f5;
  --statistics-background: #f5f5f5;

  --fave-colour-one: #a1cdf7;
  --fave-colour-two: #f5bad9;
  --fave-colour-three: #abb6ff;
  --fave-colour-four: #ffc9dd;
}

* {
  box-sizing: border-box;
}

html, body, *, a, button, input, select, textarea {
  cursor: url('/media/cursor/cursorhover.png') 0 0, progress !important;
}

html, body {
  height: 100vh !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background-color: #ffffff; 
  background-image: url('/media/backgrounds/pinkcheck.png') !important;
  background-size: 40px;
  background-repeat: repeat;
  background-attachment: fixed;
  cursor: url(/media/cursor/cursorhover.png), progress;
}

body {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  perspective: 2500px;
  -webkit-font-smoothing: subpixel-antialiased;
  image-rendering: -webkit-optimize-contrast;
  font-size: 12px;
  color: #616161;
  font-family: 'Nunito', sans-serif;
  background: transparent !important; 
}

@media (max-width: 350px) {
  .iphone6-bezel {
    transform: scale(0.9);
  }
}

/* -----------------------------------------------------------
   LINKS, SELECTION & SCROLLBARS
----------------------------------------------------------- */

a {
  color: #d66a93;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

a:hover {
  color: #b34a71;
  text-decoration: underline;
}

::selection {
  background-color: #feeef6;
  color: #616161;
}

::-moz-selection {
  background-color: #feeef6;
  color: #616161;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
  margin: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: #ffcce6;
  border-radius: 50px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #ffb3d9;
}

/* -----------------------------------------------------------
   LACE OVERLAYS
----------------------------------------------------------- */
#lace {
  background-image: url(https://file.garden/aS-t0Aj4K3mdDujK/kkul/graphics/lacey.png);
  background-size: auto 100%;
  width: 100%;
  height: 20px;
  filter: drop-shadow(0px 1px #D1B9B3);
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 9999;
}

#lace-bottom {
  background-image: url(https://file.garden/aS-t0Aj4K3mdDujK/kkul/graphics/lacey.png);
  background-size: auto 100%;
  width: 100%;
  height: 20px;
  filter: drop-shadow(0px 1px #D1B9B3);
  position: fixed;
  bottom: 0px;
  left: 0px;
  transform: rotate(180deg);
  z-index: 9999;
}

/* -----------------------------------------------------------
    FINDER APP CONTAINER
----------------------------------------------------------- */
.finder-window {
  width: 700px;
  height: 500px;
  background-color: #f6f6f6;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  border: 1px solid var(--borders);
  user-select: none;
}

/* -----------------------------------------------------------
    HEADER & APP CONTROL MODULES
----------------------------------------------------------- */
.window-header {
  height: 46px;
  background-color: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.control-btn.close { background-color: #ff9ebd; border: 0.5px solid #e27a9b; }
.control-btn.minimize { background-color: #ffc4de; border: 0.5px solid #e4a2be; }
.control-btn.maximize { background-color: #ffe6f2; border: 0.5px solid #f0bcd4; }

.header-actions {
  display: flex;
  gap: 16px;
  color: #555555;
}

.action-btn {
  background: none;
  border: none;
  padding: 4px;
  color: #6b6b6b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

.action-btn:hover {
  color: #111111;
}

/* -----------------------------------------------------------
    SIDEBAR COMPONENT
----------------------------------------------------------- */
.window-body {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
}

.window-sidebar {
  width: 180px;
  background-color: rgba(240, 240, 240, 0.6);
  border-right: 1px solid #e5e5e5;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  backdrop-filter: blur(20px);
}

.sidebar-section h3 {
  font-size: 11px;
  font-weight: 800;
  color: #9c9c9c;
  margin: 0 0 6px 10px;
  text-transform: none;
  letter-spacing: 0.3px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #454545;
  font-weight: 500;
  font-size: 12px;
  transition: background-color 0.1s ease;
}

.sidebar-list li:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.sidebar-list li.active {
  background-color: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

.sidebar-list .icon {
  width: 15px;
  height: 15px;
  color: #616161;  
  flex-shrink: 0;
}

/* -----------------------------------------------------------
    MAIN DATA CONTROLS GRID
----------------------------------------------------------- */
.window-main-content {
  flex-grow: 1;
  background-color: #ffffff;
  padding: 24px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.content-meta {
  margin-bottom: 24px;
}

.meta-owner {
  font-size: 13px;
  color: #a3a3a3;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.meta-heading {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.5px;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 28px 20px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border-radius: 6px;
  padding: 6px 4px;
  transition: background-color 0.15s ease;
}

.grid-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.folder-icon {
  width: 105px;    
  height: 85px;   
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.folder-name {
  font-size: 11.5px;
  color: #333333;
  font-weight: 500;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 2px;
}

@media (max-width: 768px) {
  .finder-window {
    width: 85vw;       
    height: 45vh;   
  }

  .window-sidebar {
    width: 120px;     
    padding: 8px 4px;
    gap: 10px;
  }

  .window-main-content {
    padding: 12px 16px;
  }

  .meta-heading {
    font-size: 18px;   
  }

  .folder-icon {
    width: 55px;     
    height: 45px;    
  }

  .folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 12px 8px;
  }
}

/* -----------------------------------------------------------
    iOS MUSIC PLAYER OVERLAY (STACKING INTERFACE)
----------------------------------------------------------- */

.ios-music-player {
  position: absolute;
  bottom: -35px; 
  right: -35px;
  width: 260px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 16px;
  z-index: 99999; 
  user-select: none;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.player-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.album-art {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffe6f2, #ffc4de);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff9ebd;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(255, 158, 189, 0.2);
}

.fallback-music-icon {
  width: 24px;
  height: 24px;
}

.track-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.track-title {
  font-size: 13px;
  font-weight: 700;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 11px;
  color: #8e8e93;
  margin-top: 1px;
}

.player-timeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#progress-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  outline: none;
}

#progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #616161;
}

.time-stamps {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #a1a1a6;
  font-variant-numeric: tabular-nums;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 2px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: #616161;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, color 0.15s ease;
}

.ctrl-btn:active {
  transform: scale(0.92);
}

.backward-btn svg, .forward-btn svg {
  width: 22px;
  height: 22px;
}

.main-play-btn svg {
  width: 32px;
  height: 32px;
  color: #ff9ebd;
}

#progress-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #ff9ebd 0%, #ff9ebd 0%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.08) 100%);
  border-radius: 2px;
  outline: none;
}

#progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9ebd; 
  cursor: pointer;
}

#progress-slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: #ff9ebd;
  cursor: pointer;
}

.bg-decor-overlay {
  position: fixed;
  top: 110px;
  left: 90px;
  transform: rotate(-25deg); 
  font-family: 'Courier New', Courier, monospace; 
  white-space: pre;
  font-size: 13px; 
  line-height: 1.2;
  color: #414141; 
  opacity: 0.4; 
  z-index: -1;
  pointer-events: none; 
  user-select: none; 
}

.bg-decor-overlay2 {
  position: fixed;
  top: 100px;
  right: 60px;
  transform: none;
  font-family: 'Courier New', Courier, monospace; 
  white-space: pre;
  font-size: 12px; 
  line-height: 1.2;
  color: #414141; 
  opacity: 0.4; 
  z-index: -1;
  pointer-events: none; 
  user-select: none; 
}

@media (max-width: 768px) {
  .ios-music-player {
    width: 210px;
    padding: 15px;
    bottom: -80px;
    right: 20px;
  }
  .album-art { width: 40px; height: 40px; }
  .main-play-btn svg { width: 26px; height: 26px; }
  .backward-btn svg, .forward-btn svg { width: 18px; height: 18px; }
}