@import url("https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;700&family=Source+Sans+Pro:wght@600;700;900&display=swap");

:root {
  --bg-start: #00002d;
  --bg-end: #111111;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(14, 16, 24, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --ink: #f8f6f2;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(197, 157, 95, 0.45);
  --accent: #c59d5f;
  --accent-strong: #8c543a;
  --warm: rgb(125, 75, 50);
  --focus: #ffe1a8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Cabin", Arial, Helvetica, sans-serif;
  background:
    linear-gradient(135deg, rgba(125, 75, 50, 0.78) 0%, rgba(0, 0, 45, 0.9) 48%, rgba(0, 0, 0, 0.94) 100%),
    url("background.jpg") center / cover fixed;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.sidebar {
  min-height: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(14, 16, 24, 0.92);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
}

h1 {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

h2 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

h3 {
  font-size: 18px;
}

.brand p,
.player-copy p,
#listCount,
.video-meta,
.video-date {
  color: var(--muted);
}

.search-box {
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.search-box input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(197, 157, 95, 0.45);
  outline-offset: 2px;
}

.quick-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.quick-actions button,
.day-list button,
.video-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.quick-actions button {
  min-height: 38px;
  font-weight: 700;
}

.quick-actions button:hover,
.day-list button:hover,
.video-row:hover {
  border-color: var(--line-strong);
  background: rgba(197, 157, 95, 0.12);
}

.day-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding-right: 6px;
  overflow-y: auto;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.day-list::-webkit-scrollbar,
.video-list::-webkit-scrollbar {
  width: 10px;
}

.day-list::-webkit-scrollbar-track,
.video-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.day-list::-webkit-scrollbar-thumb,
.video-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(14, 16, 24, 0.92);
  border-radius: 999px;
  background: var(--accent);
}

.day-list button {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  text-align: left;
}

.day-list button strong {
  min-width: 28px;
  border-radius: 999px;
  padding: 2px 8px;
  color: #111111;
  background: var(--accent);
  text-align: center;
  font-size: 12px;
}

.day-list button.active,
.video-row.active {
  border-color: var(--accent);
  background: rgba(197, 157, 95, 0.18);
}

.day-list button.active strong {
  background: #f2d8a8;
}

.content {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: minmax(0, auto) minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  overflow: hidden;
}

.player-panel,
.list-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.player-panel {
  min-height: 0;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

video {
  width: 100%;
  max-height: min(54vh, 620px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #111111;
}

.notice {
  border-left: 4px solid var(--focus);
  padding: 10px 12px;
  background: rgba(197, 157, 95, 0.14);
  color: #ffe1a8;
}

.list-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  overflow: hidden;
}

.search-overlay-active .list-panel {
  position: absolute;
  inset: 22px;
  z-index: 5;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(19, 20, 28, 0.98), rgba(14, 16, 24, 0.96)),
    rgba(14, 16, 24, 0.96);
}

.section-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.video-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding-right: 6px;
  overflow-y: auto;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.video-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-align: left;
}

.video-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.video-meta {
  white-space: nowrap;
  font-size: 13px;
}

.empty {
  padding: 24px 8px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .sidebar {
    height: 46vh;
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 14px;
    overflow: visible;
  }

  .search-overlay-active .content {
    min-height: 70vh;
  }

  .list-panel {
    max-height: 58vh;
  }

  .search-overlay-active .list-panel {
    inset: 14px;
    max-height: none;
  }

  .video-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  h2 {
    font-size: 22px;
  }
}
