:root {
color-scheme: light dark;

--background: #f0eee5;
--surface: rgba(255, 255, 255, 0.82);
--surface-hover: rgba(255, 255, 255, 0.96);
--border: rgba(38, 65, 47, 0.16);

--foreground: #172019;
--muted: #667168;

--accent: #286044;
--accent-hover: #347354;
--accent-text: #f4f2e8;

--botanical: rgba(42, 93, 65, 0.075);
--botanical-strong: rgba(42, 93, 65, 0.11);


}

@media (prefers-color-scheme: dark) {

:root {
    --background: #101712;
    --surface: rgba(24, 32, 27, 0.90);
    --surface-hover: rgba(32, 43, 35, 0.96);
    --border: rgba(188, 211, 191, 0.14);

    --foreground: #eeeade;
    --muted: #9ca69e;

    --accent: #3d7958;
    --accent-hover: #4b8b66;
    --accent-text: #f3f1e7;

    --botanical: rgba(100, 157, 116, 0.075);
    --botanical-strong: rgba(100, 157, 116, 0.11);
}


}

/* --------------------------------
Reset
-------------------------------- */

{
box-sizing: border-box;
}

html,
body {
margin: 0;
padding: 0;

min-height: 100%;

color: var(--foreground);

font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;


}

/* --------------------------------
Page background
-------------------------------- */

body {
min-height: 100vh;
min-height: 100dvh;

background-color: #071a13;
background-image: url("jungle-bg.svg");
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;


}

button {
font-family: inherit;
}

/* --------------------------------
Main container
-------------------------------- */

main {
width: 100%;
max-width: 1200px;

margin: 0 auto;

padding:
    max(24px, env(safe-area-inset-top))
    20px
    max(40px, env(safe-area-inset-bottom));


}

/* --------------------------------
Header
-------------------------------- */

header {
text-align: center;

padding: 16px 0 28px;


}

h1 {
margin: 0;

color: var(--foreground);

font-family:
    "Shrikhand",
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    Baskerville,
    Georgia,
    serif;

font-size: clamp(32px, 6vw, 52px);
line-height: 0.98;

font-weight: 700;

font-style: italic;


/* letter-spacing: -0.045em;*/
}

.subtitle {
margin: 10px 0 0;

color: var(--muted);

font-size: 14px;

letter-spacing: 0.02em;


}

/* --------------------------------
Player + choices
-------------------------------- */

.main-grid {
display: grid;

grid-template-columns:
    minmax(0, 2fr)
    minmax(300px, 1fr);

gap: 24px;

align-items: start;


}

.player-column,
.choices-column {
min-width: 0;
}

/* --------------------------------
Video
-------------------------------- */

.player-container {
width: 100%;

aspect-ratio: 16 / 9;

overflow: hidden;

background: #000;

border-radius: 9px;

box-shadow:
    0 14px 45px rgba(0, 0, 0, 0.28);


}

.player-container iframe {
display: block;

width: 100%;
height: 100%;

border: 0;


}

/* --------------------------------
Current session
-------------------------------- */

.info {
padding: 18px 4px 0;
}

#title {
margin: 0;

font-size: 20px;
line-height: 1.3;

font-weight: 600;


}

#date {
margin: 7px 0 0;

color: var(--muted);

font-size: 14px;


}

/* --------------------------------
Buttons
-------------------------------- */

.random-button,
.secondary-button {
border-radius: 999px;

cursor: pointer;

transition:
    background-color 0.15s ease,
    transform 0.1s ease,
    border-color 0.15s ease;

-webkit-tap-highlight-color: transparent;


}

.random-button {
display: block;

width: 100%;
max-width: 360px;

margin: 24px auto 10px;

padding: 14px 24px;

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

background: var(--accent);
color: var(--accent-text);

font-size: 16px;
font-weight: 700;


}

.random-button:hover {
background: var(--accent-hover);
border-color: var(--accent-hover);
}

.secondary-button {
display: block;

width: 100%;

margin: 12px 0 0;

padding: 11px 18px;

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

background: transparent;
color: var(--accent);

font-size: 14px;
font-weight: 700;


}

