@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  font-family: 'Press Start 2P', cursive, Arial, sans-serif;
  background: #1a1a2e;
  color: #e94560;
  text-align: center;
  padding: 40px 20px;
  margin: 0;
  image-rendering: pixelated;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
  line-height: 1.618;
  /* Retro video game palette: dark purple background, red text */
  /* Removed glow effects for better readability */
}

a { 
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background: #16213e;
  padding: 40px;
  border: 3px solid #e94560;
  border-radius: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  /* Retro video game styling: solid borders, no glow effects */
  /* Golden ratio proportions: container width to padding ratio */
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
  /* Hick's Law: clear separation between navigation options */
  /* Golden ratio spacing: 24px gap, 48px margin */
}

.tab {
  padding: 16px 32px;
  background: #2c3e50;
  border: 2px solid #3498db;
  border-radius: 0;
  color: #ecf0f1;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
  /* Fitt's Law: larger, easier-to-click navigation */
  /* Video game styling: solid borders, no rounded corners */
}

.tab:hover, .tab:focus {
  background: #3498db;
  color: #1a1a2e;
  border-color: #2980b9;
  outline: none;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

h1 {
  color: #f39c12;
  font-family: 'Press Start 2P', cursive;
  font-weight: normal;
  font-size: 28px;
  margin-bottom: 40px;
  /* Primary hierarchy - arcade yellow for titles */
}

h2 {
  color: #f39c12;
  font-family: 'Press Start 2P', cursive;
  font-weight: normal;
  font-size: 20px;
  margin: 32px 0 24px 0;
  /* Secondary hierarchy - consistent arcade yellow */
}

h3 {
  color: #3498db;
  font-family: 'Press Start 2P', cursive;
  font-weight: normal;
  font-size: 16px;
  margin: 24px 0 16px 0;
  /* Tertiary hierarchy - arcade blue */
}

.day {
  background: #0f3460;
  border: 2px solid #3498db;
  padding: 32px;
  margin: 32px 0;
  text-align: left;
  /* Gestalt proximity - generous spacing between day groups */
  /* Golden ratio spacing: 32px creates 1.618 ratio with 20px elements */
  /* Video game styling: solid borders, darker blue background */
}

.movie {
  padding: 20px;
  font-size: 14px;
  color: #ecf0f1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e94560;
  font-family: 'Press Start 2P', cursive;
  font-weight: normal;
  gap: 20px;
  margin-bottom: 12px;
  background: #1e3a8a;
  border-radius: 4px;
  border: 1px solid #2980b9;
  transition: border 500ms ease-out;
  /* Fitt's Law: larger click targets with generous padding */
  /* Golden ratio spacing: 20px padding, 12px margin */
  /* Video game styling: solid borders, blue background, white text */
  /* Enhanced mobile-friendly styling with subtle borders */
}

.movie.highlight {
  border-color: #a8ffee;
}

.movie-title {
  font-weight: bold;
  font-size: 18px;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 60%;
  color: #7dd3fc;
  /* Visual hierarchy: largest, boldest text for movie titles */
  /* Soft sky blue for better contrast with date headers */
  /* Removed harsh glow for better readability */
}

.movie-title a {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.3);
  /* Fitt's Law: larger, easier-to-click target */
  /* Visual hierarchy: bold weight for primary action */
  /* Soft styling with subtle background and border */
}

.movie-title a:hover {
  color: #38bdf8;
  background: rgba(125, 211, 252, 0.2);
  border-color: #7dd3fc;
  /* Brighter blue on hover without harsh effects */
}

.share-btn {
  background: #2c3e50;
  color: #e4eded;
  opacity: 0.9;
  border: 2px solid #7f8c8d;
  border-radius: 4px;
  font-family: 'Press Start 2P', cursive;
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 32px;
  flex-shrink: 0;
  /* Standardized dimensions matching other buttons */
  /* Maintains subtle styling while aligning properly */
}

.share-btn:hover {
  background: #bdc3c7;
  border-color: #95a5a6;
  opacity: 0.9;
}

.share-btn.copied {
  background: #27ae60;
  color: #ecf0f1;
  border-color: #229954;
  opacity: 1;
}

.share-btn.error {
  background: #e74c3c;
  color: #ecf0f1;
  border-color: #c0392b;
  opacity: 1;
}

