/* CSS from index.html */

:root {
  --card-border-width: 2px;
  --card-border-angle: 0deg;
  --card-animation-speed: 6s; /* how fast the border spins */
  --card-inner-radius: 8px;
  --card-outer-radius: calc(var(--card-inner-radius) + var(--card-border-width));
  --card-hover-scale: 1.02;
}

/* allow smooth animation of the custom angle */
@property --card-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes card-border-spin {
  to {
    --card-border-angle: 360deg;
  }
}

body {
  background-color: #000;
  color: white;
  font-family: 'Kalam', cursive;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Kalam', cursive;
  color: white;
}

.center-text {
  text-align: center;
}

.top-margin {
  margin-top: 30px;
}

@media (max-width: 768px) {
  .top-margin {
    margin-top: 15px;
  }
}

nav.translucent-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0 20px;
  box-sizing: border-box;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 0; /* Remove extra inline spacing */
  height: 50px; /* Fixed header height */
  min-height: 50px; /* Enforce a minimum height */
  border-bottom: 2px solid #1a1a1a;
  transform: translateZ(0);
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  line-height: 0;
}

nav i.fa {
  color: rgba(230, 230, 230, 0.9);
}

nav.translucent-header ul li strong {
  color: rgba(230, 230, 230, 0.9);
}

/* Tighten up the logo */
nav.translucent-header a img {
  display: block;
  margin: 0;
  padding: 0;
  max-height: 50px;
}

.install-btn {
  background: none;
  border: none;
  color: rgba(230, 230, 230, 0.9);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 3px;
  outline: none;
  box-shadow: none;
}

.install-btn i {
  position: relative;
  top: 3px;
}

.install-btn:hover,
.install-btn:focus {
  background: none;
  color: #ccc;
}

/* Hamburger menu toggle styling */
nav.translucent-header ul.menu {
  margin: 0;
  padding: 0;
}

nav.translucent-header ul.menu li {
  margin: 0;
}

#hamburger-toggle {
  margin-right: -10px; /* Push further to the right */
  -webkit-tap-highlight-color: transparent;
}

#hamburger-toggle i {
  font-size: 16px; /* Smaller icon */
  cursor: pointer;
  transition: transform 0.5s ease;
  display: inline-block;
  width: 16px;
  text-align: center;
}

/* Remove all focus styles completely from the hamburger toggle and its inner icon */
a#hamburger-toggle:focus,
a#hamburger-toggle:focus-visible,
a#hamburger-toggle:active,
a#hamburger-toggle i:focus,
a#hamburger-toggle i:focus-visible,
a#hamburger-toggle i:active {
  outline: 0;
  box-shadow: none;
  -webkit-focus-ring-color: transparent;
  outline-offset: 0;
}

#hamburger-toggle::-moz-focus-inner {
  border: 0;
}

/* Sliding menu styles */
#sliding-menu {
  position: fixed;
  top: 50px; /* Start below navbar */
  right: 0;
  width: 80%;
  height: calc(100% - 50px);
  background-color: rgba(0, 0, 0, 0.95);
  transform: translateX(100%);
  transition: transform 0.5s ease;
  z-index: 900;
  padding: 20px;
  color: #fff; /* Make all text white by default */
}

/* Remove bullets + squares completely */
#sliding-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sliding-menu ul li::marker {
  content: none; /* This kills the default squares/markers */
}

/* Force the <strong> titles to be white as well */
#sliding-menu strong {
  color: #fff;
}

/* just add a bit of space between heading icon and text */
#sliding-menu .menu-heading-icon {
  margin-right: 0.3rem;
}

/* Top-level items */
#sliding-menu > ul > li {
  margin: 20px 0;
  font-size: 20px;
  font-weight: bold;
}

/* Sub-items */
#sliding-menu > ul > li > ul {
  margin-top: 10px;
  padding: 0;
}

#sliding-menu > ul > li > ul > li {
  font-size: 18px;
  margin: 8px 0;
  font-weight: normal;
  position: relative;
  padding-left: 1em;
  color: #fff; /* Ensure sub-items are white too */
}

#sliding-menu > ul > li > ul > li::before {
  content: "—";
  display: inline-block;
  margin-right: 0.25em; /* adjust this value to your liking */
}

#sliding-menu a {
  color: #fff;
  text-decoration: none;
}

