/* =============================================================
   EPK.CSS — My Sweet Undivine
   Quiet file explorer for the EPK page (epk.html).
   Flat surfaces, hairlines, whitespace, actions on hover.
   Two surfaces: dark (default) and light (html.fx-light).
   Builds on global.css + booking.css (preview overlay).
   ============================================================= */

:root {
  --fx-surface: #101012;
  --fx-surface-2: #141417;
  --fx-hover: rgba(255,255,255,0.04);
  --fx-active: rgba(160,30,40,0.14);
  --fx-line: rgba(255,255,255,0.09);
  --fx-line-soft: rgba(255,255,255,0.06);
  --fx-text: #f2f2f2;
  --fx-muted: rgba(242,242,242,0.6);
  --fx-muted-2: rgba(242,242,242,0.42);
  --fx-icon: rgba(242,242,242,0.7);
  --fx-btn-bg: transparent;
  --fx-btn-line: rgba(255,255,255,0.16);
  --fx-btn-hover: rgba(255,255,255,0.07);
  --fx-primary: #a01e28;
  --fx-primary-hover: #b3232e;
  --fx-thumb-bg: #1a1a1e;
  --fx-page-bg: #000;
}

html.fx-light {
  --fx-surface: #ffffff;
  --fx-surface-2: #fafafb;
  --fx-hover: #f4f4f6;
  --fx-active: rgba(160,30,40,0.07);
  --fx-line: #e6e6ea;
  --fx-line-soft: #eeeef1;
  --fx-text: #1b1b1f;
  --fx-muted: #6b6b73;
  --fx-muted-2: #9a9aa3;
  --fx-icon: #55555e;
  --fx-btn-bg: #ffffff;
  --fx-btn-line: #d9d9de;
  --fx-btn-hover: #f1f1f4;
  --fx-thumb-bg: #ececef;
  --fx-page-bg: #f3f3f5;
}

html.fx-light body { background: var(--fx-page-bg); }
html.fx-light .site-header { background: rgba(10,10,11,0.94); }
html.fx-light .site-footer { color: #7a7a82; border-top-color: #e3e3e7; }

.epk-page .site-main {
  max-width: 1100px;
  padding-top: clamp(20px, 4vw, 48px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
@media (min-width: 769px) and (max-width: 1300px) {
  .epk-page .site-main { padding-right: 96px; }
}

/* =========================
   Explorer sheet
   ========================= */
.fx {
  color: var(--fx-text);
  background: var(--fx-surface);
  border: 1px solid var(--fx-line);
  border-radius: 14px;
  overflow: hidden;
}

/* --- Head --- */
.fx-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: clamp(22px, 3vw, 34px) clamp(18px, 3vw, 32px) clamp(16px, 2vw, 22px);
}

.fx-head__id { display: flex; align-items: center; gap: 14px; min-width: 0; }

.fx-head__icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--fx-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.fx-head__icon svg { width: 22px; height: 22px; }

.fx-head__title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fx-head__sub { margin-top: 4px; font-size: 13.5px; color: var(--fx-muted); }

.fx-head__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* --- Buttons --- */
.fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--fx-btn-line);
  background: var(--fx-btn-bg);
  color: var(--fx-text);
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease;
}
.fx-btn:hover { background: var(--fx-btn-hover); }
.fx-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(160,30,40,.3); }
.fx-btn small { font-weight: 400; color: var(--fx-muted); font-size: 12.5px; }
.fx-btn svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--fx-icon); }