.movie-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.movie-time, .movie-cinema {
  flex: 0 0 auto;
  text-align: center;
  font-size: 12px;
  color: #ecf0f1;
  background: #2c3e50;
  border: 2px solid #3498db;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  height: 32px;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Standardized dimensions for consistent alignment */
  /* Video game styling: solid borders, blue accent */
}

.other-times-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  background: #8e44ad;
  color: #ecf0f1;
  border: 2px solid #9b59b6;
  border-radius: 4px;
  padding: 8px 12px;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 32px;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Standardized dimensions for consistent alignment */
  /* Video game styling: purple accent for secondary actions */
}

.other-times-btn:hover {
  background: #9b59b6;
  border-color: #8e44ad;
}

.filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: #2c3e50;
  border: 2px solid #3498db;
  border-radius: 8px;
  /* Rule of thirds: divide filter area into logical sections */
  /* Gestalt grouping: related filter controls grouped together */
}

.filter select {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  font-size: 11px;
  font-family: 'Press Start 2P', cursive;
  background: #34495e;
  color: #ecf0f1;
  border: 2px solid #3498db;
  border-radius: 4px;
}

.filter label {
  font-size: 11px;
  margin-bottom: 8px;
  color: #3498db;
  display: block;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

pre {
  text-align: center;
  background: #222;
  padding: 10px;
  border: 2px solid #ff0080;
  border-radius: 0;
  overflow-x: auto;
  color: #39ff14;
  font-family: 'Press Start 2P', cursive;
  font-weight: normal;
}

footer {
  margin-top: 64px;
  font-style: italic;
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
  color: #95a5a6;
  padding: 32px;
  /* Golden ratio spacing: 64px top margin, 32px padding */
  /* Visual hierarchy: smallest, most subtle text */
  /* Video game styling: subtle gray text */
}

/* Content organization styles */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px;
  text-align: left;
  /* Rule of thirds: content centered in available space */
}

.text-content {
  line-height: 1.618;
  font-size: 14px;
  /* Golden ratio line height for optimal readability */
}

.text-content p {
  margin-bottom: 24px;
  /* Generous spacing between paragraphs */
}

.text-content a {
  color: #3498db;
  text-decoration: none;
}

.text-content a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.upcoming-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #3498db;
  /* Gestalt separation: visual grouping of related content */
}

/* Glitch button and dialog styles */
.glitch-button {
  margin: 40px auto;
  padding: 16px 32px;
  background: #e94560;
  color: #ecf0f1;
  border: 2px solid #c0392b;
  border-radius: 0;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Simplified: single call-to-action per Hick's Law */
  /* Video game styling: solid borders, red color scheme */
}

.glitch-button:hover {
  background: #c0392b;
  border-color: #a93226;
}

.dialog {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  border: 2px solid #ff0080;
  padding: 20px;
  color: #39ff14;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 0 24px #00fff7;
  z-index: 1000;
}

.dialog button {
  margin-top: 10px;
  padding: 8px 16px;
  background: #ff0080;
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 0 8px #00fff7;
}

.dialog button:hover {
  background: #39ff14;
  color: #000;
}

