/* Extracted from resources/views/share/category.blade.php (block 1) */

/* ---- Music Playlist layout (displayMode === 'music_playlist') ---- */
/* .share-playlist-body has its background set inline from the category owner's
   preference (gradient/image/solid). Fallback here for when none is set. */
.share-playlist-body:not([style]) {
    background: #0f0f0f;
}

.share-playlist-body .header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    height: 54px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.share-playlist-body .header h1 {
    font-size: 25px;
    margin-top:54px !important;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0.2px;
    line-height: 1;
}

.share-playlist-body .header p {
    display: none;
}

.share-playlist-wrap {
    padding: 24px 16px 48px;
    background: transparent;
}

.share-playlist-container {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    color: #f1f1f1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.share-playlist-sidebar {
    flex: 0 0 360px;
    background: linear-gradient(180deg, #1f1f1f 0%, #0f0f0f 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    height: fit-content;
    position: sticky;
    top: 16px;
}

.share-playlist-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #333;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.share-playlist-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
    word-wrap: break-word;
}

.share-playlist-meta {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 16px;
}

.share-playlist-transport {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.share-playlist-transport-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.share-playlist-transport-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.share-playlist-transport-btn:active {
    transform: scale(0.95);
}

.share-playlist-transport-btn.share-playlist-transport-play {
    width: 52px;
    height: 52px;
    background: #fff;
    color: #0f0f0f;
}

.share-playlist-transport-btn.share-playlist-transport-play:hover {
    background: #f0f0f0;
}

.share-playlist-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.share-playlist-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.share-playlist-player-wrap iframe,
.share-playlist-player-wrap #sharePlaylistPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.share-playlist-player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background-color: #000;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    z-index: 1;
    overflow: hidden;
}

.share-playlist-player-placeholder-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.15s;
}

.share-playlist-player-placeholder:hover .share-playlist-player-placeholder-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.share-playlist-player-placeholder-play {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #0f0f0f;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s, background 0.15s;
}

.share-playlist-player-placeholder:hover .share-playlist-player-placeholder-play {
    transform: scale(1.08);
    background: #fff;
}

.share-playlist-player-placeholder-play svg {
    margin-left: 4px;
}

.share-playlist-list {
    background: #1f1f1f;
    border-radius: 12px;
    padding: 8px;
}

.share-playlist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.share-playlist-item:hover { background: #2a2a2a; }
.share-playlist-item.playing { background: #3a3a3a; }
.share-playlist-item.playing .share-playlist-item-title { color: #4facfe; }

.share-playlist-item-index {
    flex: 0 0 24px;
    color: #888;
    font-size: 13px;
    padding-top: 12px;
    text-align: center;
}

.share-playlist-item-thumb {
    flex: 0 0 120px;
    aspect-ratio: 16 / 9;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
}

.share-playlist-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.share-playlist-item-info { flex: 1 1 auto; min-width: 0; }

.share-playlist-item-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-playlist-item-desc {
    color: #aaa;
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-playlist-body .footer {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.share-playlist-body .footer a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .share-playlist-container { flex-direction: column; gap: 16px; }
    .share-playlist-sidebar { flex: 0 0 auto; position: static; }
}

:root {
            --primary: #4facfe;
            --primary-dark: #00f2fe;
            --bg-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --card-bg: white;
            --text-main: #1e293b;
            --text-muted: #64748b;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background: #f8fafc;
            min-height: 100vh;
            color: var(--text-main);
        }

        .header {
            background: var(--bg-gradient);
            padding: 22px 20px 24px;
            text-align: center;
            color: white;
            margin-bottom: 24px;
            position: relative;
        }

        .header h1 {
            font-size: 28px;
            font-weight: 800;
            margin-bottom: 4px;
            line-height: 1.1;
        }

        .header p {
            opacity: 0.9;
            font-size: 14px;
            margin: 0;
        }

        .share-back-link {
            position: absolute;
            top: 20px;
            left: 20px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            backdrop-filter: blur(6px);
            transition: background 0.15s;
            z-index: 2;
        }

        .share-back-link:hover {
            background: rgba(255, 255, 255, 0.35);
        }

        .share-playlist-body .share-back-link {
            position: fixed;
            top: 12px;
            left: 12px;
            padding: 4px 12px;
            font-size: 13px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px 60px;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 24px;
        }

        .bookmark-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
        }

        .bookmark-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .preview {
            width: 100%;
            aspect-ratio: 16/9;
            background: #e2e8f0;
            position: relative;
        }

        .preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .placeholder {
            width: 100%;
            height: 100%;
            background: var(--bg-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            font-weight: bold;
        }

        .content {
            padding: 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .description {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.5;
            margin-bottom: 16px;
            flex: 1;
        }

        .footer-info {
            font-size: 12px;
            color: var(--primary);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .footer {
            text-align: center;
            padding: 40px;
            color: var(--text-muted);
            font-size: 14px;
        }

        .footer a {
            color: var(--primary);
            font-weight: 700;
            text-decoration: none;
        }
