
/* ============================================
   HASHBOTTLE
   GRUNGE / OLD WEB / PINTEREST MOODBOARDS
   ============================================ */

:root {
  --bg: #101014;
  --panel: #1b1b22;
  --panel-light: #27252e;
  --border: #514b60;
  --text: #e5e1e9;
  --muted: #a6a0ae;
  --purple: #927da7;
  --blue: #778ca6;

  --display: 'Special Elite', Georgia, serif;
  --mono: 'IBM Plex Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;

  color: var(--text);

  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.017) 0 1px,
      transparent 1px 5px
    ),
    radial-gradient(
      ellipse at 90% 0%,
      #2b2035 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 5% 80%,
      #172331 0%,
      transparent 43%
    ),
    var(--bg);

  font-family: var(--mono);
  font-size: 12px;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px dashed #b6a2cc;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* ============================================
   GRAINY TEXTURE
   ============================================ */

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 20;

  pointer-events: none;
  opacity: .12;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

/* ============================================
   NAVIGATION BARS
   ============================================ */

.topbar,
.bottom-bar {
  min-height: 49px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  padding: 10px clamp(16px,3vw,45px);

  border-bottom: 1px solid #514958;

  background: rgba(10,10,13,.79);
  color: var(--muted);

  font: 700 10px/1.5 var(--mono);
  letter-spacing: .1em;
}

.back-link,
.bottom-bar a {
  color: #d1bed7;
}

.back-link:hover,
.bottom-bar a:hover {
  color: #fff;
}

.topbar-center {
  color: var(--blue);
}

.bottom-bar {
  border-top: 1px solid #514958;
  border-bottom: 0;
}

/* ============================================
   MAIN SHRINE LAYOUT
   ============================================ */

.ship-home {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.ship-layout {
  width: min(1450px,100%);
  flex: 1;

  margin: auto;
  padding: clamp(16px,2.2vw,35px);

  display: grid;

  grid-template-columns:
    minmax(0,1.08fr)
    minmax(0,1fr);

  gap: clamp(16px,2vw,30px);
  align-items: stretch;
}

.video-panel,
.right-panel {
  min-width: 0;

  padding: clamp(15px,2vw,25px);

  background:
    linear-gradient(
      130deg,
      rgba(37,35,44,.83),
      rgba(16,17,22,.92)
    );

  border: 1px solid #484254;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.025),
    7px 8px 0 rgba(0,0,0,.17);
}

.video-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  justify-content: flex-start;
}

.right-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;

  padding-bottom: 10px;

  border-bottom: 1px solid var(--border);

  color: #9c8daf;

  font: 700 10px/1.4 var(--mono);
  letter-spacing: .12em;
}

.eyebrow {
  color: var(--muted);

  font: 600 9px/1.4 var(--mono);
  letter-spacing: .16em;
}

/* ============================================
   MAIN TITLE
   ============================================ */

.video-intro h1 {
  margin: 12px 0 7px;

  font: clamp(48px,6vw,95px)/.92 var(--display);

  letter-spacing: -.07em;
  text-shadow: 3px 3px 0 #161219;
  overflow-wrap: anywhere;
}

.video-intro h1 span {
  color: #a48bb7;
}

.video-intro h1 small {
  margin-left: .12em;
  color: #a5a4ac;
  font-size: .45em;
}

.video-intro p {
  margin: 10px 0 0;

  color: #c5b4c9;

  font: 600 13px/1.5 var(--mono);
  letter-spacing: .12em;
}

.video-intro p i {
  color: #8c7a9d;
  font-style: normal;
}

.video-intro {
  margin-top: -2px;
}

.video-intro .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.video-intro h1 {
  margin: 4px 0 6px;
}

.video-intro p {
  margin: 4px 0 0;
}

.video-footnote {
  margin: auto 0 0;

  color: #706c7b;

  font: 600 9px/1.6 var(--mono);
  letter-spacing: .12em;
}

/* ============================================
   CUSTOM VIDEO PLAYER
   ============================================ */

