@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Source+Serif+4:wght@300;400;600&display=swap');

:root {
  --bg: #0f1114;
  --panel: #171a1f;
  --text: #e6e6e6;
  --muted: #9a9a9a;
  --accent: #b13a3a;
  --accent-soft: #7f2a2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #e05a5a;
}

header {
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid #222;
}

header h1 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

header p {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

main {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.book-card {
  background: var(--panel);
  padding: 2rem;
  border: 1px solid #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.book-card h2 {
  font-family: 'Cinzel', serif;
  margin-top: 0;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
}

.button:hover {
  background: var(--accent);
  color: #fff;
}

footer {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  border-top: 1px solid #222;
}

/* --- Cover strip --- */
.cover-strip {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem auto 4rem;
  flex-wrap: wrap;
}

.cover-strip a {
  display: block;
  max-width: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-strip img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #222;
  background: #000;
}

.cover-strip a:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* --- Trailer section --- */
.trailer-section {
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 0 1rem;
}

.trailer-section h2 {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

/* For SELF-HOSTED <video class="trailer-video"> ... */
.trailer-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  border: 1px solid #222;
  background: #000;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* For YOUTUBE/VIMEO <div class="trailer-wrapper"><iframe>... */
.trailer-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #222;
  background: #000;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.trailer-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- New Release badge --- */
.featured-book {
  position: relative;
}

.new-release {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 0.15rem 0.5rem;
  border: 1px solid #222;
}

.shorts-embed {
  width: min(380px, 100vw);   /* half of the big monster */
  aspect-ratio: 9 / 16;      /* vertical / up-and-down */
  margin: 3rem auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0,0,0,0.45);
  background: #000;
}

.shorts-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


.shorts-embed video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}