.secondary-button:hover {
background: var(--accent);
color: var(--accent-text);
}

.random-button:active,
.secondary-button:active {
transform: scale(0.98);
}

/* --------------------------------
Status
-------------------------------- */

.status {
min-height: 18px;

margin: 8px 0 0;

text-align: center;

color: var(--muted);

font-size: 13px;


}

/* --------------------------------
Section headings
-------------------------------- */

.choices h3,
.history h3 {
margin: 0 0 14px;

color: var(--muted);

font-size: 13px;
font-weight: 700;

text-transform: uppercase;

letter-spacing: 0.11em;


}

/* --------------------------------
Choices
-------------------------------- */

.choices {
padding: 2px 0 0;
}

#choicesList {
display: flex;

flex-direction: column;

gap: 8px;


}

/* --------------------------------
Cards
-------------------------------- */

.choice-card,
.recent-card {
display: flex;

width: 100%;
max-width: none;

margin: 0;
padding: 8px;

border: 1px solid transparent;
border-radius: 9px;

background: var(--surface);
color: var(--foreground);

text-align: left;

cursor: pointer;

transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;

-webkit-tap-highlight-color: transparent;


}

.choice-card {
flex-direction: row;

align-items: center;


}

.choice-card:hover,
.recent-card:hover {
background: var(--surface-hover);

border-color: var(--border);


}

.choice-card:active,
.recent-card:active {
transform: scale(0.99);
}

/* --------------------------------
Thumbnails
-------------------------------- */

.choice-card img {
display: block;

flex: 0 0 auto;

width: 110px;
height: 62px;

object-fit: cover;

border-radius: 5px;

background: #252525;


}

.card-text {
min-width: 0;

padding: 0 9px;


}

.card-title {
overflow: hidden;

display: -webkit-box;

-webkit-box-orient: vertical;
-webkit-line-clamp: 2;

font-size: 14px;
line-height: 1.3;

font-weight: 500;


}

.card-meta {
margin-top: 5px;

color: var(--muted);

font-size: 12px;
line-height: 1.2;


}

/* --------------------------------
Recent listens
-------------------------------- */

.history {
margin-top: 40px;

padding-top: 28px;

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


}

#recentList {
display: grid;

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

gap: 10px;


}

.recent-card {
flex-direction: column;

align-items: stretch;


}

.recent-card img {
display: block;

width: 100%;
height: auto;

aspect-ratio: 16 / 9;

object-fit: cover;

border-radius: 5px;

background: #252525;


}

.recent-card .card-text {
padding: 9px 3px 3px;
}

.empty-history {
margin: 0;

color: var(--muted);

font-size: 14px;


}

/* --------------------------------
Tablet
-------------------------------- */

@media (max-width: 900px) {

.main-grid {
    grid-template-columns: 1fr;
}


.choices-column {
    margin-top: 18px;
}


#choicesList {
    display: grid;

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

    gap: 8px;
}


#recentList {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


}

/* --------------------------------
Phone
-------------------------------- */

@media (max-width: 600px) {

main {
    padding-left: 12px;
    padding-right: 12px;
}


header {
    padding-top: 10px;
    padding-bottom: 20px;
}


h1 {
    font-size: 34px;
}


.subtitle {
    font-size: 13px;
}


.player-container {
    border-radius: 6px;
}


#choicesList {
    display: flex;

    flex-direction: column;
}


.choice-card img {
    width: 105px;
    height: 59px;
}


.card-title {
    font-size: 13px;
}


#recentList {
    grid-template-columns: 1fr;

    gap: 6px;
}


.recent-card {
    flex-direction: row;

    align-items: center;
}


.recent-card img {
    flex: 0 0 auto;

    width: 105px;
    height: 59px;

    aspect-ratio: auto;
}


.recent-card .card-text {
    padding: 0 9px;
}


.history {
    margin-top: 32px;

    padding-top: 24px;
}


}

/* --------------------------------
Very small phones
-------------------------------- */

@media (max-width: 360px) {

h1 {
    font-size: 30px;
}


.choice-card img,
.recent-card img {
    width: 90px;
    height: 51px;
}


.card-text {
    padding-left: 7px;
    padding-right: 5px;
}


}