#sliding-menu a:hover {
  color: #ccc;
}

#sliding-menu ul li {
  list-style-type: none;
}

/* Background overlay for blur effect */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.3);
  z-index: 850;
  display: none;
  transition: opacity 0.5s ease;
}

main.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
}

.my-thoughts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  justify-content: flex-start;
  width: 100%;
}

.scroll-down-figure {
  margin-bottom: 190px;
}

@media (max-width: 768px) {
  .scroll-down-figure {
    margin-bottom: 75px;
    margin-top: 0px;
  }
}

.scaled-image {
  aspect-ratio: 908 / 1030;
  max-width: 100%;
  height: auto;
  width: 265px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .scaled-image {
    width: 50%;
  }
}

/* postcard outer shell (handles border + spin only) */
.card-shell {
  position: relative;
  display: block;
  width: 100%;
  --card-border-width-current: var(--card-border-width);
  --card-outer-radius-current: calc(var(--card-inner-radius) + var(--card-border-width-current));
  border-radius: var(--card-outer-radius-current);
  border: var(--card-border-width-current) solid transparent;
  background: #0f0f0f; /* fallback when not a "new" card */
  box-sizing: border-box;
  isolation: isolate;
  overflow: hidden;
  z-index: 0;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* animated gradient border sits on the shell */
.card-shell.is-new-card {
  background:
    linear-gradient(#0f0f0f, #0f0f0f) padding-box,
    conic-gradient(
      from var(--card-border-angle) at 50% 50%,
      #ffffff 0deg,
      #f4fbff 55deg,
      #b8ecff 120deg,
      #63d5ff 185deg,
      #0fa8ff 250deg,
      #004bff 310deg,
      #63d5ff 340deg,
      #ffffff 360deg
    ) border-box;
  animation: card-border-spin var(--card-animation-speed) linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .card-shell.is-new-card {
    animation: none;
  }
}

/* inner postcard */
.post-card {
  background: linear-gradient(to bottom, #000000bb, #202020bb);
  border-radius: var(--card-inner-radius);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 1;
  height: 200px;
  width: 100%;
  box-sizing: border-box;
}

/* hover / focus effect */
.card-shell:hover,
.card-shell:focus-within {
  transform: scale(var(--card-hover-scale));
  box-shadow: 0 0 26px rgba(0, 180, 255, 0.35);
  z-index: 1;
}

.post-card a {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.post-card img {
  width: 200px;
  height: 100%;
  object-fit: cover;
  border-radius: var(--card-inner-radius) 0 0 var(--card-inner-radius);
}

.post-content {
  padding: 20px;
  flex: 1;
  overflow: hidden;
  color: white;
}

.post-card h4,
.post-card p {
  margin: 0 0 10px;
  color: white;
}

figure {
  max-width: 100%;
  text-align: center;
  margin: 0 auto 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

figure img {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 0 auto;
  display: block;
}

@media (min-width: 992px) {
  figure img {
    width: 65%;
  }
}

@media (min-width: 1100px) {
  figure img {
    width: 80%;
  }
}

/* Slight curve on the main hero image */
.hero-figure {
  border-radius: 13px;
  overflow: hidden; /* clip image corners to the curve */
}

.hero-figure img {
  border-radius: inherit;
  display: block;
  margin: 0 auto;
  width: 80%;
  max-width: 540px; /* tweak this to taste */
}

/* mobile hero sizing */
@media (max-width: 768px) {
  .hero-figure img {
    width: 91%;      /* smaller than full-bleed */
    max-width: 400px; /* hard cap so it doesn't feel huge */
  }
}



body main.container figure figcaption {
  background-color: rgba(7, 7, 7, 0.3);
  border-radius: 8px;
  padding: 8px 20px;
  margin-top: 10px;
  text-align: center;
  display: inline-block;
  box-sizing: border-box;
  max-width: 250px;
  margin-bottom: 80px; /* change to 80 to revert */
}

@media (max-width: 768px) {
  body main.container figure figcaption {
    margin-bottom: 0px;
  }
}

body main.container figure figcaption a {
  color: rgba(230, 230, 230, 0.9);
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  display: block;
}

.post-card a {
  color: white;
}

.post-card a:hover {
  color: white;
}

a:visited {
  color: white;
}

@media (max-width: 768px) {
  /* keep the thoughts grid centered */
  .my-thoughts {
    justify-content: center;
  }

  /* shrink the whole card (border + inner content) */
  .card-shell {
    width: 90%;
    margin: 0 auto;
  }

  /* stack image and text vertically inside the card */
  .post-card {
    flex-direction: column;
    height: auto;
  }

  .post-card img {
    width: 100%;
    height: auto;
    border-radius: var(--card-inner-radius) var(--card-inner-radius) 0 0;
  }

  .post-card a {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .post-content {
    width: 100%;
    padding: 10px;
  }
}

footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  background-color: black;
  color: white;
  text-align: center;
}

body > footer {
  --block-spacing-vertical: 10px;
  margin-top: auto;
  padding: var(--block-spacing-vertical) 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-socials {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
  padding: 0 10px;
}

.social-icon {
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #00acee;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 5px;
  padding: 0 10px;
}

.footer-links small {
  line-height: 1;
  font-size: 14px;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  color: #00acee;
}

@media (max-width: 768px) {
  .footer-links small {
    font-size: 12px;
  }

  .footer-socials {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
  }
}

.spotify-wrapper {
  position: relative;
  width: 65%;
  height: 719px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  overflow: hidden;
}

.spotify-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

@media (max-width: 768px) {
  .spotify-wrapper {
    width: 95%;
    height: 462px;
  }
}

.polaroid-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.polaroid-border::before,
.polaroid-border::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  height: 310px;
  width: 20px;
  background-color: transparent;
  z-index: 2000;
}

.polaroid-border::after {
  left: unset;
  right: 0;
  background-color: transparent;
}

/* === POLAROID SECTION === */

.polaroid-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.polaroid-slider {
  background-color: #ffffff;
  width: 700px; 
  height: auto; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-radius: 3px; 
  position: relative;
  transform: translateZ(0);
  padding-bottom: 10px; 
}

.polaroid-slide {
  padding: 20px 20px 0 20px; 
  box-sizing: border-box;
  outline: none;
  position: relative; /* Ensures absolute children position relative to this slide */
}

.polaroid-slider-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; 
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  border: 1px solid #f0f0f0; 
}

.polaroid-caption {
  position: relative;
  padding-top: 20px; 
  color: #222;
  font-family: 'Kalam', cursive;
  width: 100%;
  box-sizing: border-box; /* Ensures padding doesn't break width */
}

.caption-text {
  text-align: left;
  padding-left: 10px; 
  /* We no longer need the huge padding-right because max-width handles the spacing */
  padding-right: 0; 
}

.caption-text h4 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: #000;
  max-width: 100%;
}

.caption-text p {
  font-size: 1.2rem;
  margin: 6px 0 0 0;
  line-height: 1.3;
  color: #333;
  max-width: 70%; /* // ADJUST HERE: Controls description line length */
  
  /* Keeps the height consistent so the counter doesn't jump */
  min-height: 3.2rem; 
}

.caption-counter {
  position: absolute;
  /* 3. FIX VERTICAL POSITION */
  bottom: 5px; /* // ADJUSTED: Fine-tuned to sit nicely with the text baseline */
  
  /* 4. BRING NUMBER IN FROM RIGHT */
  right: 20px; /* // CHANGED: Increased from 0 to pull it away from the edge */
  
  font-size: 1.6rem;
  line-height: 1;
  color: #444;
}

/* Hide default Slick dots */
.slick-dots {
  display: none !important;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 666px) { 
  
  .polaroid-slider {
    width: 310px; 
    min-height: 400px; 
  }

  .polaroid-slide {
    padding: 15px 15px 0 15px; 
  }

  .polaroid-caption {
    padding-top: 15px; 
  }
  
  .caption-text {
    padding-left: 5px;
  }

  .caption-text h4 {
    font-size: 1.1rem; 
    max-width: 100%;
  }

  .caption-text p {
    font-size: 0.8rem; 
    min-height: 1.9rem; 
    max-width: 70%; /* // ADJUST HERE: Mobile line-break width */
    text-align: justify;
  }

  .caption-counter {
    font-size: 1rem; 
    right: 4px; 
    bottom: 0px;
  }
}

.about-me-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  width: 400px;
  margin: 10px auto;
  height: 100px;
  margin-bottom: 2px;
}

.about-me-container p {
  margin: 0;
  color: black;
}

.swap-button {
  margin-top: 30px;
  border: none;
  background: none;
  color: rgb(72, 209, 204);
  font-size: 22px;
  margin-bottom: 0;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: black;
  }
}

.typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid black;
  animation: blink-caret 0.75s step-end infinite;
}