.hb-player {
  display: flex;
  flex-direction: column;

  flex: none;
  min-height: 0;

  background: #0c0d11;

  border: 1px solid #665b70;
  overflow: hidden;
}

.hb-screen {
  position: relative;

  display: grid;
  place-items: center;

  flex: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(89,76,107,.24),
      transparent 60%
    ),
    #09090d;
}

.hb-screen::before {
  content: '';

  position: absolute;
  inset: 14px;
  z-index: 2;

  border: 1px solid rgba(155,139,166,.16);

  pointer-events: none;
}

.hb-screen video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;
  cursor: pointer;
}

/* EMPTY VIDEO SCREEN */

.hb-video-empty {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;

  padding: 18px;

  text-align: center;
  pointer-events: none;

  color: #a39aaa;
}

.hb-empty-symbol {
  color: #817393;

  font: 72px/1 var(--display);

  text-shadow: 0 0 26px #4f4465;
}

.hb-video-empty strong {
  font-size: 14px;
  letter-spacing: .16em;
}

.hb-video-empty small {
  color: #7e7686;
  font-size: 10px;
}

.hb-corner-label {
  position: absolute;
  top: 20px;
  left: 23px;
  z-index: 3;

  color: #c3b1cb;

  font: 700 9px var(--mono);
  letter-spacing: .14em;

  pointer-events: none;
}

/* CENTRAL PLAY BUTTON */

.hb-screen-play {
  position: absolute;
  z-index: 4;

  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);

  width: 58px;
  height: 58px;

  border: 1px solid #a48fb1;
  border-radius: 50%;

  background: rgba(23,20,29,.8);
  color: #e7d6ed;

  font-size: 21px;
  cursor: pointer;
}

.hb-screen-play:hover {
  background: #51445e;
}

/* ============================================
   VIDEO CONTROLS
   ============================================ */

.hb-controls {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 9px 11px;

  background:
    linear-gradient(90deg,#282531,#1a202a);

  border-top: 1px solid #574d60;
}

.hb-controls button {
  flex: 0 0 26px;
  min-width: 26px;
  height: 27px;

  border: 0;
  background: none;

  color: #c3b2d0;
  font-size: 20px;

  cursor: pointer;
}

.hb-controls button:hover:not(:disabled) {
  color: #fff;
  text-shadow: 0 0 10px #c4b0d7;
}

.hb-controls button:disabled {
  opacity: .3;
  cursor: default;
}

.hb-time {
  color: #bbb1be;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* CUSTOM PROGRESS BAR */

#hb-seek {
  flex: 1;
  min-width: 0;
  height: 4px;

  border: 0;
  border-radius: 10px;

  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;

  background: linear-gradient(
    90deg,
    #b3a0c2 var(--played,0%),
    #4c4755 var(--played,0%)
  );
}

#hb-seek::-webkit-slider-thumb {
  appearance: none;

  width: 12px;
  height: 12px;

  border-radius: 50%;
  background: #e6d7ee;

  box-shadow: 0 0 9px #b4a3c5;
}

#hb-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;

  border: 0;
  border-radius: 50%;
  background: #e6d7ee;
}

/* ============================================
   VIDEO NAVIGATION
   ============================================ */

.hb-video-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;

  padding: 12px;

  background: #19171f;
  border-top: 1px solid #4c4653;
}

.hb-now-playing {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.hb-now-playing span {
  color: #888194;
  font-size: 9px;
  letter-spacing: .12em;
}

.hb-now-playing strong {
  color: #d5c5db;
  font-size: 12px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hb-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hb-switcher button {
  width: 27px;
  height: 25px;

  border: 1px solid #65596c;
  background: #302b36;

  color: #e8d4ee;
  cursor: pointer;
}

.hb-switcher button:hover {
  background: #51435d;
}

.hb-switcher span {
  color: #aa9cae;
  font-size: 10px;
  white-space: nowrap;
}

.hb-player:fullscreen {
  width: 100%;
  height: 100%;
}

/* ============================================
   CHARACTER CARDS
   ============================================ */

.character-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 13px;
}

.character-card {
  min-width: 0;
  padding: 7px;

  background: #17161d;
  border: 1px solid #5a5260;

  transition:
    transform .25s,
    box-shadow .25s,
    border-color .25s;
}

.character-card:hover {
  transform: translateY(-5px) rotate(-1deg);
  border-color: #b6a2c8;
  box-shadow: 0 12px 20px rgba(0,0,0,.25);
}

.card-elvira:hover {
  transform: translateY(-5px) rotate(1deg);
}

.character-photo {
  position: relative;
  aspect-ratio: 1.16;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 25% 25%,
      #363040,
      #121216
    );
}

