/* File: galaxy-movie-manager/assets/css/frontend.css */

.gmm-page,
.gmm-page * {
  box-sizing: border-box;
}

.gmm-page {
  background: #111827;
  color: #fff;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

.gmm-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.gmm-hidden {
  display: none !important;
}

.gmm-status {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed #4b5563;
  border-radius: 14px;
  background: rgba(31, 41, 55, 0.5);
  color: #cbd5e1;
  line-height: 1.6;
}

.gmm-archive-hero {
  padding: 34px 0 10px;
}

.gmm-title h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1.25;
}

.gmm-title p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
}

.gmm-search-wrap {
  margin-top: 22px;
}

.gmm-search-box {
  width: 100%;
  max-width: 420px;
  padding: 13px 16px;
  border: 1px solid #374151;
  border-radius: 12px;
  background: #1f2937;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.gmm-search-box:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.gmm-search-box::placeholder {
  color: #9ca3af;
}

.gmm-date-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 0 18px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}

.gmm-date-btn {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 10px 14px;
  border: 1px solid #374151;
  border-radius: 12px;
  background: #1f2937;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: 0.22s ease;
}

.gmm-date-btn:hover {
  border-color: #f97316;
  transform: translateY(-1px);
}

.gmm-date-btn strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.gmm-date-btn span {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
}

.gmm-date-btn.active {
  background: #f97316;
  border-color: #f97316;
}

.gmm-date-btn.active span {
  color: #fff;
}

.gmm-archive-content {
  padding: 10px 0 48px;
}

.gmm-movie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gmm-movie-card {
  overflow: hidden;
  border: 1px solid #374151;
  border-radius: 16px;
  background: #1f2937;
  transition: 0.25s ease;
}

.gmm-movie-card:hover {
  transform: translateY(-4px);
  border-color: #f97316;
}

.gmm-movie-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gmm-movie-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.gmm-movie-poster-wrap {
  position: relative;
  overflow: hidden;
  background: #374151;
}

.gmm-movie-poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: 0.3s ease;
}

.gmm-movie-card:hover .gmm-movie-poster {
  transform: scale(1.03);
}

.gmm-card-age {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 40px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.gmm-movie-content {
  padding: 14px;
}

.gmm-movie-name {
  min-height: 46px;
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.gmm-movie-sub-name {
  min-height: 18px;
  margin-bottom: 12px;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.4;
}

.gmm-movie-meta,
.gmm-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.gmm-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: #374151;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.3;
}

.gmm-age {
  background: #dc2626;
  color: #fff;
}

.gmm-card-showtime {
  padding-top: 12px;
  border-top: 1px solid #374151;
}

.gmm-card-show-date {
  margin-bottom: 8px;
  color: #facc15;
  font-size: 13px;
  font-weight: 700;
}

.gmm-time-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gmm-time-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid #374151;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1;
}

.gmm-time-more {
  border-color: #f97316;
  color: #f97316;
}

.gmm-single-hero {
  min-height: 460px;
  padding: 56px 0;
  background-color: #111827;
  background-size: cover;
  background-position: center;
}

.gmm-single-hero-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.gmm-single-poster-wrap {
  overflow: hidden;
  border: 1px solid #374151;
  border-radius: 18px;
  background: #1f2937;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.gmm-single-poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.gmm-breadcrumb-lite {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 14px;
}

.gmm-breadcrumb-lite a {
  color: #facc15;
  text-decoration: none;
}

.gmm-breadcrumb-lite a:hover {
  color: #f97316;
}

.gmm-single-info h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 42px;
  line-height: 1.15;
}

.gmm-single-subtitle {
  margin: 0 0 16px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.5;
}

.gmm-single-excerpt {
  max-width: 760px;
  margin: 14px 0 0;
  color: #e5e7eb;
  font-size: 15px;
  line-height: 1.7;
}

.gmm-single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.gmm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.22s ease;
}

.gmm-btn-primary {
  border: 1px solid #f97316;
  background: #f97316;
  color: #fff;
}

.gmm-btn-primary:hover {
  background: #ea580c;
  color: #fff;
}