.glitch {
  animation: glitch 0.3s infinite;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

/* Movie grouping styles */
.movie-group {
  background: #0f3460;
  border: 2px solid #3498db;
  padding: 32px;
  margin: 32px 0;
  text-align: left;
  /* Gestalt similarity: consistent spacing with .day elements */
  /* Golden ratio spacing matches other container elements */
  /* Video game styling: solid borders, darker blue background */
}

.movie-group h3 {
  color: #3498db;
  font-family: 'Press Start 2P', cursive;
  font-weight: normal;
  /* Video game styling: consistent blue theme */
}

.hidden {
  display: none !important;
}

.other-times-dialog {
  display: flex;
  flex-direction: column;
  position: fixed;
  height: min(80vh, 600px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #181830;
  border: 3px solid #00fff7;
  padding: 28px 32px 20px 32px;
  color: #39ff14;
  font-family: 'Press Start 2P', cursive;
  font-size: 15px;
  text-align: center;
  box-shadow: 0 0 32px #00fff7, 0 0 8px #ff0080 inset;
  z-index: 2000;
  min-width: 340px;
  border-radius: 8px;
}

.other-times-dialog-title {
  color: #ff0080;
  font-size: 16px;
  margin-bottom: 12px;
  text-shadow: 0 0 4px #00fff7;
}

.other-times-list {
  margin-bottom: 16px;
  text-align: left;
  overflow: scroll;
}

.other-times-link {
  display: block;
  color: #00fff7;
  background: #222;
  border: 1px solid #ff0080;
  border-radius: 4px;
  margin: 6px 0;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 14px;
  font-family: 'Press Start 2P', cursive;
  transition: background 0.2s, color 0.2s, border 0.2s;
  box-shadow: 0 0 6px #00fff7;
}

.other-times-link:hover {
  background: #ff0080;
  color: #fff;
  border: 1px solid #00fff7;
}

.other-times-dialog button {
  margin-top: 10px;
  padding: 8px 16px;
  background: #ff0080;
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 0 8px #00fff7;
  transition: background 0.2s, color 0.2s;
}

.other-times-dialog button:hover {
  background: #39ff14;
  color: #000;
}

.closeBtn {
  margin-top: 12px;
  padding: 8px 16px;
  background: #ff0080;
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 0 8px #00fff7;
}

.copy-error-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  border: 2px solid #ff0080;
  padding: 16px;
  color: #39ff14;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 0 24px #00fff7;
  z-index: 2000;
  max-width: 90%;
  word-break: break-all;
}



/* Mobile responsive styles - Enhanced */
@media (max-width: 767px) {
  body {
    padding: 8px;
    font-size: 12px;
    line-height: 1.4;
  }
  
  .container {
    width: 100%;
    padding: 16px;
    margin: 0;
    border-width: 2px;
    overflow-x: hidden;
    box-sizing: border-box;
    /* Better mobile padding and prevent horizontal scroll */
  }
  
  h1 {
    font-size: 20px;
    margin: 16px 0;
    word-wrap: break-word;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 16px;
    margin: 12px 0 16px 0;
    word-wrap: break-word;
    line-height: 1.3;
  }
  
  .tabs {
    gap: 8px;
    margin-bottom: 20px;
    flex-direction: column;
    align-items: stretch;
  }
  
  .tab {
    padding: 14px 12px;
    font-size: 11px;
    flex: none;
    width: 100%;
    text-align: center;
    white-space: normal;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
    /* Stack tabs vertically on mobile for better touch targets */
    /* Enhanced text wrapping and sizing for mobile */
  }
  
  .movie {
    padding: 18px;
    gap: 12px;
    font-size: 12px;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 2px solid #2980b9;
    background: #1e3a8a;
    /* Stack movie elements vertically for better mobile layout */
    /* Enhanced mobile styling with better spacing and borders */
  }
  
  .movie-title {
    max-width: 100%;
    font-size: 15px;
    min-width: 0;
    margin-bottom: 12px;
    text-align: center;
    /* Larger, more prominent movie titles on mobile */
    /* Centered alignment for better mobile presentation */
  }
  
  .movie-title a {
    font-size: 15px;
    max-width: 100%;
    padding: 14px 12px;
    display: block;
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-wrap: break-word;
    line-height: 1.4;
    /* Full-width touch target with better text wrapping */
  }
  
  .movie-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    /* Simple vertical stack for mobile */
  }
  
  .movie-info > .movie-time,
  .movie-info > .movie-cinema {
    order: 1;
  }
  
  .movie-info > .other-times-btn {
    order: 2;
  }
  
  .movie-info > .share-btn {
    order: 3;
  }
  
  
  .movie-time, .movie-cinema {
    font-size: 13px;
    padding: 14px 16px;
    height: auto;
    min-height: 48px;
    min-width: auto;
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    box-sizing: border-box;
    border-radius: 6px;
    font-weight: bold;
    /* Full width, larger text, proper spacing */
  }
  
  .share-btn {
    /* Full width button with larger text */
    padding: 14px 16px;
    min-width: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 48px;
    white-space: normal;
    box-sizing: border-box;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
  }

  .other-times-btn {
    font-size: 13px;
    padding: 14px 16px;
    height: auto;
    min-height: 48px;
    min-width: auto;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    box-sizing: border-box;
    border-radius: 6px;
    font-weight: bold;
    /* Full width button with larger text */
  }
  
  .day, .movie-group {
    padding: 8px;
    margin: 8px 0;
  }
  
  .filter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #2c3e50;
    border: 2px solid #3498db;
    border-radius: 4px;
    /* Stack filters vertically on mobile */
  }
  
  .filter select {
    width: 100%;
    padding: 12px;
    font-size: 12px;
    font-family: 'Press Start 2P', cursive;
    background: #34495e;
    color: #ecf0f1;
    border: 2px solid #3498db;
    border-radius: 4px;
    min-height: 44px;
    /* Larger touch target for form elements */
  }
  
  .filter label {
    font-size: 12px;
    margin-bottom: 8px;
    color: #3498db;
    display: block;
    font-weight: bold;
  }
  
  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .other-times-dialog {
    width: 90%;
    max-width: none;
    padding: 12px;
    font-size: 11px;
    margin: 0 5%;
  }
  
  .other-times-dialog-title {
    font-size: 12px;
    margin-bottom: 8px;
    word-wrap: break-word;
  }
  
  .other-times-link {
    font-size: 11px;
    padding: 6px;
    margin: 3px 0;
    word-wrap: break-word;
  }
  
  .other-times-dialog button {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    font-size: 11px;
  }
  
  .glitch-button {
    width: 100%;
    margin: 12px 0;
    padding: 10px;
    font-size: 11px;
  }
  
  pre {
    font-size: 7px;
    padding: 6px;
    margin: 6px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  footer {
    font-size: 9px;
    margin-top: 12px;
    padding: 0 4px;
    word-wrap: break-word;
  }
  
  .content-section {
    padding: 20px;
  }
  
  .text-content {
    font-size: 12px;
  }
  
  .copy-error-message {
    font-size: 10px !important;
    padding: 12px !important;
  }
  
  .copy-error-message button {
    font-size: 10px !important;
    padding: 6px 12px !important;
  }
}