.card-elvira .character-photo {
  background:
    radial-gradient(
      circle at 80% 30%,
      #263449,
      #111116
    );
}

.character-photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 22%;
}

.character-photo-empty {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  padding: 10px;
  text-align: center;

  font-size: 10px;
  color: #90879c;
  letter-spacing: .12em;

  border: 1px dashed #4b4353;
}

.character-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  padding: 12px 5px 5px;
}

.character-card-label strong {
  font: clamp(22px,3vw,39px)/1 var(--display);
  letter-spacing: .02em;
}

.character-card-label span {
  color: #958ba3;
  font-size: 9px;
  text-align: right;
}

/* ============================================
   SHORT PARAGRAPH
   ============================================ */

.mini-story {
  padding: 7px 0 0;
}

.mini-story p {
  max-width: 620px;
  margin: 8px 0 0;

  color: #beb7c1;

  font: 12px/1.7 var(--mono);
}

/* ============================================
   DIVIDER
   ============================================ */


.divider-slot {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 70px;
  overflow: visible;
}

.divider-slot img {
  display: block;

  width: 100%;
  max-width: 100%;
  max-height: 150px;
  height: auto;

  object-fit: contain;
}


.divider-placeholder {
  color: #75697f;
  letter-spacing: .5em;
}

/* ============================================
   SPOTIFY
   ============================================ */

.playlist-panel {
  margin-top: auto;
  min-height: 0;
}



/* HASHBOTTLE SPOTIFY PLAYER */


.spotify-slot {
  width: 100%;
  height: 352px;
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 12px;
  background: transparent;
}

.spotify-slot iframe {
  display: block;
  width: 100%;
  height: 352px;
  min-height: 352px;
  border: 0;
  border-radius: 12px;
}


.spotify-empty {
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px;
  text-align: center;

  color: #a99db0;
}

.spotify-empty span {
  font-size: 30px;
}

.spotify-empty strong {
  font-size: 11px;
}

.spotify-empty small {
  color: #7f7888;
  font-size: 9px;
}

/* ============================================
   KENNY / ELVIRA PINTEREST-STYLE PAGES
   ============================================ */

.board-page {
  --board-accent: #9984ac;
}

.board-page.board-elvira {
  --board-accent: #8193b4;
}

.board-header {
  padding:
    clamp(25px,4.5vw,65px)
    clamp(16px,4vw,75px)
    22px;

  border-bottom: 1px solid #474152;

  background:
    radial-gradient(
      ellipse at 90% 0%,
      rgba(126,98,142,.17),
      transparent 55%
    );
}

.board-elvira .board-header {
  background:
    radial-gradient(
      ellipse at 90% 0%,
      rgba(91,117,156,.17),
      transparent 55%
    );
}

.board-header .eyebrow {
  color: var(--board-accent);
}

.board-header h1 {
  margin: 17px 0 12px;

  color: #e6e3e7;

  font: clamp(54px,10vw,116px)/.92 var(--display);
  letter-spacing: -.06em;
}

.board-header h1 em {
  font-style: normal;
  color: var(--board-accent);
}

.board-header p {
  margin: 0;
  max-width: 700px;

  color: #a8a3ad;
  font: 12px/1.6 var(--mono);
}

.board-heading-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;

  margin-top: 25px;

  color: #6e6977;

  font: 10px var(--mono);
  letter-spacing: .12em;
}

/* ============================================
   PINTEREST MASONRY LAYOUT
   ============================================ */

