/* ========================================
   MOVIES — EXPERIMENTAL TV LAYOUT
   ======================================== */

@font-face {
  font-family: "Movie";
  src: url("/fonts/movie.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.movie-screen {
  font-weight: bold;
  text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}


.movie-screen .book-notes {
  color: gray;
}

/* Static noise background, tiled */
.movie-layout {
  background: url("/img/alt-static-bg.gif") repeat;
  background-size: 600px 600px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

/* Back button — upper left, offset from edge */
.movie-back-btn {
  position: fixed;
    font-weight: bold;
  top: 1.5rem;
  left: 2rem;
  font-family: "Movie";
  font-size: 1rem;
  color: hotpink;
  text-decoration: none;
  z-index: 10;
  text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.movie-back-btn:hover {
  color: #fff;
  text-decoration: none;
}

/* TV wrapper — positions the TV image and screen content together */
.tv-wrapper {
  position: relative;
  width: 50vw;
  max-width: 700px;
}

/* The TV frame image sits behind everything */
.tv-frame {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}



/* The screen area — positioned absolutely over the TV's screen hole.
   These percentages match where the white screen area sits in tv.jpg:
   the screen is inset from the TV's outer edges. */
.movie-screen {
  position: absolute;
  top: 10%;
  left: 6%;
  width: 64.5%;
  height: 84%;
  background: url("/img/tvbg.jpg") center / cover no-repeat;
  color: #e8e0d4;
  padding: 1.8rem 1.5rem;
  overflow-y: auto;
  font-family: "Movie";
  line-height: 1.3;
  border-radius: 8px;
}

/* Typography inside the screen */
.movie-screen h1 {
  font-size: 1.7rem;
  color: gray;
}

.movie-screen h2 {
  font-size: 1rem;
  color: gray;
  margin-top: 0em;
  margin-bottom: 1.5em;
}

/* Stars */
.movie-screen .book-stars {
  color: gray;
  font-size: 1rem;
}

/* Author/date line */
.movie-screen .book-author {
  color: gray;
  font-size: 1rem;
}



/* Links inside the screen */
.movie-screen a {
  color: gray;
    text-decoration: underline;
      font-size: 1rem;
}

.movie-screen a:hover {
  color: #aac4d5;

}

/* Book list reuse — override colors for dark bg */
.movie-screen .book-list {
  list-style: none;
  padding: 0;
}

.movie-screen .book-entry {
  margin-bottom: 1em;
}

.movie-screen .book-title-line span {
  color: gray;
  font-size: 1.2rem;
}

.movie-screen .book-title-line a {
  font-size: 1.2rem;
}

/* Scrollbar styling for the screen */
.movie-screen::-webkit-scrollbar {
  width: 5px;
}

.movie-screen::-webkit-scrollbar-track {
  background: #222;
}

.movie-screen::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .tv-wrapper {
    width: 65vw;
  }
}

@media (max-width: 768px) {
  .tv-wrapper {
    width: 95vw;
  }

  .movie-screen {
    padding: 1.2rem 1rem;
    font-size: 0.85rem;
  }

  .movie-back-btn {
    top: 0.75rem;
    left: 1rem;
  }
}
        