@media (max-width: 768px) {
  .about-me-container {
    max-width: 320px;
  }
}

h3.kalam-regular {
  color: rgba(200, 200, 200, 0.7);
}

#about-me-heading {
  margin-top: 40px;
}

@media (max-width: 768px) {
  #about-me-heading {
    margin-top: 40px;
  }
}

.spotify-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.playlist {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  border-radius: 0;
}

.playlist.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .playlist {
    width: 100%;
  }
}

.arrow-buttons {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 20px;
}

.arrow-buttons button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.arrow-buttons button:disabled {
  color: gray;
  cursor: not-allowed;
}

.wrapped-image {
  max-width: 67%;
  height: auto;
  display: block;
  margin: 20px auto;
}

@media (max-width: 768px) {
  .wrapped-image {
    max-width: 90%;
  }
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 20px auto 70px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  background-color: #000;
}

.youtube-embed {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .youtube-embed {
    height: 300px;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(to bottom, #000000dd, #202020dd);
  padding: 20px;
  border: none;
  width: 80%;
  max-width: 500px;
  border-radius: 12px;
  position: relative;
  color: white;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content h2 {
  margin: 30px 0 5px;
  text-align: center;
}

.close {
  color: #fff;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #aaa;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .modal-content h2 {
    font-size: 1.5em;
  }

  .modal-content {
    width: 90%;
  }
}

.modal-content p.newsletter-text {
  margin: 20px 0 30px;
  text-align: center;
}

.newsletter-link-container {
  text-align: center;
  margin: 10px 0 17px;
}

.newsletter-link {
  display: inline-block;
  background-color: #000;
  color: #ccc;
  padding: 10px 20px;
  border: 2px solid white;
  border-radius: 12px;
  font-family: 'Kalam', cursive;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.newsletter-link:hover {
  background-color: #1f1e1e;
  color: white;
}

.theList-outer {
  width: 90%;
  margin: 0 auto 40px;
  border: 1px solid #444;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.theList-inner {
  height: 295px;
  width: 100%;
  margin: 0;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #444 #111;
}

@media (min-width: 992px) {
  .theList-outer {
    width: 70%;
  }

  .theList-inner {
    height: 475px;
  }
}

.theList-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  color: #f2f2f2;
  font-family: 'Kalam', cursive;
}

.theList-table th,
.theList-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #555;
}

.theList-table thead th {
  position: sticky;
  top: 0;
  background: black;
  z-index: 2;
  margin: 0;
}

.theList-table td:nth-child(2) {
  text-align: right;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.table-name-col,
.table-rating-col {
  color: #fff;
  font-weight: bold;
  font-size: 18px;
}

.search-oval {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background-color: #333;
  border-radius: 25px;
  padding: 2px 8px;
  margin: 0 auto;
  height: 26px;
  width: 120px;
  line-height: 26px;
  position: relative;
  top: -1px;
}

.search-oval input[type="text"] {
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-family: 'Kalam', cursive;
  font-size: 14px;
  line-height: 26px;
  flex: 1;
  padding: 0;
  margin: 0;
  transform: translateY(0);
}

.search-oval input[type="text"]::placeholder {
  color: #bbb;
}

.search-oval i {
  color: #fff;
  margin-left: 0;
  cursor: pointer;
  font-size: 14px;
}

.search-oval input[type="text"]:focus {
  outline: none;
  box-shadow: none;
}

.search-oval:focus-within {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
  border-radius: 25px;
}

@media (min-width: 992px) {
  .search-oval {
    width: 240px;
  }
}

@media (min-width: 992px) {
  .search-oval input[type="text"] {
    font-size: 17px;
  }
}

.watched-show {
  text-decoration: line-through;
  opacity: 0.7;
}

.theList-inner::-webkit-scrollbar {
  width: 10px;
}

.theList-inner::-webkit-scrollbar-track {
  background: #111;
}

.theList-inner::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 6px;
}

.theList-inner::-webkit-scrollbar-thumb:hover {
  background-color: #666;
}

.theList-inner::-webkit-scrollbar-corner {
  background: transparent;
}

@media (max-width: 768px) {
  .theList-inner::-webkit-scrollbar {
    width: 5px;
  }

  .theList-inner::-webkit-scrollbar-thumb {
    border-radius: 5px;
  }
}

.my-divider {
  border: none;
  height: 2px;
  width: 95%;
  margin: 35px auto;
  border-radius: 999px;
  background-color: rgba(30, 30, 30, 0.85);
}

.my-divider + h3 {
  margin-top: 21px;
  margin-bottom: 21px;
}

.toggle-container {
  margin: 5px auto; /* Adjust this value to control space above/below the button */
}

/* Styling for the toggle button */
#toggleWatched {
  background: none;
  border: none;
  padding: 0; /* Remove any default padding */
  margin: 0; /* Remove any default margin */
  cursor: pointer;
  color: rgb(72, 209, 204);
  font-size: 20px;
  display: inline-block; /* Inline-block helps control spacing more precisely */
  line-height: 1; /* Reduce extra line-height space */
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Adjust the icon within the button */
#toggleWatched i {
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* Remove focus outline when clicked */
#toggleWatched:focus {
  outline: none;
  box-shadow: none;
}