.pin-shell {
  max-width: 1700px;
  margin: 0 auto;

  padding: clamp(15px,2.2vw,35px);
}

.pin-board {
  column-count: 7;
  column-gap: 13px;
}

.pin {
  display: block;
  width: 100%;

  margin: 0 0 13px;
  padding: 5px;

  break-inside: avoid;
  overflow: hidden;

  background: #26242d;

  border: 1px solid #474250;
  border-radius: 15px;

  box-shadow:
    0 3px 9px rgba(0,0,0,.14);

  transition:
    transform .25s,
    filter .25s,
    box-shadow .25s;
}

.pin:hover {
  transform: translateY(-5px) scale(1.015);
  filter: brightness(1.08);

  box-shadow:
    0 11px 25px rgba(0,0,0,.36);
}

/* Keep every image's natural proportions */

.pin img {
  display: block;
  width: 100%;
  height: auto;

  border-radius: 11px;
}

/* Placeholder pins */

.pin-empty {
  width: 100%;
  aspect-ratio: var(--ratio,2/3);

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;

  border-radius: 11px;
  border: 1px dashed #5b5364;

  color: #827988;
  text-align: center;

  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 11px,
      #ffffff05 11px 12px
    ),
    #211f28;
}

.pin-empty span {
  color: #776986;
  font: 36px/1 var(--display);
}

.pin-empty small {
  font: 9px var(--mono);
  letter-spacing: .1em;
}

.board-end {
  margin: 15px auto 45px;

  color: #756d7e;
  text-align: center;

  font-size: 10px;
  letter-spacing: .1em;
}

/* ============================================
   PINTEREST RESPONSIVE COLUMNS
   ============================================ */

/* Desktop: 7 columns (default above 1200px) */

/* Tablet / iPad landscape: 5 columns */

@media (max-width: 1200px) and (orientation: landscape) {
  .pin-board {
    column-count: 5;
  }
}

/* Tablet / iPad portrait: 4 columns */

@media (max-width: 1200px) and (orientation: portrait) {
  .pin-board {
    column-count: 4;
  }
}

/* Phone portrait: 3 columns */

@media (max-width: 700px) and (orientation: portrait) {
  .pin-board {
    column-count: 3;
    column-gap: 7px;
  }

  .pin {
    margin-bottom: 7px;
    padding: 3px;
    border-radius: 10px;
  }

  .pin img,
  .pin-empty {
    border-radius: 8px;
  }
}

/* Phone landscape: 4 columns */

@media (max-width: 950px) and (max-height: 550px) and (orientation: landscape) {
  .pin-board {
    column-count: 4;
    column-gap: 8px;
  }

  .pin {
    margin-bottom: 8px;
    padding: 3px;
  }
}

/* ============================================
   MAIN PAGE RESPONSIVE
   ============================================ */

@media (min-width: 901px) and (max-height: 760px) {
  .ship-layout {
    padding: 14px;
    gap: 14px;
  }

  .video-panel,
  .right-panel {
    padding: 15px;
    gap: 11px;
  }

  .video-intro h1 {
    font-size: clamp(44px,5vw,75px);
  }

  .character-photo {
    aspect-ratio: 1.5;
  }
}

@media (max-width: 900px) {
  .ship-layout {
    grid-template-columns: 1fr;
    max-width: 740px;
  }

  .hb-player {
    height: clamp(350px,52vw,510px);
    flex: none;
  }

  .video-footnote {
    margin: 0;
  }

  .character-photo {
    aspect-ratio: 1.3;
  }
}