.gmm-btn-outline {
  border: 1px solid #4b5563;
  background: rgba(31, 41, 55, 0.78);
  color: #fff;
}

.gmm-btn-outline:hover {
  border-color: #f97316;
  color: #fff;
}

.gmm-single-body {
  padding: 36px 0 56px;
}

.gmm-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.gmm-panel {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid #374151;
  border-radius: 18px;
  background: #1f2937;
}

.gmm-panel h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 22px;
  line-height: 1.3;
}

.gmm-content {
  color: #e5e7eb;
  font-size: 15px;
  line-height: 1.75;
}

.gmm-content p {
  margin: 0 0 14px;
}

.gmm-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.gmm-section-head h2 {
  margin-bottom: 6px;
}

.gmm-section-head p {
  margin: 0;
  color: #cbd5e1;
}

.gmm-info-list {
  display: grid;
  gap: 12px;
}

.gmm-info-row {
  padding-bottom: 12px;
  border-bottom: 1px solid #374151;
}

.gmm-info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.gmm-info-row span {
  display: block;
  margin-bottom: 5px;
  color: #9ca3af;
  font-size: 13px;
}

.gmm-info-row strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.gmm-age-note p {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.6;
}

.gmm-showtime-date-title {
  margin: 0 0 12px;
  color: #facc15;
  font-size: 15px;
  font-weight: 700;
}

.gmm-cinema-showtime {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #374151;
  border-radius: 14px;
  background: #111827;
}

.gmm-cinema-showtime:last-child {
  margin-bottom: 0;
}

.gmm-cinema-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.gmm-cinema-head h3 {
  margin: 0 0 6px;
  color: #facc15;
  font-size: 17px;
  line-height: 1.35;
}

.gmm-cinema-address {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.gmm-cinema-phone {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 7px 10px;
  border: 1px solid #374151;
  border-radius: 999px;
  color: #e5e7eb;
  font-size: 13px;
  text-decoration: none;
}

.gmm-cinema-phone:hover {
  border-color: #f97316;
  color: #f97316;
}

.gmm-session-list {
  border-top: 1px solid #374151;
}

.gmm-session-row {
  display: grid;
  grid-template-columns: 90px 1fr 110px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #1f2937;
  font-size: 14px;
}

.gmm-session-row:last-child {
  border-bottom: 0;
}

.gmm-session-time {
  color: #fff;
  font-weight: 700;
}

.gmm-session-screen {
  color: #e5e7eb;
  line-height: 1.45;
}

.gmm-session-seat {
  text-align: right;
  font-size: 13px;
}

.gmm-session-seat.is-available {
  color: #86efac;
}

.gmm-session-seat.is-soldout {
  color: #fca5a5;
}

.gmm-loading {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .gmm-movie-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gmm-single-hero-inner {
    grid-template-columns: 240px 1fr;
  }

  .gmm-single-layout {
    grid-template-columns: 1fr;
  }

  .gmm-single-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .gmm-title h1 {
    font-size: 27px;
  }

  .gmm-movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .gmm-single-hero {
    padding: 34px 0;
  }

  .gmm-single-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gmm-single-poster-wrap {
    max-width: 230px;
  }

  .gmm-single-info h1 {
    font-size: 30px;
  }

  .gmm-panel {
    padding: 18px;
  }

  .gmm-session-row {
    grid-template-columns: 70px 1fr;
  }

  .gmm-session-seat {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .gmm-container {
    padding: 0 12px;
  }

  .gmm-movie-grid {
    grid-template-columns: 1fr;
  }

  .gmm-date-btn {
    min-width: 88px;
    padding: 9px 11px;
  }

  .gmm-single-poster-wrap {
    max-width: 200px;
  }

  .gmm-single-info h1 {
    font-size: 26px;
  }

  .gmm-single-actions {
    flex-direction: column;
  }

  .gmm-btn {
    width: 100%;
  }

  .gmm-cinema-head {
    flex-direction: column;
  }

  .gmm-cinema-phone {
    align-self: flex-start;
  }
}