/* === Spider-Verse Countdown ===================================== */
.countdown-container {
  background-color: #000; /* jet black */
  padding: 25px 0;
}

/* ── heading (two lines) ───────────────────────────────────────── */
.countdown-heading {
  font-size: clamp(1.6rem, 2vw + 0.6rem, 2rem);
  font-weight: 700;
  margin: 0 0 18px;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  line-height: 1.25;
}

.movie-title {
  display: block;
  margin-bottom: 4px;
}

.countdown-sub {
  display: block;
  font-weight: 600;
  margin-bottom: 40px;
}

/* ── time units ────────────────────────────────────────────────── */
.time-row {
  display: flex;
  justify-content: space-evenly;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.time-unit .number {
  font-size: clamp(2.2rem, 4vw + 1rem, 3rem);
  font-weight: 800;
  line-height: 1;
}

.time-unit .label {
  font-size: clamp(0.75rem, 1.2vw + 0.5rem, 1rem);
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

/* ── progress bar ──────────────────────────────────────────────── */
.progress-wrapper {
  width: 60%;
  height: 10px;
  margin: 0 auto;
  background-color: #444;
  border-radius: 999px; /* pill shape */
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%; /* updated via JS */
  background: linear-gradient(90deg, #00d1ff, #ffffff);
  box-shadow: 0 0 8px #00d1ff;
  border-radius: inherit;
  transition: width 0.6s ease;
}

/* ── break-point ≤ 768 px (tablets / large phones) ─────────────── */
@media (max-width: 768px) {
  .time-row {
    gap: 10px;
  }

  .progress-wrapper {
    width: 80%;
  }
}

/* ── break-point ≤ 480 px (small phones) ───────────────────────── */
@media (max-width: 480px) {
  .countdown-heading {
    font-size: clamp(1.2rem, 5vw + 0.3rem, 1.6rem);
  }

  .time-unit .number {
    font-size: clamp(1.6rem, 10vw + 0.5rem, 2.2rem);
  }

  .time-unit .label {
    font-size: 0.7rem;
  }
}

/* === Spider-Verse Heading Glitch (refined) ========================= */
@keyframes glitch {
  0%,
  22%,
  100% {
    transform: none;
    text-shadow: none;
    opacity: 1;
  }
  6% {
    transform: translate(-3px, -1px);
    text-shadow: 3px 1px rgba(255, 0, 0, 0.7);
    opacity: 0.85;
  }
  12% {
    transform: translate(3px, 1px);
    text-shadow: -3px -1px rgba(0, 255, 255, 0.7);
    opacity: 0.85;
  }
  18% {
    transform: translate(-2px, 2px) skew(-1deg);
    text-shadow: 2px -2px rgba(255, 0, 255, 0.7);
    opacity: 0.9;
  }
}

.countdown-heading.glitch-active {
  animation: glitch 2.5s linear;
}

/* End of CSS from index.html */

/* CSS for creativity.html */

main.creativity-main {
  flex: 1;
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center; /* center vertically */
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
  background-color: transparent;
}

/* Reset any default figure styling for our placeholder section */
figure.under-construction {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  text-align: center;
}

/* Ensure the image itself is centered and responsive */
figure.under-construction img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* End of CSS for creativity.html */
