/* layout */
.content { padding: 3rem 1.5rem; max-width:1200px; margin:0 auto; }
.content-section { min-height: 220px; }

/* Hero Section */
.list-hero-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    margin-bottom: 30px; 
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.list-hero-grid .hero-left h1 { 
    font-size: 2.5rem; 
    margin: 0; 
    font-weight: 800; 
    color: #fff; 
    line-height: 1.1;
}
.list-hero-grid .hero-left .muted { 
    color: #999; 
    margin-top: 6px; 
    font-size: 1rem;
}
.list-hero-grid .hero-right { display:none; } /* Hide empty container */

/* Watchlist Grid (New Grid Layout) */
#mylist-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

/* watch-card (clean, modern glass card) */
.watch-card {
  display: flex; 
  gap: 18px; 
  align-items: center; 
  padding: 16px; 
  border-radius: 16px;
  
  /* Glass Effect */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  transition: transform .25s cubic-bezier(.2,.9,.2,1), box-shadow .25s, background .25s;
  cursor: pointer;
}
.watch-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); 
    background: rgba(255, 255, 255, 0.08);
}

.poster { 
    width: 80px; 
    height: 120px; 
    object-fit: cover; 
    border-radius: 10px; 
    flex-shrink: 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
}

.meta { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    min-width: 0; /* Allow title/sub to truncate */
}

.title { 
    font-weight: 700; 
    font-size: 1.1rem; 
    color: #fff; 
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.meta-sub { 
    font-size: 0.85rem; 
    color: #aeb0b6; 
}
.actions { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    flex-shrink: 0;
}

/* Redesigned Action Buttons */
.actions .action-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    height: 40px;
    padding: 0 12px;
    border-radius: 10px; 
    font-size: 0.9rem;
    font-weight: 600;
    transition: all .2s ease;
}

.actions .play { 
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; 
    text-decoration: none; 
    width: 40px; /* circle for play */
    padding: 0;
}
.actions .play i { font-size: 1.1rem; }

.actions .remove { 
    border: 1px solid #ff6b6b; 
    background: rgba(255,107,107,0.1); 
    color: #ff6b6b; 
    cursor: pointer; 
    padding: 0 14px;
    gap: 6px;
}
.actions .remove:hover { 
    background: rgba(255,107,107,0.2); 
    color: #fff;
}

/* empty state (modern card) */
.empty-state { 
    text-align: center; 
    margin-top: 40px; 
    color: #bdbdbd; 
    padding: 40px; 
    border-radius: 20px; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.06); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.empty-state h3 { 
    margin-bottom: 12px; 
    color: #fff; 
    font-size: 1.3rem; 
    font-weight: 700;
}
.empty-state p { 
    margin-bottom: 20px;
}
.btn.go-browse { 
    display:inline-flex; /* Use flex for button consistency */
    align-items: center;
    justify-content: center;
    margin-top: 12px; 
    padding: 12px 20px; 
    border-radius: 12px; 
    background:linear-gradient(135deg,#ff6a00,#d35400); 
    color:#fff; 
    text-decoration:none; 
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn.go-browse:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 106, 0, 0.4);
}

/* Responsive */
@media (max-width: 900px){
    #mylist-container {
        grid-template-columns: 1fr;
    }
    .list-hero-grid .hero-left h1 { 
        font-size: 2rem; 
    }
}

@media (max-width:768px){
  .content { padding: 2rem 1rem; }
  .watch-card { 
      gap: 14px; 
      padding: 12px; 
      border-radius: 12px;
      flex-direction: row; /* Keep horizontal layout */
      align-items: flex-start;
  }
  .poster { width: 70px; height: 105px; }
  .meta { gap: 4px; }
  .title { font-size: 1rem; }
  .meta-sub { font-size: 0.8rem; }
  .actions .play { width: 36px; height: 36px; }
  .actions .remove { padding: 0 10px; height: 36px; }
}