/* === ORIGINAL STYLES (keep these!) === */

/* retro TV guide vibes */
body {
    background: #1a1a2e;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 20px;
    color: #eee;
}

.tv-guide {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    border-bottom: 4px solid #e94560;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

h1 {
    color: #e94560;
    font-size: 3em;
    margin: 0;
    text-shadow: 3px 3px 0px #16213e;
    letter-spacing: 4px;
}

.subtitle {
    color: #0f3460;
    background: #e94560;
    display: inline-block;
    padding: 5px 15px;
    margin-top: 50px;
    font-weight: bold;
}

.channel-nav {
    margin-bottom: 20px;
}

.channel-nav a {
    color: #e94560;
    text-decoration: none;
    font-weight: bold;
}

.channel-nav a:hover {
    text-decoration: underline;
}

/* the grid */
.show-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* individual show cards */
.show-card {
    background: #16213e;
    border: 3px solid #0f3460;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.show-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0px #e94560;
}

/* different vibes for different types */
.show-card.drama { border-color: #9d4edd; }
.show-card.comedy { border-color: #caffbf; }
.show-card.horror { border-color: #ff006e; }
.show-card.animation { border-color: #00bbf9; }
.show-card.nostalgia { border-color: #fee440; }

.show-header {
    border-bottom: 2px dashed #0f3460;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.badge {
    background: #e94560;
    color: white;
    padding: 2px 8px;
    font-size: 0.7em;
    font-weight: bold;
    float: right;
}

.show-card h2 {
    margin: 0;
    font-size: 1.3em;
    color: #fff;
}

.status {
    display: block;
    color: #888;
    font-size: 0.8em;
    margin-top: 5px;
    font-style: italic;
}

.show-content p {
    line-height: 1.5;
    margin: 10px 0;
}

.tags {
    margin-top: 10px;
}

.tags span {
    background: #0f3460;
    color: #eee;
    padding: 3px 8px;
    font-size: 0.75em;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #555;
    font-size: 0.8em;
}

/* mobile fix */
@media (max-width: 600px) {
    h1 { font-size: 2em; }
    .show-grid { grid-template-columns: 1fr; }
}

/* === NEW IMAGE STYLES (add these!) === */

/* show images */
.show-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #0f3460;
    display: block;
}

/* adjust card padding since image sits at top now */
.show-card {
    padding: 0;
    overflow: hidden;
}

.show-header, .show-content {
    padding: 15px;
}

.show-header {
    padding-bottom: 10px;
}

.show-content {
    padding-top: 0;
}
/* show images */
.show-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #0f3460;
    display: block;
}

/* adjust card padding since image sits at top now */
.show-card {
    padding: 0;
    overflow: hidden;
}

.show-header, .show-content {
    padding: 15px;
}

.show-header {
    padding-bottom: 10px;
}

.show-content {
    padding-top: 0;
}
/* ============================================
   🎀 DECORATIVE GIF ACCENTS — won't break grid
   ============================================ */

/* --- Header gif cluster --- */
.header-gifs {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.header-gif {
  height: 50px;
  width: auto;
  image-rendering: pixelated;
}

.header-gif.tiny {
  height: 35px;
}

/* --- Floating corner decorations (desktop only) --- */
.float-deco {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  opacity: 0.85;
}

.float-top-right {
  top: 20px;
  right: 20px;
  height: 70px;
}

.float-bottom-left {
  bottom: 20px;
  left: 20px;
  height: 80px;
}

/* --- Section divider gifs --- */
.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.divider-gif {
  height: 45px;
  width: auto;
  image-rendering: pixelated;
}

/* --- Retro TV frame for the JPG --- */
.tv-frame {
  display: inline-block;
  background: #0f3460;
  border: 4px solid #e94560;
  border-radius: 15px;
  padding: 8px;
  box-shadow: 4px 4px 0px #16213e;
  margin: 10px;
}

.tv-frame img {
  display: block;
  width: 120px;
  height: auto;
  border-radius: 8px;
  image-rendering: auto;
}

/* --- Tiny inline gifs for card accents --- */
.card-accent {
  position: absolute;
  top: 5px;
  left: 5px;
  height: 30px;
  width: auto;
  z-index: 10;
  pointer-events: none;
  opacity: 0.9;
}

/* --- Hide floaters on mobile so nothing breaks --- */
@media (max-width: 768px) {
  .float-deco {
    display: none;
  }
  .header-gif {
    height: 35px;
  }
  .tv-frame img {
    width: 80px;
  }
}