/* Landing Page Styling */
.landing-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.left-panel {
    flex: 1;
    background: #6a5acd;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo {
    width: 60px;
    height: 60px;
}

.left-panel h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
}

.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
}

.login-wrapper {
    width: 90%;
    max-width: 450px;
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.login-wrapper p {
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.forgot-password {
    color: #007bff;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.register-link {
    margin-top: 1.5rem;
    text-align: center;
}

.register-link a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Student Dashboard */
.student-dashboard {
    display: flex;
    min-height: 100vh;
}

.lecture-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.lecture-card:hover {
    transform: translateY(-5px);
}

.lecture-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.lecture-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lecture-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.lecture-description {
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
    margin-bottom: 15px;
}

.watch-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.watch-button:hover {
    background-color: #0056b3;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.test-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.test-card h3 {
    margin-top: 0;
    color: #ffffff;
}

.test-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.test-card .btn {
    display: inline-block;
    background-color: #6a1b9a;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.test-card .btn:hover {
    background-color: #4a148c;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.empty-state i {
    font-size: 3rem;
    color: #6a1b9a;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.2rem;
    color: #666;
}

.playlist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 5%;
    margin: 0 auto 50px;
    max-width: 1600px;
}

.playlist-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

/* Playlist View Page – global styles for student/playlist.php */
.page-playlist .container { max-width: 1280px; }
.page-playlist .main-content { margin-left: 280px; padding: 2rem; }
.page-playlist .playlist-header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding-bottom:1rem; border-bottom:1px solid #eef2f6; margin-bottom:1rem; }
.page-playlist .playlist-header h1 { font-size: 1.8rem; font-weight: 700; color:#1f2937; display:flex; align-items:center; gap:.6rem; }
.page-playlist .playlist-header p { color:#6b7280; font-size:1rem; }
.page-playlist .actions { display:flex; align-items:center; gap:.6rem; }
.page-playlist .btn { background:#f3f4f6; color:#374151; border:1px solid #e5e7eb; border-radius:8px; padding:.5rem .8rem; display:inline-flex; align-items:center; gap:.45rem; font-weight:500; text-decoration:none; cursor:pointer; }
.page-playlist .btn:hover { background:#e9edf3; }
.page-playlist .btn.primary { background:#6f42c1; color:#fff; border-color:#6f42c1; }

.page-playlist .playlist-body { display:flex !important; gap:2rem; align-items:flex-start; width:100%; }
.page-playlist .playlist-body .video-player { flex:1 1 auto; background:#000; border-radius:12px; overflow:hidden; box-shadow:0 8px 25px rgba(0,0,0,0.18); min-height:420px; }
.page-playlist .video-player iframe { width:100%; height:65vh !important; min-height:480px !important; border:0; display:block; }
.page-playlist .video-player h2 { color:#fff; padding:1rem 1.5rem; background:#6f42c1; margin:0; font-size:1.1rem; font-weight:600; }

.page-playlist .video-queue { flex:0 0 340px !important; position:sticky !important; top:1rem; background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:1rem; max-height:70vh; overflow:auto; box-shadow:0 4px 14px rgba(0,0,0,0.06); }
.page-playlist .video-queue h3 { color:#374151; font-size:1rem; font-weight:600; display:flex; align-items:center; justify-content:space-between; margin:0 0 .75rem; }
.page-playlist .video-queue .count { font-size:.9rem; color:#6b7280; }
.page-playlist .queue-search { display:flex; align-items:center; gap:.5rem; margin-bottom:.75rem; }
.page-playlist .queue-search input { width:100%; padding:.55rem .75rem; border:1px solid #e5e7eb; border-radius:8px; font-size:.95rem; }

.page-playlist .video-item { display:flex; align-items:center; gap:.75rem; padding:.8rem 1rem; border:2px solid transparent; border-radius:10px; background:#fff; margin-bottom:.6rem; cursor:pointer; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.page-playlist .video-item:hover { transform:translateX(4px); border-color:#d1d5db; box-shadow:0 6px 16px rgba(0,0,0,0.08); }
.page-playlist .video-item.active { background:#e5e7eb; color:#111827; border-color:#d1d5db; }
.page-playlist .video-item .num { width:32px; height:28px; border-radius:8px; background:#f1f5f9; color:#111827; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem; flex-shrink:0; border:1px solid #e5e7eb; cursor:pointer; }
.page-playlist .video-item.active .num { background:#4c2ea1; color:#fff; }
.page-playlist .video-item i { color:#6f42c1; font-size:1rem; }
.page-playlist .video-item.active i, .page-playlist .video-item.active .video-item-title { color:#111827; }

/* Thumbnail inside queue items */
.page-playlist .video-item .thumb { width: 88px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

.page-playlist .meta-chips { display:flex; gap:.5rem; margin-top:.5rem; flex-wrap:wrap; }
.page-playlist .chip { display:inline-flex; align-items:center; gap:.4rem; background:#f8f9fa; color:#495057; padding:.35rem .6rem; border:1px solid #e9ecef; border-radius:999px; font-size:.85rem; }

@media (max-width: 1024px) { .page-playlist .video-player iframe { height: 50vh !important; min-height: 380px !important; } }
@media (max-width: 768px) {
  .page-playlist .main-content { margin-left: 0; padding: 1rem; }
  .page-playlist .playlist-body { flex-direction: column; }
  .page-playlist .video-queue { position: static !important; max-height:none; }
}

.playlist-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.playlist-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #9d46b1;
    margin-bottom: 15px;
}

.playlist-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 25px;
}

.explore-btn {
    background: linear-gradient(135deg, #9d46b1, #7c2997);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(157, 70, 177, 0.3);
}

.explore-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(157, 70, 177, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.sidebar {
    width: 250px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar .logo img {
    max-width: 80%;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.nav-link {
    color: #555;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background-color: #6a5acd;
    color: #fff;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
}

.user-role {
    font-size: 0.9em;
    color: white;
}

.logout-btn {
    background: none;
    border: none;
    color: #555;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: auto;
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 2em;
    font-weight: 700;
    color: #000000;
}

.dashboard-header p {
    color: #000000;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-card i {
    font-size: 2.5em;
    color: #6a5acd;
}

.stat-info h3 {
    margin: 0;
    font-size: 1em;
    color: #888;
}

.stat-info span {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
}

.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.dashboard-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.dashboard-card h2 {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.dashboard-card p {
    color: #000000;
    margin-bottom: 20px;
}

.card-btn {
    background-color: #6a5acd;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.card-btn:hover {
    background-color: #5a4ab9;
}

/* Admin Dashboard */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background-color: #f0f2f5;
    font-family: 'Poppins', sans-serif;
}

.sidebar {
    width: 240px;
    background-color: #fff;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.sidebar .logo {
    padding: 0;
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar .logo img {
    max-width: 100px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-nav .nav-item:hover {
    background-color: #f0f4f8;
    color: #6a5acd;
}

.sidebar-nav .nav-item.active {
    background-color: #6a5acd;
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 124, 255, 0.3);
}

.sidebar-nav .nav-item i {
    font-size: 1.2rem;
}

.sidebar-footer {
    margin-top: auto;
}

.sidebar-footer .logout-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #d9534f;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-bottom: 50px;
}

.sidebar-footer .logout-btn:hover {
    background-color: #fce8e6;
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Make admin sidebar sticky */
.admin-dashboard .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 1000;
}

.admin-dashboard .main-content {
    margin-left: 260px;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #000000;
}

.dashboard-header p {
    font-size: 1.1rem;
    color: #000000;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: #6a5acd;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.stat-info p {
    font-size: 1rem;
    color: #777;
    margin: 0;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.upload-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.upload-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-form .form-group select,
.upload-form .form-group input {
    width: 90%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.upload-form .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.upload-form .submit-btn {
    background-color: #6a5acd;
    color: #fff;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-form .submit-btn:hover {
    background-color: #3a6ad5;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

table th {
    font-weight: 600;
    color: #000000;
}

.badge {
    background-color: #e0eafc;
    color: #6a5acd;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-weight: 500;
}

.action-btn {
    color: #000000;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.3s ease;
}

.action-btn:hover {
    opacity: 0.8;
}

.view-btn {
    background-color: #28a745;
}

.delete-btn {
    background-color: #dc3545;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.message-banner {
    padding: 1rem;
    background-color: #e0eafc;
    color: #3a6ad5;
    border-left: 5px solid #6a5acd;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-cancel {
    background-color: #6c757d;
    color: #fff;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

.edit-btn {
    background-color: #ffc107;
}

.playlist-list-admin {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.playlist-item-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.playlist-item-admin:hover {
    background-color: #f1f1f1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.playlist-item-admin a {
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.video-edit-form {
    display: contents;
}

.video-preview {
    width: 150px;
    height: 85px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-link {
    color: #6a5acd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.file-link:hover {
    color: #3a6ad5;
}

.file-link i {
    margin-right: 0.5rem;
}

.page-playlist .video-item .info { flex:1; min-width:0; }
.page-playlist .video-item .title { font-weight:600; font-size:.95rem; color:#111827; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
.page-playlist .video-item .meta { color:#6b7280; font-size:.8rem; margin-top:.15rem; }

/* --- Modern Playlist UI (v2) --- */
.page-playlist.page-playlist-modern .playlist-header.playlist-hero {
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: .75rem 1rem;
  border: 1px solid #e6e8ec;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}
.page-playlist.page-playlist-modern .playlist-hero .hero-title {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}
.page-playlist.page-playlist-modern .playlist-hero .hero-desc {
  color: #475569;
  font-size: .9rem;
  max-width: 60ch;
}
.page-playlist.page-playlist-modern .playlist-hero .chip {
  padding: .35rem .6rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.page-playlist.page-playlist-modern .chip { background: #f8fafc; color:#0f172a; border-color: #e6e8ec; }
.page-playlist.page-playlist-modern .actions .btn { background: #f3f4f6; color:#374151; border-color: #e5e7eb; }
.page-playlist.page-playlist-modern .actions .btn:hover { background: #e9edf3; }
.page-playlist.page-playlist-modern .actions .btn.primary { background:#6f42c1; color:#fff; border-color:#6f42c1; box-shadow: 0 6px 12px rgba(111,66,193,.25); }

/* Enhanced play icon badge in hero title */
.page-playlist.page-playlist-modern .playlist-hero .fa-play-circle {
  color: #6f42c1;
  background: #f3e8ff;
  border-radius: 999px;
  padding: .45rem;
  font-size: 1rem;
  box-shadow: 0 8px 12px rgba(111,66,193,.12);
}

/* Responsive stacking for hero */
@media (max-width: 768px) {
  .page-playlist.page-playlist-modern .playlist-hero .hero-title { font-size: 1.1rem; }
  .page-playlist.page-playlist-modern .playlist-hero .hero-desc { display: none; }
}

/* Player exactly half width layout */
.page-playlist.page-playlist-modern .playlist-body { display: grid; grid-template-columns: 1fr 1fr; }
.page-playlist.page-playlist-modern .container { max-width: 100%; }
.page-playlist.page-playlist-modern .video-player { width: 100%; }
.page-playlist.page-playlist-modern .queue-panel { width: 100%; }

.page-playlist.page-playlist-modern .playlist-body { gap: 1.5rem; }
.page-playlist.page-playlist-modern .video-player h2 { background: #2b214a; }
.page-playlist.page-playlist-modern .queue-panel { box-shadow: 0 8px 20px rgba(0,0,0,0.06); border-color:#e6e8ec; }
.page-playlist.page-playlist-modern .video-queue.collapsed { display: none; }

/* widen player area to make YouTube cue thumbnail fill more space */
.page-playlist.page-playlist-modern .container { max-width: 100%; }
.page-playlist.page-playlist-modern .playlist-body { display: grid; grid-template-columns: minmax(50vw, 1fr) 300px; }
.page-playlist.page-playlist-modern .video-player { width: 100%; }
.page-playlist.page-playlist-modern .video-player iframe { width: 100%; aspect-ratio: 16 / 9; height: auto !important; min-height: 0 !important; }

/* YouTube-style cards */
.page-playlist.page-playlist-modern .yt-card.video-item {
  display:flex;
  align-items:center;
  gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  background: #fff;
  margin-bottom: .7rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.page-playlist.page-playlist-modern .yt-card.video-item:hover { transform: translateX(4px); border-color: #d3d7dd; box-shadow: 0 10px 22px rgba(0,0,0,0.08); }
.page-playlist.page-playlist-modern .yt-card.video-item.active { background: #f2f3f7; border-color: #cfd3da; }
.page-playlist.page-playlist-modern .yt-card .thumb-wrap { position: relative; flex-shrink:0; }
.page-playlist.page-playlist-modern .yt-card .thumb { width: 200px; height: 112px; object-fit: cover; border-radius: 10px; }
.page-playlist.page-playlist-modern .yt-card .details { flex: 1; min-width: 0; }
.page-playlist.page-playlist-modern .yt-card .title { font-weight: 600; font-size: .98rem; color: #0f172a; display:-webkit-box; -webkit-box-orient:vertical; line-clamp: 2; -webkit-line-clamp:2; overflow:hidden; }
.page-playlist.page-playlist-modern .yt-card .meta-line { color: #64748b; font-size: .82rem; margin-top: .2rem; }
.page-playlist.page-playlist-modern .yt-card .badge { width: 36px; height: 30px; border-radius: 10px; background: #eef2f7; color:#0f172a; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:.9rem; border:1px solid #e6e8ec; cursor:pointer; }
.page-playlist.page-playlist-modern .yt-card.video-item.active .badge { background:#6f42c1; color:#fff; border-color:#6f42c1; }

@media (max-width: 1024px) { .page-playlist.page-playlist-modern .yt-card .thumb { width: 140px; height: 78px; } }
@media (max-width: 768px) {
  .page-playlist.page-playlist-modern .main-content { margin-left: 0; padding: 1rem; }
  .page-playlist.page-playlist-modern .playlist-body { flex-direction: column; }
  .page-playlist.page-playlist-modern .video-player iframe { height: 50vh !important; min-height: 360px !important; }
}