.fx-btn--primary { background: var(--fx-primary); border-color: var(--fx-primary); color: #fff; }
.fx-btn--primary:hover { background: var(--fx-primary-hover); border-color: var(--fx-primary-hover); }
.fx-btn--primary svg, .fx-btn--primary small { color: rgba(255,255,255,0.85); }

.fx-btn--icon { width: 34px; height: 34px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
.fx-btn--icon:hover { background: var(--fx-btn-hover); }
.fx-btn--icon svg { width: 17px; height: 17px; }

.fx-btn--text { border-color: transparent; background: transparent; padding: 8px 10px; }

/* --- Breadcrumb bar --- */
.fx-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px clamp(18px, 3vw, 32px);
  min-height: 52px;
  border-top: 1px solid var(--fx-line-soft);
}

.fx-crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  font-size: 14px; color: var(--fx-muted); min-width: 0;
}
.fx-crumbs a, .fx-crumbs span { white-space: nowrap; }
.fx-crumbs a {
  color: var(--fx-muted);
  padding: 5px 8px; margin-left: -8px; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 6px;
}
.fx-crumbs a:hover { background: var(--fx-hover); color: var(--fx-text); }
.fx-crumbs a svg, .fx-crumbs .cur svg { width: 15px; height: 15px; color: var(--fx-icon); }
.fx-crumbs .sep { opacity: .45; padding: 0 2px; }
.fx-crumbs .cur { color: var(--fx-text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.fx-bar__right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fx-bar__note { font-size: 13px; color: var(--fx-muted-2); }

/* --- Column header --- */
.fx-cols, .fx-row {
  display: grid;
  grid-template-columns: 1fr 110px 90px 150px;
  gap: 14px;
  align-items: center;
  padding-left: clamp(18px, 3vw, 32px);
  padding-right: clamp(12px, 2vw, 20px);
}
.fx-cols {
  padding-top: 10px; padding-bottom: 10px;
  font-size: 12px; font-weight: 600;
  color: var(--fx-muted-2);
  border-top: 1px solid var(--fx-line-soft);
  border-bottom: 1px solid var(--fx-line-soft);
}
.fx-cols > :nth-child(3), .fx-row__size { text-align: right; }

/* --- Rows --- */
.fx-list { list-style: none; margin: 0; padding: 0; }

.fx-row {
  min-height: 60px;
  padding-top: 8px; padding-bottom: 8px;
  border-bottom: 1px solid var(--fx-line-soft);
  cursor: pointer;
  transition: background .1s ease;
}
.fx-row:last-child { border-bottom: 0; }
.fx-row:hover { background: var(--fx-hover); }
.fx-row.is-active { background: var(--fx-active); }
.fx-row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(160,30,40,.55); }

.fx-row__main { display: flex; align-items: center; gap: 14px; min-width: 0; }

.fx-thumb {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  background: var(--fx-thumb-bg);
  color: var(--fx-icon);
  display: flex; align-items: center; justify-content: center;
}
.fx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-thumb--contain img { object-fit: contain; padding: 5px; }
.fx-thumb--black { background: #000; }
.fx-thumb--white { background: #fff; border: 1px solid var(--fx-line); }
.fx-thumb--checker {
  background-color: #cfcfd4;
  background-image:
    linear-gradient(45deg, #e6e6ea 25%, transparent 25%),
    linear-gradient(-45deg, #e6e6ea 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e6e6ea 75%),
    linear-gradient(-45deg, transparent 75%, #e6e6ea 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
}
.fx-thumb svg { width: 20px; height: 20px; }
.fx-thumb--folder { background: transparent; color: var(--fx-primary); }
.fx-thumb--folder svg { width: 26px; height: 26px; }
html.fx-light .fx-thumb--folder { color: #c9333f; }
.fx-thumb__tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--fx-muted); }

.fx-name { min-width: 0; }
.fx-name__title { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-name__sub { margin-top: 2px; font-size: 12.5px; color: var(--fx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fx-row__type, .fx-row__size { font-size: 13px; color: var(--fx-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* actions: quiet until hover (always visible without hover capability) */
.fx-row__actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.fx-row__actions .fx-btn { opacity: 0; transition: opacity .12s ease, background .12s ease; }
.fx-row:hover .fx-btn, .fx-row:focus-within .fx-btn, .fx-row.is-active .fx-btn { opacity: 1; }
.fx-row__actions .fx-btn--icon.is-chev { opacity: .55; }
@media (hover: none) { .fx-row__actions .fx-btn { opacity: 1; } }

/* audio rows */
.fx-row .ico-pause { display: none; }
.fx-row.is-playing .ico-pause { display: block; }
.fx-row.is-playing .ico-play { display: none; }
.fx-row.is-playing .fx-thumb { background: var(--fx-primary); color: #fff; }

/* --- Footer note --- */
.fx-foot {
  padding: 16px clamp(18px, 3vw, 32px) 18px;
  border-top: 1px solid var(--fx-line-soft);
  background: var(--fx-surface-2);
  font-size: 12.5px; line-height: 1.6;
  color: var(--fx-muted);
}
.fx-foot strong { color: var(--fx-text); font-weight: 600; }
.fx-foot a { color: var(--fx-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--fx-muted-2); }

/* =========================
   Sticky mini player
   ========================= */
.fx-player {
  position: fixed;
  left: 50%; bottom: 18px;
  transform: translate(-50%, 140%);
  z-index: 99998;
  width: min(720px, calc(100% - 28px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--fx-line);
  background: var(--fx-surface);
  color: var(--fx-text);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s ease, visibility 0s linear .3s;
  opacity: 0;
  visibility: hidden; /* keeps the hidden player out of the tab order */
}
html.fx-light .fx-player { box-shadow: 0 14px 40px rgba(0,0,0,0.14); }
.fx-player.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }

.fx-player__cover { width: 44px; height: 44px; border-radius: 7px; overflow: hidden; flex-shrink: 0; background: var(--fx-thumb-bg); }
.fx-player__cover img { width: 100%; height: 100%; object-fit: cover; }

.fx-player__mid { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.fx-player__title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-player__title small { font-weight: 400; color: var(--fx-muted); margin-left: 6px; }
.fx-player__line { display: flex; align-items: center; gap: 10px; }
.fx-player__bar { flex: 1 1 auto; height: 18px; display: flex; align-items: center; cursor: pointer; }
.fx-player__track { position: relative; width: 100%; height: 4px; border-radius: 999px; background: var(--fx-line); overflow: hidden; }
.fx-player__fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--fx-primary); }
.fx-player__time { font-size: 11.5px; color: var(--fx-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.fx-player__ctrl { display: flex; align-items: center; gap: 2px; }
.fx-player__ctrl .fx-btn--icon { width: 36px; height: 36px; }
.fx-player__ctrl .fx-btn--play { background: var(--fx-primary); color: #fff; }
.fx-player__ctrl .fx-btn--play:hover { background: var(--fx-primary-hover); }
.fx-player__ctrl .fx-btn--play svg { color: #fff; }
.fx-player .ico-pause { display: none; }
.fx-player.is-playing .ico-pause { display: block; }
.fx-player.is-playing .ico-play { display: none; }

@media (max-width: 768px) {
  .fx-player { bottom: 78px; }
  #social-icons { z-index: 99997; }
}

/* =========================
   Lightbox additions (uses .msu-preview from booking.css)
   ========================= */
.msu-preview__bar {
  position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  max-width: 96%;
  color: #fff;
}
.msu-preview__bar .fx-btn { color: #fff; }
.msu-preview__cap { font-size: 12.5px; color: rgba(255,255,255,0.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msu-preview__cap small { opacity: .65; }
.msu-preview__count { font-size: 12px; color: rgba(255,255,255,0.55); font-variant-numeric: tabular-nums; }
.msu-preview .msu-preview__wm { display: none; }
.msu-preview__img.is-logo-light { background: #fff; padding: 24px; }
.msu-preview__img.is-logo-dark { background: #000; padding: 24px; }
@media (max-width: 700px) {
  .msu-preview__bar { bottom: 6px; padding: 5px 5px 5px 12px; gap: 8px; }
  .msu-preview__cap small { display: none; }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 860px) {
  .fx-cols { display: none; }
  .fx-cols, .fx-row { grid-template-columns: 1fr auto; }
  .fx-row__type, .fx-row__size { display: none; }
  .fx-row__actions .fx-btn { opacity: 1; }
}
@media (min-width: 861px) { .fx-inline-size { display: none; } }
@media (max-width: 520px) {
  .fx-head__actions { width: 100%; }
  .fx-head__actions .fx-btn { flex: 1 1 auto; justify-content: center; }
  .fx-row { gap: 8px; padding-left: 14px; padding-right: 8px; }
  .fx-bar { padding-left: 14px; padding-right: 14px; }
  .fx-bar__right .fx-btn { padding: 8px 11px; font-size: 13px; }
  .fx-foot { padding-left: 14px; padding-right: 14px; }
}
