:root {
  color-scheme: light;
  font: 16px Verdana, Geneva, sans-serif;
  color: #38281c;
  background: #e8dfcb;
  --paper: #fffaee;
  --edge: #c9b394;
  --ink: #452511;
  --muted: #68523d;
  --rust: #834020;
}

* { box-sizing: border-box; }
body { margin: 0; background: repeating-linear-gradient(90deg, #0000 0 5px, #62401c09 5px 6px); }
a { color: #732f1b; text-underline-offset: .15em; }
a:hover { color: #4b1f0e; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #ad581c; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap, .masthead-inner { width: min(1110px, calc(100% - 2rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead {
  background: linear-gradient(#fff5dc, #edcea1);
  border-top: 6px solid #60301c;
  border-bottom: 4px solid #713619;
}
.masthead-inner { min-height: 113px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; gap: .75rem; align-items: center; color: var(--ink); text-decoration: none; font: bold clamp(1.95rem, 5vw, 2.85rem)/1 Georgia, serif; }
.brand small { display: block; margin-top: .45rem; color: var(--muted); font: .875rem Verdana, sans-serif; }
.reel {
  display: grid; place-items: center; width: 50px; height: 42px; flex: none;
  border: 1px solid #5b2b15; border-radius: 6px; background: linear-gradient(#b86437, #7a331b); color: #fff3d4;
  font: 1.1rem Georgia, serif; box-shadow: inset 0 0 0 3px #ffffff38, 0 2px 3px #5c371432;
}
.search { display: flex; gap: .35rem; min-width: 0; }
.search input { width: clamp(9rem, 22vw, 16rem); padding: .55rem .65rem; background: #fffdf6; border: 1px solid #a68b66; border-radius: 3px; }
.search button, .tabs a {
  border: 1px solid #9a5c35; border-radius: 4px 4px 0 0; background: linear-gradient(#fff4d8, #eac28e);
  color: #4f2c1a; padding: .55rem .75rem; font-weight: bold; cursor: pointer;
}
.search button { border-radius: 3px; font-size: .875rem; }
.search button:hover, .tabs a:hover { background: #fff3d4; color: #4f2c1a; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; }
.tabs a { display: block; font-size: .875rem; text-decoration: none; }
.tabs a[aria-current] { color: #fff8e7; background: #713619; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 215px; gap: 1rem; padding: 1rem 0 1.5rem; }
.section-bar, .sidebar-box h2 { margin: 0; padding: .65rem .85rem; border: 1px solid #a97849; background: linear-gradient(#fce9c7, #ecc591); color: var(--ink); }
.section-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; }
.section-bar h1, .section-bar h2, .sidebar-box h2 { font: bold 1.25rem/1.2 Georgia, serif; }
.section-bar h1, .section-bar h2 { margin: 0; }
.section-bar a, .section-bar span { font-size: .875rem; }
.featured, .cards, .empty { border: 1px solid var(--edge); border-top: 0; background: var(--paper); padding: .8rem; }
.featured { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr); gap: .65rem; }
.featured .card:first-child { grid-row: span 2; }
.featured .card:first-child h3 { font-size: 1.45rem; }
.featured .card:not(:first-child) p { display: none; }
.catalog-bar { margin-top: 1rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.card { min-width: 0; border: 1px solid #ccb091; background: #fffdf6; }
.video { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.video:hover h3 { text-decoration: underline; }
.thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: repeating-linear-gradient(135deg, #624735 0 7px, #5f4230 7px 14px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; color: transparent; }
.play { position: absolute; left: .55rem; bottom: .45rem; display: grid; place-items: center; width: 34px; height: 27px; background: #28170fe8; color: #fff8e9; border: 1px solid #fff2d6aa; border-radius: 3px; font-size: .88rem; }
.caption { padding: .55rem .6rem .65rem; }
.caption h3 { margin: 0; color: #732f1b; font: bold 1.12rem/1.16 Georgia, serif; }
.caption p { margin: .4rem 0 .45rem; color: #483426; font: 1rem/1.38 Georgia, serif; }
.caption small { color: var(--muted); font-size: .875rem; }
.empty { margin: 0; }

.sidebar-box { margin-bottom: .85rem; background: #fcf4e3; border: 1px solid var(--edge); }
.sidebar-box h2 { border-width: 0 0 1px; }
.sidebar-box ul { list-style: none; margin: 0; padding: .1rem .7rem; }
.sidebar-box li + li { border-top: 1px solid #e3d1b3; }
.sidebar-box li a { display: flex; justify-content: space-between; gap: .4rem; padding: .55rem .1rem; font-size: .875rem; }
.sidebar-box li span { color: var(--muted); }
.about p { margin: .65rem .8rem; font: 1rem/1.45 Georgia, serif; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .65rem; padding: .9rem 0 1.4rem; border-top: 1px solid #a68763; color: var(--muted); font-size: .875rem; }
.footer a + a { margin-left: .8rem; }

@media (max-width: 850px) {
  .layout { grid-template-columns: 1fr; }
  aside { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
}
@media (max-width: 580px) {
  .wrap, .masthead-inner { width: calc(100% - 1rem); }
  .masthead-inner { align-items: flex-start; flex-direction: column; padding: .85rem 0; gap: .85rem; }
  .search { width: 100%; }
  .search input { width: 100%; min-width: 0; }
  .tabs a { padding: .45rem .55rem; }
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured .card:first-child { grid-column: span 2; grid-row: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .featured { padding: .5rem; gap: .5rem; }
  aside { grid-template-columns: 1fr; gap: 0; }
}

.caption h3 { overflow-wrap: anywhere; }
.caption p[hidden] + small { display: block; margin-top: .35rem; }
.duration {
  position: absolute;
  right: .45rem;
  bottom: .45rem;
  padding: .2rem .35rem;
  border-radius: 2px;
  background: #28170fe8;
  color: #fff8e9;
  font-size: .8rem;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  padding: .8rem;
  background: var(--paper);
  border: 1px solid var(--edge);
  border-top: 0;
  font-size: .875rem;
}
.pagination button {
  padding: .4rem .65rem;
  border: 1px solid #9a5c35;
  border-radius: 3px;
  background: linear-gradient(#fff4d8, #eac28e);
  color: #4f2c1a;
  cursor: pointer;
}
.pagination button:disabled {
  opacity: .6;
  cursor: default;
}
