/* =========================================================
   theDMR – movie.css
   Shared styles for reviews + homepage injected panels
   ========================================================= */

/* ----- Base ----- */
body {
  font-family: Trebuchet MS, Arial, sans-serif;
  font-size: clamp(1rem, 1.75vw, 1.75rem);
  line-height: 1.5;
  padding: 8px;
  background-color: rgb(18 6.3 0 / 0.5);
  color: white;
}

a:link,
a:active {
  color: gold;
  background-color: maroon;
  padding: 1px 2px;
  margin: 1px 0;
  text-align: left;
  text-decoration: none;
  display: inline-block;
  font-size: clamp(0.75rem, 1.5vw, 1.6rem);
}

a:hover {
  background-color: gold;
  color: maroon;
}

a:visited {
  background-color: gold;
  color: gray;
}

h1 {
  color: white;
  margin-left: 0;
  text-align: left;
  font-size: clamp(1.5rem, 3vw, 3rem);
}

h2 {
  color: gold;
  margin-left: 0;
  font-size: 1.5em;
}

h3 {
  font-family: "Rock Salt", sans-serif;
  color: gold;
  text-align: center;
  font-size: 3vmin;
  line-height: 80%;
}

h4 {
  font-family: "Rock Salt", sans-serif;
  color: white;
  text-shadow: 1px 1px 2px black, 0 0 6px red, 0 0 12px orange;
  text-align: center;
  font-size: min(3.5vw, 32px);
  line-height: 155%;
  margin-top: 10px;
  margin-bottom: 14px;
}

p {
  font-family: Trebuchet MS, Arial, sans-serif;
  color: gold;
  font-size: clamp(1rem, 3vw, 1.5rem);
  text-indent: 5%;
}

p2 {
  font-family: Trebuchet MS, Arial, sans-serif;
  color: white;
  font-size: clamp(1rem, 3vw, 1.5rem);
  text-indent: 0;
}

/* ----- Review layout helpers ----- */
.flex-container {
  display: flex;
  background-color: transparent;
}

.flex-container > div {
  background-color: transparent;
  color: white;
  margin: auto;
  text-align: left;
  line-height: 1.2;
  font-size: 2vw;
  align-self: flex-start;
}

.row {
  display: flex;
}

.col {
  display: table-cell;
  text-align: left;
  line-height: 90%;
  padding: 6px;
}

.column1 {
  float: left;
  width: 20%;
}

.column2 {
  float: right;
  width: 80%;
  padding-left: 10px;
  line-height: 150%;
  text-shadow: 1px 1px 2px black, 0 0 6px red, 0 0 12px orange;
}

/* ----- Ratings ----- */
.col-container.ratings {
  display: flex;
  width: 100%;
  max-width: 900px;
  margin: 1.2rem auto;
  background-color: #000;
  justify-content: center;
  align-items: center;
  padding: 12px 8px;
  box-sizing: border-box;
}

.col-container.ratings .col {
  flex-direction: column;
  text-align: center;
  padding: 4px;
  min-width: 0;
}

.col-container.ratings h2 {
  margin: 0 0 8px 0;
  text-align: center;
  font-size: clamp(1rem, 2.8vw, 2rem);
  color: orange;
}

.col-container.ratings img {
  display: block !important;
  width: clamp(140px, 28vw, 280px) !important;
  height: auto !important;
  margin: 0 auto !important;
}

/* ----- Poster grids (review pages) ----- */
.posters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0;
  font-size: 2vw;
  line-height: 0.95;
}

.posters img {
  width: 90%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* ----- Video embeds ----- */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 1em 0;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-link {
  margin-top: 0.25em;
  font-size: 0.95em;
}

/* =========================================================
   Homepage panels: left archive + right main content
   ========================================================= */

/* Left column: A–Z fixed; list scrolls under it */
.flex-item-left {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow: hidden;
}

#alpha-nav {
  flex: 0 0 auto;
  background: #2e1000;
  padding: 4px 0;
  z-index: 5;
}

#archive-content {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  max-height: none;
}

/* Right panel shell */
#main-content {
  overflow-y: auto;
  max-height: 80vh;
}

/* Right archives: same pattern as left (fixed A–Z + scrolling list) */
#archives-right-wrap {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  min-height: 0;
  height: 100%;
}

#alpha-nav-right {
  flex: 0 0 auto;
  background: #2e1000;
  padding: 6px 4px;
  border-bottom: 1px solid gold;
  z-index: 5;
}

#archive-content-right {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

/* Optional: match left/right A–Z link look */
#alpha-nav a,
#alpha-nav-right a {
  margin: 1px;
}

.archive-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  justify-content: center; /* or flex-start if you prefer left */
}

.search-input {
  flex: 1 1 260px;
  min-width: 160px;
  max-width: 500px;          /* widen by raising this */
  width: 50%;
  padding: 2px 6px;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-family: Trebuchet MS, Arial, sans-serif;
  color: #1a0a00;
  background-color: gold;
  border: 2px solid maroon;
  border-radius: 2px;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #5a3a00;
  opacity: 0.85;
}

.search-input:focus {
  outline: none;
  border-color: gold;
  box-shadow: 0 0 0 2px maroon;
}

.search-btn {
  padding: 2px 8px;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-family: Trebuchet MS, Arial, sans-serif;
  cursor: pointer;
  color: gold;
  background-color: maroon;
  border: 2px solid gold;
  border-radius: 2px;
}

.search-btn:hover {
  color: maroon;
  background-color: gold;
  border-color: maroon;
}
