/* Container */
.gallery-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  overflow: hidden;
}

/* Title */
.gallery-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-weight: 900;
}

/* Horizontal scroll container */
.gallery-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  padding-left: 1rem;
  scroll-snap-type: x mandatory;   
}

.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}
.gallery-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 4px;
}
.gallery-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* Card */
.reel-card {
  flex: 0 0 auto;          
  width: 320px;            
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  scroll-snap-align: start;
}

/* Thumbnail */
.reel-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #0b0e1a;
  overflow: hidden;
}
.reel-thumbnail > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info */
.reel-info {
  padding: 14px 16px;
}
.reel-info h3 {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
  color: var(--text);
}
.reel-info p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.empty-state{
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: var(--text);
}

.empty-state p{
  color: var(--muted);
  max-width: 420px;
}

.reel-thumbnail video{
  width: 100%;
  aspect-ratio: 9 / 16;      
  height: auto;
  object-fit: cover;
  background: #000;
  border-radius: 14px;
}

/* Make the card a clean vertical layout */
.reel-card{
  display: flex;
  flex-direction: column;
}

/* Keeps info + actions aligned */
.reel-info{
  padding: 14px 16px;
}

.reel-actions{
  padding: 16px 16px 16px;
  margin-top: auto;
}

/* Delete button – consistent width & alignment */
.delete-btn{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,12);
  background: rgba(255, 60, 60, .10);
  color: var(--text);

  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;

  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.delete-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 18px rgba(0,0,0,.25);
  background-color: red;
}

/* ===== Delete Modal (matches style.css dark glass) ===== */

.modal-backdrop.show{
  opacity: .75; /* stronger, more cinematic */
}

/* Modal surface */
.delete-modal{
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(124,92,255,14), transparent 60%),
    radial-gradient(700px 380px at 100% 10%, rgba(90,169,255,10), transparent 60%),
    linear-gradient(180deg, rgba(21,25,50,.92), rgba(15,18,32,.92));
  border: 1px solid rgba(255,255,255,08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  backdrop-filter: blur(10px);
}

/* Header */
.delete-modal .modal-header{
  border-bottom: 1px solid rgba(255,255,255,06);
}
.delete-modal .modal-title{
  font-weight: 900;
  letter-spacing: .2px;
}

/* Body text */
.delete-modal-text{
  margin: 0;
  color: var(--text);
  font-weight: 650;
}
.delete-modal-subtext{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.delete-reel-name{
  font-weight: 900;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Footer */
.delete-modal-footer{
  border-top: 1px solid rgba(255,255,255,06);
  gap: 10px;
}

/* Buttons */
.btn-cancel, .btn-danger-soft{
  border: 1px solid rgba(255,255,255,10);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease;
}

.btn-cancel{
  background: rgba(255,255,255,06);
  color: grey;

}
.btn-cancel:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.05);
  color: black;
}

/* Danger button: dark glass + red tint */
.btn-danger-soft{
  background: linear-gradient(180deg, rgba(255, 60, 60, .18), rgba(255, 60, 60, .10));
  color: var(--text);
  border-color: rgba(255, 60, 60, .25);
}
.btn-danger-soft:hover{
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 10px 25px rgba(255, 60, 60, .18);
  background-color: red;
}

/* Make bootstrap close icon visible on dark */
.delete-modal .btn-close{
  opacity: .9;
}
.delete-modal .btn-close:hover{
  opacity: 1;
}


/* FULLSCREEN : desktop */
.reel-thumbnail video:fullscreen{
  height: 100vh !important; 
  width: auto !important;    
  max-width: 100vw !important;
  object-fit: contain;    
  background: #000;
  border-radius: 0 !important;
}

/* Chrome / Safari */
.reel-thumbnail video:-webkit-full-screen{
  height: 100vh !important;
  width: auto !important;
  max-width: 100vw !important;
  object-fit: contain;
  background: #000;
  border-radius: 0 !important;
}

/* Firefox */
.reel-thumbnail video:-moz-full-screen{
  height: 100vh !important;
  width: auto !important;
  max-width: 100vw !important;
  object-fit: contain;
  background: #000;
  border-radius: 0 !important;
}
