



























  /** {*/
  /*          margin: 0;*/
  /*          padding: 0;*/
  /*          box-sizing: border-box;*/
  /*          font-family: 'Poppins', sans-serif;*/
  /*      }*/

        /*body {*/
        /*    background-color: var(--light-bg);*/
        /*    color: var(--black);*/
        /*    line-height: 1.6;*/
        /*}*/

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
                        font-family: 'Poppins', sans-serif;

        }

        /* Message Styling */
        .message {
            position: fixed;
            top: 122px;
            right: 20px;
            background-color: var(--white);
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: var(--box-shadow);
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1000;
            animation: slideIn 0.3s ease-out;
            border-left: 4px solid var(--primary-500);
        }

        @keyframes slideIn {
            from { transform: translateX(100%); }
            to { transform: translateX(0); }
        }

        .message i {
            cursor: pointer;
            color: var(--primary-700);
        }

        /* Playlist Header */
        .playlist-header {
            background: var(--gradient-primary);
            color: var(--white);
            padding: 40px 0;
            margin-bottom: 30px;
            border-radius: 0 0 20px 20px;
            box-shadow: var(--box-shadow);
                        font-family: 'Poppins', sans-serif;

        }

        .playlist-header .container {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .playlist-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 10px;
        }

        .playlist-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 14px;
        }

        .playlist-meta i {
            font-size: 16px;
        }

        .playlist-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .playlist-description {
            font-size: 1.1rem;
            max-width: 800px;
            opacity: 0.9;
        }

        .playlist-actions {
            display: flex;
            gap:5px;
            margin-top: 20px;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 30px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .btn-primary {
            background-color: var(--white);
            color: var(--primary-700);
            border: 2px solid var(--white);
        }

        .btn-primary:hover {
            background-color: transparent;
            color: var(--white);
        }

        .btn-outline {
            background-color: transparent;
            color: var(--white);
            border: 2px solid var(--white);
        }

        .btn-outline:hover {
            background-color: var(--white);
            color: var(--primary-700);
        }

        /* Playlist Content */
        .playlist-content {
            display: flex;
            gap: 30px;
            margin-bottom: 40px;
        }

        .playlist-thumbnail {
            flex: 0 0 300px;
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--box-shadow);
            height: fit-content;
        }

        .playlist-thumbnail img {
            width: 100%;
            display: block;
        }

        .video-count {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: var(--primary-opacity-70);
            color: var(--white);
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            backdrop-filter: blur(5px);
        }

        .save-playlist {
            position: absolute;
            bottom: 15px;
            right: 15px;
        }

        .save-playlist button {
            background-color: var(--primary-opacity-70);
            color: var(--white);
            border: none;
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            backdrop-filter: blur(5px);
            transition: all 0.3s ease;
        }

        .save-playlist button:hover {
            background-color: var(--primary-opacity);
            color: var(--white);
        }

        .save-playlist button i {
            font-size: 18px;
        }

        .playlist-details {
            flex: 1;
        }

        .tutor-info {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .tutor-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary-300);
        }

        .tutor-text h3 {
            font-size: 1.2rem;
            margin-bottom: 5px;
            color: var(--primary-700);
        }

        .tutor-text span {
            color: var(--primary-600);
            font-size: 14px;
        }

        .playlist-stats {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--primary-700);
            font-size: 14px;
        }

        .stat-item i {
            color: var(--primary-500);
        }

        .full-description {
            background-color: var(--white);
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }

        .full-description h3 {
            margin-bottom: 15px;
            color: var(--primary-700);
        }

        /* Videos Section */
        .videos-section {
            margin-bottom: 60px;
        }

        .section-title {
            font-size: 1.8rem;
            margin-bottom: 25px;
            color: var(--primary-700);
            position: relative;
            padding-bottom: 10px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: var(--gradient2);
            border-radius: 3px;
        }

        .videos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
        }

        .video-card {
            background-color: var(--white);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
        }

        .video-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 150, 165, 0.1);
        }

        .video-thumbnail {
            position: relative;
            height: 160px;
            overflow: hidden;
        }

        .video-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .video-card:hover .video-thumbnail img {
            transform: scale(1.05);
        }

        .play-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: var(--primary-opacity-70);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 24px;
            backdrop-filter: blur(5px);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .video-card:hover .play-icon {
            opacity: 1;
        }

        .video-info {
            padding: 15px;
        }

        .video-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--black);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .empty-message {
            text-align: center;
            padding: 40px 0;
            color: var(--primary-600);
            grid-column: 1 / -1;
        }


           /* Additional styles for better description display */
        .full-description p {
            white-space: pre-line; /* Preserves line breaks from the database */
            line-height: 1.6;
        }
        
        .video-desc {
            color: var(--primary-600);
            font-size: 0.9rem;
            margin-top: 8px;
        }
        
        .empty-message {
            text-align: center;
            padding: 40px;
            color: var(--primary-600);
            font-size: 1.1rem;
            grid-column: 1 / -1;
        }
        
        
        /* Responsive Design */
        @media (max-width: 992px) {
            .playlist-content {
                flex-direction: column;
            }

            .playlist-thumbnail {
                flex: 1 1 100%;
                max-width: 500px;
                margin: 0 auto;
            }
        }

        @media (max-width: 768px) {
            .playlist-title {
                font-size: 2rem;
            }

            .playlist-header {
                padding: 30px 0;
            }

            .videos-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
        }

        @media (max-width: 576px) {
            .playlist-title {
                font-size: 1.8rem;
            }

            .playlist-actions {
                flex-direction: column;
                width: 100%;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }

            .tutor-info {
                flex-direction: column;
                text-align: center;
            }

            .playlist-stats {
                justify-content: center;
            }

            .videos-grid {
                grid-template-columns: 1fr;
            }
        }