@media (max-width: 600px) {
  .topbar-center,
  .topbar-right {
    display: none;
  }

  .ship-layout {
    padding: 12px;
    gap: 12px;
  }

  .video-panel,
  .right-panel {
    padding: 14px;
  }

  .video-intro h1 {
    font-size: clamp(39px,11vw,68px);
  }

  .hb-player {
    height: 370px;
    min-height: 0;
  }

  .hb-controls {
    gap: 6px;
    padding: 7px;
  }

  .hb-controls button {
    min-width: 22px;
    flex-basis: 22px;
  }

  .hb-time {
    font-size: 9px;
  }

  .character-row {
    gap: 9px;
  }

  .character-card {
    padding: 4px;
  }

  .character-card-label {
    flex-wrap: wrap;
    gap: 5px;
  }

  .character-card-label strong {
    font-size: 25px;
  }

  .character-card-label span {
    font-size: 8px;
  }

  .bottom-bar span:nth-child(2) {
    display: none;
  }

  .board-header h1 {
    font-size: clamp(53px,13vw,80px);
  }

  .board-header p {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


@media (min-width: 901px) {
  .ship-layout {
    grid-template-columns:
      minmax(0, 0.95fr)
      minmax(0, 1.12fr);
  }
}


/* ==========================================
   HASHBOTTLE — SPOTIFY WIDTH FIX
   Render at desktop width, scale to fit
   ========================================== */

.spotify-slot {
  --spotify-scale: 1;
  --spotify-virtual-height: 352px;
  --spotify-left: 0px;

  position: relative;
  width: 100%;
  height: 352px !important;
  min-height: 352px !important;
  max-height: 352px !important;

  margin-top: 12px;
  padding: 0;
  overflow: hidden;

  border: 0;
  border-radius: 12px;
  background: #0b0c10;
}

.spotify-slot iframe {
  position: absolute;
  top: 0;
  left: var(--spotify-left);

  width: 720px !important;
  min-width: 720px !important;
  max-width: 720px !important;

  height: var(--spotify-virtual-height) !important;
  min-height: 0 !important;
  max-height: none !important;

  display: block;
  border: 0;
  border-radius: 12px;

  transform: scale(var(--spotify-scale));
  transform-origin: top left;
}


/* ==========================================
   HASHBOTTLE — SIDE DECORATIONS
   ========================================== */

.ship-home {
  position: relative;
}

/* LEFT + RIGHT IMAGE COLUMNS */

.hb-side-decor {
  position: absolute;
  top: 115px;

  width: calc((100vw - 1450px) / 2 - 25px);
  max-width: 220px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 33px;

  z-index: 1;
  pointer-events: none;
}

.hb-side-left {
  left: 12px;
}

.hb-side-right {
  right: 12px;
}

/* SIDE IMAGES */

.hb-side-decor img {
  display: block;

  width: 100%;
  height: auto;
  max-width: 100%;

  object-fit: contain;

  filter: drop-shadow(
    0 5px 8px rgba(0, 0, 0, 0.4)
  );
}

/* SUBTLE SCATTERED COLLAGE EFFECT */

.hb-side-left img:nth-child(even) {
  width: 85%;
  transform: rotate(-5deg);
}

.hb-side-right img:nth-child(odd) {
  width: 90%;
  transform: rotate(4deg);
}

/* HIDE SIDE DECORATIONS WHEN
   THERE ISN'T ENOUGH ROOM */

@media (max-width: 1649px) {
  .hb-side-decor {
    display: none;
  }
}


/* ==========================================
   HASHBOTTLE — TITLE DIVIDER + BLINKIES
   ========================================== */

.hb-title-decor {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  gap: 9px;

  padding: 3px 0 6px;
}

/* BARBED WIRE */

.hb-title-divider {
  display: block;

  width: 100%;
  height: auto;
  max-height: 55px;

  object-fit: contain;
}

/* BLINKIES ROW */

.hb-blinkies {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  width: 100%;
  gap: 6px;
}

.hb-blinkies img {
  display: block;

  width: auto;
  height: 24px;
  max-width: 100%;

  object-fit: contain;
}

/* SMALL SCREENS */

@media (max-width: 600px) {
  .hb-blinkies {
    gap: 5px;
  }

  .hb-blinkies img {
    height: 21px;
  }
}


/* KEEP ALL LEFT-SIDE DECORATIONS VISIBLE */

.hb-side-left {
  top: 115px;
  bottom: 65px;
  gap: 8px;
  justify-content: space-between;
}

.hb-side-left img {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 6%;
  object-fit: contain;
}
