@import url('./assets/fonts/fonts.css');

:root {
  color-scheme: dark;
  --background: #111113;
  --foreground: #f5f3f1;
  --muted: #aaa7ab;
  --pink: #f0008b;
  --line: #454348;
  --body-font: 'Manrope', sans-serif;
  --display-font: 'Barlow Condensed', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: var(--background); color: var(--foreground); font-family: var(--body-font); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .055; z-index: 4; 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='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.5' filter='url(%23n)'/%3E%3C/svg%3E"); }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--foreground); outline-offset: 5px; }
button { border: 0; }
button:disabled { cursor: wait; }
[hidden] { display: none !important; }

.site-shell { height: 100vh; height: 100dvh; padding: max(28px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) max(25px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 26px; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font: 700 31px/.95 var(--display-font); letter-spacing: -.035em; }
.release { width: min(1100px, 100%); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(38px, 4.2vw, 72px); align-items: center; justify-self: center; align-self: center; min-height: 0; }
.artwork-column { min-width: 0; display: flex; justify-content: center; }
.artwork { width: min(100%, calc(100dvh - 198px)); aspect-ratio: 1; position: relative; isolation: isolate; box-shadow: 0 0 64px -22px #f0008b68; border: 1px solid #f5f3f150; }
.artwork::before { content: ''; position: absolute; inset: -8%; background: radial-gradient(ellipse, #f0008b1c, transparent 70%); z-index: -1; pointer-events: none; }
.cover { display: block; width: 100%; height: 100%; object-fit: contain; }
.preview-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--foreground); color: var(--background); display: grid; place-items: center; box-shadow: 0 3px 28px #0003; transition: scale .22s ease, background .22s ease; }
.preview-button:hover { scale: 1.06; background: white; }
.preview-button svg { width: 30px; height: 30px; fill: currentColor; }
.play-icon { margin-left: 3px; }
.pause-icon { display: none; }
.preview-button[aria-pressed='true'] .play-icon { display: none; }
.preview-button[aria-pressed='true'] .pause-icon { display: block; }
.preview-label { position: absolute; top: calc(50% + 57px); left: 50%; transform: translateX(-50%); padding: 8px 13px; background: #111113ce; border: 1px solid #ffffff12; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .16em; white-space: nowrap; }
.loading-ring { display: none; position: absolute; width: 32px; height: 32px; border: 2px solid #11111340; border-top-color: #111113; border-radius: 50%; animation: spin .8s linear infinite; }
.preview-button.is-loading svg { visibility: hidden; }
.preview-button.is-loading .loading-ring { display: block; }
.playback { position: absolute; bottom: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 12px; background: #111113df; padding: 11px 13px; border-radius: 3px; font-size: 10px; font-variant-numeric: tabular-nums; }
.playback input { width: 100%; min-width: 0; height: 18px; accent-color: var(--pink); cursor: pointer; }
.release-info { min-width: 0; }
.artist { margin: 0 0 13px; font-size: 14px; font-weight: 700; letter-spacing: .36em; }
h1 { font: 700 clamp(76px, 6.7vw, 106px)/.87 var(--display-font); letter-spacing: -.025em; margin: 0 0 17px -3px; }
h1 span { display: block; }
.version { max-width: 390px; margin: 0; font-size: 12px; line-height: 1.65; text-transform: uppercase; font-weight: 700; letter-spacing: .19em; color: #dedbe0; text-wrap: balance; }
.release-links { display: grid; gap: 9px; margin-top: 28px; }
.service-link { min-height: 61px; display: grid; grid-template-columns: 35px minmax(0, 1fr) 22px; gap: 18px; align-items: center; padding: 12px 19px; border: 1px solid #87838b; border-radius: 4px; background: #ffffff02; transition: border-color .18s, background .18s, transform .18s; }
.service-link:hover { background: #ffffff09; border-color: var(--foreground); transform: translateY(-2px); }
.service-link span { font: 600 21px/1.1 var(--display-font); letter-spacing: .04em; white-space: nowrap; }
.service-link[data-link='soundcloud'] { --service-color: #ff5500; }
.service-link[data-link='download'] { --service-color: var(--pink); }
.service-link[data-link='youtube'] { --service-color: #ff0000; }
.service-link:is(:hover, :focus-visible) { background: var(--service-color); border-color: var(--service-color); }
.service-icon { display: block; width: 35px; height: 30px; object-fit: contain; }
.download-icon { stroke: currentColor; stroke-width: 2; }
.arrow { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; }
.follow { margin-top: 27px; padding-top: 14px; display: flex; gap: 18px; justify-content: space-between; align-items: center; }
.follow > span { color: var(--muted); font: 700 11px/1.4 var(--body-font); letter-spacing: .15em; }
.social-links { display: flex; align-items: center; gap: 15px; }
.social-links a { width: 32px; height: 35px; display: grid; place-items: center; border-radius: 3px; transition: transform .18s; }
.social-links a:is(:hover, :focus-visible) { transform: translateY(-2px); }
.social-links img { grid-area: 1 / 1; object-fit: contain; transition: opacity .18s; }
.social-links .social-icon-color { opacity: 0; }
.social-links a:is(:hover, :focus-visible) img:not(.social-icon-color) { opacity: 0; }
.social-links a:is(:hover, :focus-visible) .social-icon-color { opacity: 1; }
.site-footer { min-height: 20px; color: #aaa7ab; gap: 18px; }
.site-footer small { font-size: 10px; letter-spacing: .15em; white-space: nowrap; }
.footer-links { display: flex; gap: 28px; }
.footer-links button { padding: 6px 0; background: none; font-size: 11px; transition: color .18s; }
.footer-links button:hover { color: var(--foreground); }

.consent-banner { position: fixed; z-index: 10; width: 354px; max-width: calc(100% - 32px); bottom: 65px; left: 25px; background: #202023; border: 1px solid #47434a; border-radius: 6px; padding: 20px; box-shadow: 0 12px 40px #0005; }
.consent-copy strong { font-size: 14px; }
.consent-copy p { color: #bab7bd; font-size: 11px; line-height: 1.7; margin: 8px 0 16px; }
.consent-actions { display: flex; gap: 8px; align-items: center; }
.consent-actions > .small-button { flex: 1; }
.small-button { min-height: 38px; padding: 9px 15px; border-radius: 3px; border: 1px solid #68626c; background: #ffffff06; font-size: 11px; font-weight: 700; }
.small-button:hover { background: #ffffff12; border-color: #bab7bd; }
.button-pink { background: var(--pink); border-color: var(--pink); }
.button-pink:hover { background: #ff119c; border-color: #ff119c; }
dialog { width: min(480px, calc(100% - 32px)); margin: auto; padding: 26px; border: 1px solid #5b535f; border-radius: 6px; color: var(--foreground); background: #1b191e; box-shadow: 0 24px 100px #0008; max-height: calc(100dvh - 32px); overflow: hidden; }
dialog::backdrop { background: #0c090ec9; backdrop-filter: blur(8px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.dialog-header h2 { font: 600 30px/1 var(--display-font); margin: 0; }
.close-dialog { display: grid; place-items: center; background: none; padding: 6px; margin-right: -6px; }
.close-dialog svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; }
.dialog-intro { color: #e4dce8; font-size: 12px; margin: 16px 0 20px; }
.cookie-row { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); }
.cookie-row strong { font-size: 12px; }
.cookie-row p { font-size: 11px; line-height: 1.65; color: #b7b1bb; margin: 6px 0 0; max-width: 290px; }
.always-on { font-size: 10px; white-space: nowrap; color: #b7b1bb; }
.marketing-row { cursor: pointer; position: relative; }
.marketing-row input { position: absolute; width: 40px; height: 24px; right: 0; opacity: 0; }
.switch { flex: 0 0 40px; height: 23px; border-radius: 20px; background: #625b68; position: relative; transition: background .2s; }
.switch::before { content: ''; position: absolute; width: 17px; height: 17px; border-radius: 50%; top: 3px; left: 3px; background: white; transition: transform .2s; }
.marketing-row input:checked + .switch { background: var(--pink); }
.marketing-row input:checked + .switch::before { transform: translateX(17px); }
.marketing-row input:focus-visible + .switch { outline: 2px solid white; outline-offset: 4px; }
.dialog-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
#privacy-content > p:not(.dialog-intro) { color: #bab3c0; font-size: 11px; line-height: 1.75; margin: 12px 0; }
.privacy-settings { margin-top: 8px; }
.toast { position: fixed; z-index: 30; bottom: 80px; left: 50%; transform: translate(-50%, 12px); width: max-content; max-width: calc(100vw - 32px); text-align: center; background: #f5f3f1; color: #111113; font-size: 12px; font-weight: 600; padding: 13px 21px; border-radius: 4px; box-shadow: 0 5px 28px #0004; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-note { position: fixed; bottom: 55px; left: 16px; right: 16px; text-align: center; font-size: 12px; padding: 12px; background: #242027; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) { .artwork-column { animation: enter .65s both; } .release-info { animation: enter .65s .1s both; } }

/* The artwork sets the desktop row height; the complete release panel fills it. */
@media (min-width: 1000px) and (min-height: 541px) {
  .release-info { contain: size; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
  .version { max-width: none; white-space: nowrap; text-wrap: nowrap; font-size: clamp(12px, 1.2vw, 16px); letter-spacing: .04em; }
  .release-links, .follow { margin-top: 0; }
}

@media (max-height: 740px) and (min-width: 761px) {
  .site-shell { padding-top: 20px; padding-bottom: 18px; gap: 18px; }
  .release { max-width: 960px; gap: 50px; }
  .artwork { width: min(100%, calc(100dvh - 145px)); }
  h1 { font-size: 82px; }
  .artist { font-size: 12px; margin-bottom: 10px; }
  .version { font-size: clamp(10px, 1.2vw, 14px); }
  .release-links { margin-top: 22px; }
  .service-link { min-height: 52px; padding: 9px 16px; }
  .service-link span { font-size: 19px; }
  .follow { margin-top: 18px; padding-top: 9px; }
}

@media (max-width: 760px) and (orientation: portrait) {
  .site-shell { padding: max(17px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(13px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); gap: 14px; }
  .wordmark { font-size: 24px; }
  .release { width: min(380px, 100%); grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .artwork { width: min(100%, 32dvh); }
  .preview-button { width: 58px; height: 58px; }
  .preview-button svg { width: 25px; height: 25px; }
  .preview-label { top: calc(50% + 43px); padding: 6px 9px; font-size: 8px; }
  .track-heading { text-align: center; }
  .artist { font-size: 10px; margin-bottom: 8px; letter-spacing: .3em; }
  h1 { font-size: clamp(33.6px, 9.84vw, 51.2px); line-height: .95; margin: 0 0 9px; letter-spacing: -.02em; white-space: nowrap; text-align: center; }
  h1 span { display: inline; }
  h1 span + span::before { content: ' '; }
  .version { font-size: clamp(8.5px, 2.55vw, 10px); line-height: 1.7; letter-spacing: .04em; margin-inline: auto; max-width: none; white-space: nowrap; }
  .release-links { margin-top: 19px; gap: 8px; }
  .service-link { min-height: 51px; grid-template-columns: 29px minmax(0, 1fr) 18px; gap: 16px; padding: 10px 15px; }
  .service-link span { font-size: 18px; letter-spacing: .025em; }
  .service-icon { width: 29px; height: 25px; }
  .arrow { width: 18px; height: 18px; }
  .follow { margin-top: 17px; padding-top: 8px; }
  .follow > span { font-size: 9px; letter-spacing: .1em; }
  .social-links { gap: 10px; }
  .social-links img { max-width: 24px; max-height: 19px; }
  .site-footer { gap: 10px; }
  .site-footer small { font-size: 8px; letter-spacing: .05em; }
  .footer-links { gap: 15px; }
  .footer-links button { font-size: 9px; }
  .consent-banner { left: 16px; bottom: 55px; padding: 16px; width: calc(100% - 32px); }
  .playback { left: 7px; right: 7px; bottom: 7px; padding: 6px 9px; gap: 7px; font-size: 9px; }
  .toast { bottom: 62px; }
}

@media (max-width: 760px) and (orientation: portrait) and (max-height: 700px) {
  .site-shell { gap: 9px; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .wordmark { font-size: 21px; }
  .release { gap: 12px; }
  .artwork { width: min(100%, 29dvh); }
  h1 { font-size: 33.6px; margin-bottom: 7px; }
  .artist { margin-bottom: 6px; font-size: 9px; }
  .version { font-size: clamp(8.5px, 2.55vw, 10px); max-width: none; }
  .release-links { margin-top: 12px; gap: 6px; }
  .service-link { min-height: 45px; padding-top: 8px; padding-bottom: 8px; }
  .service-link span { font-size: 17px; }
  .follow { margin-top: 11px; padding-top: 4px; }
}

@media (orientation: landscape) and (max-height: 540px) {
  .site-shell { padding: max(12px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); gap: 8px; }
  .wordmark { font-size: 22px; }
  .release { max-width: 790px; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 48px); }
  .artwork { width: min(100%, calc(100dvh - 98px)); }
  .preview-button { width: 54px; height: 54px; }
  .preview-button svg { width: 24px; height: 24px; }
  .preview-label { top: calc(50% + 40px); font-size: 7px; padding: 5px 8px; }
  .artist { font-size: 9px; margin-bottom: 6px; }
  h1 { font-size: 46px; margin-bottom: 8px; line-height: .95; white-space: nowrap; }
  h1 span { display: inline; }
  h1 span + span::before { content: ' '; }
  .version { font-size: 8px; line-height: 1.5; letter-spacing: .09em; }
  .release-links { margin-top: 14px; gap: 6px; }
  .service-link { min-height: 42px; padding: 6px 12px; grid-template-columns: 26px minmax(0, 1fr) 16px; gap: 12px; }
  .service-link span { font-size: 17px; letter-spacing: .015em; }
  .service-icon { width: 26px; height: 24px; }
  .arrow { width: 16px; height: 16px; }
  .follow { margin-top: 10px; padding-top: 3px; }
  .follow > span { font-size: 8px; }
  .social-links { gap: 7px; }
  .social-links a { width: 26px; height: 28px; }
  .social-links img { max-width: 22px; max-height: 17px; }
  .site-footer small { font-size: 8px; }
  .footer-links button { font-size: 9px; padding: 3px 0; }
  .consent-banner { bottom: 39px; left: 15px; padding: 13px; width: 310px; }
  .consent-copy p { margin-bottom: 10px; }
  dialog { width: min(600px, calc(100% - 32px)); padding: 16px 22px; }
  .dialog-header h2 { font-size: 25px; }
  .dialog-intro { margin: 8px 0 10px; font-size: 11px; }
  .cookie-row { padding: 10px 0; }
  .cookie-row p { max-width: 400px; }
  .dialog-actions { margin-top: 7px; }
  #privacy-content > p:not(.dialog-intro) { font-size: 10px; line-height: 1.6; margin: 8px 0; }
  .privacy-settings { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (orientation: landscape) and (max-height: 360px) {
  .artist { margin-bottom: 4px; }
  h1 { font-size: 38px; margin-bottom: 6px; }
  .release-links { margin-top: 10px; }
  .service-link { min-height: 35px; padding-block: 4px; }
  .follow { margin-top: 6px; }
}

@media (min-width: 1000px) and (min-height: 541px) and (max-height: 740px) {
  .release-links, .follow { margin-top: 0; }
}

@media (min-width: 1000px) and (min-height: 541px) and (max-height: 600px) {
  h1 { font-size: 66px; }
  .release-links { gap: 7px; }
}

/* The domain root is a separate artist placeholder, outside release layouts. */
body.homepage { background: #000; }
body.homepage::before { display: none; }
.profile-home { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; }
.profile-home h1 { margin: 0; font: 700 14px/1.5 var(--body-font); letter-spacing: .2em; text-align: center; }
.profile-home .social-links { gap: 18px; }
.profile-home .social-links a { width: 44px; height: 44px; }
.profile-home .social-links img { max-width: none; max-height: none; }
.homepage .toast { bottom: 24px; }

@media (max-width: 999px) and (orientation: landscape) and (max-height: 540px) {
  .release h1 { font-size: 36.8px; margin-inline: 0; text-align: center; }
}

@media (max-width: 999px) and (orientation: landscape) and (max-height: 360px) {
  .release h1 { font-size: 30.4px; }
}
