@font-face {
  font-family: "seinfeld";
  src: url("Seinfeld Font-Oblique.otf");
  font-display: swap;
}

/* FORCE FONT GLOBALLY */
* {
  font-family: "seinfeld", serif !important;
}

/* =========================
   RESET
========================= */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "seinfeld";
    background-image: url("https://media.wifi4seinfeld.com/bgpic.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================
   MAIN VIDEO PLAYER
========================= */
.vid {
    margin: 20px;
    width: 65%;
    max-width: 900px;

    aspect-ratio: 16 / 9;

    background: #5c4f62;
    border: 15px solid #706376;
    box-shadow: 0 0 50px #000;

    overflow: hidden;
}

.vid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   BACK BUTTON
========================= */
#back {
    position: absolute;
    right: 55px;
    bottom: 240px;

    width: 30%;
    max-width: 450px;
    height: 50px;

    font-size: 18px;
    font-weight: bold;

    color: #e4021c;
    background: linear-gradient(#fcd81a, #c1a416);

    border: 5px solid #c1a416;
    border-radius: 30px;

    cursor: pointer;
}

/* =========================
   EPISODE SCROLLER
========================= */
.episodes {
    margin: 20px;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    overflow-x: auto;
    overflow-y: hidden;

    height: 170px;

    background: #282026;
    border: 15px solid #706376;
    box-shadow: 0 0 40px #000;

    gap: 12px;
    padding: 10px;
}

/* =========================
   EPISODE TILE
========================= */
.ep {
    flex: 0 0 auto;

    width: 260px;
    height: 140px;

    background: #000;

    border-top: 5px solid #4b434f;

    overflow: hidden;

    cursor: pointer;

    position: relative;

    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ep:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

/* =========================
   EPISODE VIDEO
========================= */
.ep video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* =========================
   EPISODE TITLE (NEW)
   NORTH-WEST STYLE
========================= */
.ep-title {
    position: absolute;
    top: 6px;
    left: 6px;

    font-family: "seinfeld";
    font-size: 14px;

    color: #e4021c;

    background: linear-gradient(#fcd81a, #c1a416);
    border: 4px solid #c1a416;
    border-radius: 14px;

    padding: 4px 8px;

    box-shadow: 0 0 10px #000;

    pointer-events: none;

    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar {
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #514756;
}

::-webkit-scrollbar-thumb {
    background: #b30000;
    border-radius: 10px;
}

/* =========================
   COMMENT BOX
========================= */
.comment-box {
  position: fixed;
  top: 20px;
  right: 50px;

  inline-size: min(30vw, 555px);
  block-size: 55vh;

  display: flex;
  flex-direction: column;

  padding: 10px;

  background-color: #5c4f62;
  border: 10px solid #706376;
  box-shadow: 0 0 120px #000;

  z-index: 999;
}

/* =========================
   INPUT AREA
========================= */
.comment-create {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-create input,
.comment-create textarea {
  inline-size: 100%;
  padding: 10px;

  background: #3f3744;
  border: none;
  outline: none;

  color: white;
  font-family: "seinfeld";
  font-size: 1rem;
}

.comment-create textarea {
  min-block-size: 120px;
  resize: none;
}

/* =========================
   COMMENT BUTTON
========================= */
.comment-create button {
  padding: 10px;
  height: 20px;

  font-family: "seinfeld";
  font-size: 1rem;

  color: #e4021c;
  background: linear-gradient(#fcd81a, #c1a416);

  border: 5px solid #c1a416;
  border-radius: 30px;

  cursor: pointer;
}
#back,
.comment-create button {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#back:hover,
.comment-create button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
/* =========================
   COMMENTS LIST
========================= */
#comments {
    display: flex;
    flex-direction: column;
    gap: 2px;

    background: #282026;
    overflow-y: auto;
    flex: 1;
}

.comment {
  background: white;
  padding: 10px;
  color: black;
  border: 2px solid #ccc;
}

/* =========================
   LIKE / DISLIKE BUTTONS (BACK BUTTON STYLE)
========================= */
.comment button {
  margin-left: 5px;

  font-family: "seinfeld";
  font-size: 14px;

  color: #e4021c;
  background: linear-gradient(#fcd81a, #c1a416);

  border: 5px solid #c1a416;
  border-radius: 30px;

  padding: 2px 10px;

  cursor: pointer;

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.comment button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* =========================
   RESPONSIVE (PORTRAIT)
========================= */
@media (orientation: portrait) {

  html, body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
  }

  .vid {
    width: 95%;
    margin: 10px auto;
  }

  #back {
    position: relative;
    display: block;

    width: 95%;
    margin: 10px auto;
  }

  .episodes {
    width: 95%;
    margin: 10px auto;
  }

.comment-box {
  position: relative;

  width: 95%;
  max-width: 600px;
  right: 0;
  margin: 10px auto;

  block-size: 50vh;
}
}

/* =========================
   LANDSCAPE SMALL SCREENS
========================= */
@media (orientation: landscape) and (max-width: 1024px) {

  .vid {
    width: 65%;
    margin: 20px;
  }

  .episodes {
    margin: 20px;
  }

  #back {
    position: absolute;
    right: 40px;
    top: 280px;

    width: 20%;
    max-width: 250px;
    height: 25px;

    font-size: 14px;
  }

  .comment-create textarea {
    min-block-size: 70px;
  }

  .comment-box {
    position: absolute;
    top: 20px;
    right: 20px;

    width: min(25vw, 200px);
    height: 70vh;
  }
}