#current-movies-section
{
    padding: 0 1rem 1.25rem 1rem; /* 0 16px 20px 16px*/
    max-width: 87.5rem; /* 1400px */
    margin: 2.5rem auto 0 auto; /* 40px */
}

#current-movies
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr)); /* 250px */
  gap: 1.25rem; /* 20px */
  justify-items: center;
}

.current-movies-poster
{
    position: relative;
    width: 100%;
    max-width: 17.5rem; /* 280px */
    border-radius: 12px;
    overflow: hidden;
}

.current-movies-poster img 
{
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.current-movies-poster:hover img 
{
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

#current-movies-section h2
{
  text-align: center;
  font-size: 2rem; /* 32px */  
  font-weight: 700;
  margin-bottom: 1rem; /* 16px */
  color: black;            
  letter-spacing: 0.0625rem; /* 1px */
}

/* ---------------------------------------------------------------------------------------- */

#current-movies-wrapper 
{
  position: relative;
}

@media (max-width: 37.5rem) /* 600px */
{
  #current-movies 
  {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;        
    -ms-overflow-style: none;  
  }

  #current-movies::-webkit-scrollbar 
  {
    display: none;                 
  }

  .current-movies-poster 
  {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
  }

  .slider-arrow 
  {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: background-color 0.3s ease;
  }

  .slider-arrow.left 
  {
    left: 0.5rem;
  }

  .slider-arrow.right 
  {
    right: 0.5rem;
  }
}

@media (min-width: 37.5625rem) /* 601px */
{
  .slider-arrow 
  {
    display: none !important;
  }
}

/* ---------------------------------------------------------------------------------------- */

.showtimes-button
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 3.8rem;
    height: 3.8rem;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);
    color: #fff;

    font-size: 1.4rem;
    cursor: pointer;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    animation: showtimePulse 6s infinite;
}

#cinema-modal 
{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.25); 
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cinema-modal-content 
{
    position: relative;
    background: #f4f4f4;
    padding: 2rem 2.5rem; /* 32px 40px */
    border-radius: 16px;
    width: 90%;
    max-width: 26.25rem; /* 420px */
    max-height: 90vh; 
    overflow-y: auto; 
    color: #000; 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.4s ease;
    box-sizing: border-box;
}

.cinema-modal-content h3 
{
    text-align: center;
    font-size: 1.75rem; /* 28px */
    margin-bottom: 1.25rem; /* 20px */
    color: #d4af37; 
    letter-spacing: 1px;
}

.close-modal 
{
    position: absolute;
    top: 0.75rem; /* 12px */
    right: 0.75rem; /* 12px */
    background: transparent;
    border: none;
    font-size: 1.75rem; /* 28px */
    font-weight: bold;
    color: #d4af37;   
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.close-modal:hover 
{
    color: #b8860b;    
}

@keyframes fadeIn 
{
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.schedule-table 
{
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem; /* 24px */
    font-size: 0.95rem; /* 15.2px */
}

.schedule-table thead 
{
    background: rgba(212, 175, 55, 0.15); 
}

.schedule-table th, .schedule-table td 
{
    padding: 0.75rem; /* 12px */
    text-align: center;
}

.schedule-table th 
{
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.schedule-table tbody tr 
{
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.schedule-table tbody tr:last-child 
{
    border-bottom: none;
}

.schedule-table td 
{
    background: rgba(212, 175, 55, 0.05);
    color: #000; 
}

@media (max-width: 37.5rem) /* 600px */
{
    #cinema-modal 
    {
        align-items: flex-start; 
        padding: 1rem; /* 16px */ 
    }
}

@keyframes showtimePulse
{
  0%   { transform: translate(-50%, -50%) scale(1); }
  5%   { transform: translate(-50%, -50%) scale(1.2); }
  10%  { transform: translate(-50%, -50%) scale(1); }

  15%  { transform: translate(-50%, -50%) scale(1.2); }
  20%  { transform: translate(-50%, -50%) scale(1); }

  25%  { transform: translate(-50%, -50%) scale(1.2); }
  30%  { transform: translate(-50%, -50%) scale(1); }

  35%  { transform: translate(-50%, -50%) scale(1.2); }
  40%  { transform: translate(-50%, -50%) scale(1); }

  100% { transform: translate(-50%, -50%) scale(1); }
}

/* ---------------------------------------------------------------------------------------- */

#current-movies 
{
    opacity: 0;
}

#current-movies.visible 
{
    opacity: 1;
}