/* Tablet responsive styles */
@media (max-width: 1024px) and (min-width: 768px) {
  .container {
    width: 95%;
    padding: 24px;
  }
  
  .tabs {
    gap: 12px;
    margin-bottom: 32px;
  }
  
  .tab {
    padding: 14px 20px;
    font-size: 12px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    box-sizing: border-box;
    /* Enhanced tablet navigation */
  }
  
  .movie {
    padding: 18px;
    gap: 12px;
    border-radius: 6px;
    border: 2px solid #2980b9;
    margin-bottom: 12px;
    /* Enhanced tablet styling */
  }
  
  .movie-title {
    font-size: 17px;
    margin-bottom: 8px;
    /* Enhanced tablet movie title sizing */
  }
  
  .movie-time, .movie-cinema {
    font-size: 11px;
    padding: 8px 10px;
    height: 36px;
    min-width: 75px;
  }
  
  .other-times-btn {
    font-size: 9px;
    padding: 8px 10px;
    height: 36px;
    min-width: 110px;
  }
  
  .filter {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
  }
}

@media (min-width: 768px) {

  .share-btn {
    font-size: 0; /* hide the text and replace with icon*/
    width: 36px;
    height: 36px;
  }

  .share-btn::before {
    content: '⎘';
    font-size: 20px;
  }

  .share-btn.copied::before {
    content: "✓";
  }

  .share-btn.error::before {
    content: "❌";
  }
}

/* Large mobile / small tablet */
@media (max-width: 480px) {
  body {
    padding: 4px;
  }
  
  .container {
    padding: 12px;
  }
  
  h1 {
    font-size: 18px;
    margin: 12px 0;
  }
  
  .tabs {
    gap: 6px;
    margin-bottom: 16px;
  }
  
  .tab {
    padding: 16px 8px;
    font-size: 9px;
    min-height: 52px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
    /* Enhanced mobile navigation sizing with better spacing */
  }
  
  .movie {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    border: 2px solid #2980b9;
    /* Enhanced small mobile styling */
  }
  
  .movie-title {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    /* Enhanced small mobile movie title */
  }
  
  .movie-title a {
    font-size: 14px;
    padding: 12px 8px;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    /* Enhanced small mobile movie title links */
  }
  
  .movie-time, .movie-cinema {
    font-size: 12px;
    padding: 12px 14px;
    height: auto;
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    font-weight: bold;
    /* Enhanced small mobile styling */
  }
  
  .other-times-btn {
    font-size: 12px;
    padding: 12px 14px;
    height: auto;
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    font-weight: bold;
    /* Enhanced small mobile styling */
  }
  
  .share-btn {
    padding: 12px 14px;
    height: auto;
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    font-weight: bold;
    /* Enhanced small mobile styling */
  }
}

@media (max-width: 768px) {
  .content-section {
    padding: 20px;
  }
  
  .text-content {
    font-size: 12px;
  }
}