/* src/public/css/content.css */

/* Filter Buttons */
.filter-btn-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-btn {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e0e0e0;
    padding: 0.5rem 1rem;
}

    .filter-btn:hover, .filter-btn.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: #667eea;
    }

/* Bulk Actions */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

    .bulk-actions.hidden {
        display: none;
    }

.bulk-select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.bulk-delete-btn {
    background: #dc3545 !important;
    color: white !important;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
}

    .bulk-delete-btn:hover {
        background: #c82333 !important;
    }

    .bulk-delete-btn:disabled {
        background: #6c757d !important;
        cursor: not-allowed !important;
        transform: none !important;
    }

.selected-count {
    color: #667eea;
    font-weight: 600;
}

/* Content Items */
.content-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    position: relative;
}

    .content-item:last-child {
        border-bottom: none;
    }

    .content-item:hover {
        background: #f8f9fa;
    }

    .content-item.selected {
        background: #e6f3ff;
        border-left: 4px solid #667eea;
    }

.content-checkbox {
    margin-right: 1rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    align-self: center;
}

.content-poster {
    width: 80px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.content-info {
    flex: 1;
}

    .content-info h4 {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        font-size: 1.3rem;
        font-weight: 600;
    }

.content-type {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
}

    .content-type.series {
        background: #28a745;
    }

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 1rem;
    align-self: flex-start;
    transition: all 0.2s;
    min-width: 70px;
}

    .delete-btn:hover {
        background: #c82333;
        transform: translateY(-1px);
    }

    .delete-btn:disabled {
        background: #6c757d;
        cursor: not-allowed;
        transform: none;
    }

/* Preview Items */
.preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-poster {
    width: 80px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 6px;
}

.preview-info h5 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.preview-info p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.type-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

    .type-badge.series {
        background: #28a745;
    }

/* Add to Group Button */
.add-to-group-btn {
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-top: 1rem !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

    .add-to-group-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
        background: linear-gradient(135deg, #218838 0%, #1ea080 100%) !important;
    }

    .add-to-group-btn:disabled {
        background: #6c757d !important;
        cursor: not-allowed !important;
        transform: none !important;
        box-shadow: none !important;
    }

        .add-to-group-btn:disabled:hover {
            transform: none !important;
        }

/* Expandable Content Cards */
.content-title-clickable {
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

    .content-title-clickable:hover {
        color: #667eea;
    }

.expand-icon {
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.content-item.expanded {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    margin: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    flex-wrap: wrap;
}

    .content-item.expanded .expand-icon {
        transform: rotate(180deg);
        color: #667eea;
    }

.content-basic-info {
    margin-bottom: 0.5rem;
}

.content-expanded-details {
    width: 100%;
    flex-basis: 100%;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e0e0e0;
    animation: expandIn 0.3s ease-out;
    order: 10;
}

.expanded-details-content {
    background: #ffffff;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

    .expanded-details-content p {
        margin: 0.5rem 0;
        color: #555;
        line-height: 1.5;
    }

        .expanded-details-content p:first-child {
            margin-top: 0;
        }

        .expanded-details-content p:last-child {
            margin-bottom: 0;
        }

        .expanded-details-content p strong {
            color: #333;
            font-weight: 600;
        }

    /* Special styling for synopsis */
    .expanded-details-content p:has(strong:contains("Synopsis")) {
        font-style: italic;
        background: #f9f9f9;
        padding: 0.75rem;
        border-radius: 4px;
        border-left: 3px solid #667eea;
    }

    /* Reduce spacing for IMDB Rating lines */
    .expanded-details-content p:has(strong:contains("IMDB Rating")) {
        margin: 0.25rem 0;
    }
    
    .expanded-details-content p:has(strong:contains("IMDB Rating")) strong {
        margin-right: 0.25rem;
    }

    /* Style IMDB rating links in expanded details */
    .expanded-details-content a[href*="imdb.com"] {
        color: #f39c12 !important;
        text-decoration: none !important;
        font-weight: 600;
        padding: 0.1rem 0.25rem;
        border-radius: 3px;
        transition: all 0.2s ease;
        display: inline-block;
        margin-left: 0.15rem;
        font-size: 0.85rem;
        background: rgba(243, 156, 18, 0.15);
        border: 1px solid rgba(243, 156, 18, 0.3);
    }
    
    .expanded-details-content a[href*="imdb.com"]:hover {
        color: #e67e22 !important;
        background: rgba(243, 156, 18, 0.25);
        border-color: rgba(243, 156, 18, 0.5);
        transform: translateY(-1px);
    }

@keyframes expandIn {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Enhanced content item spacing when expanded */
.content-item.expanded {
    padding: 1.5rem;
}

/* Advanced Filters Section */
.advanced-filters-section {
    margin: 1.5rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 8px 8px 0 0;
}

.filters-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.filters-header-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.toggle-filters-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toggle-filters-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.filters-content {
    padding: 1.5rem;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    margin: 0;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.filter-input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    width: 100%;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.filter-input::placeholder {
    color: #999;
    font-style: italic;
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.clear-filters-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.filter-results-text {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Sort Row (separate from filters) */
.sort-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sort-row .filter-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.sort-row .filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    white-space: nowrap;
}

.sort-row .filter-select {
    flex: 1;
    max-width: 300px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    border: 2px solid #ced4da;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sort-row .filter-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Save Sort Button - Hidden (functionality moved to edit mode only) */
.save-sort-btn {
    display: none !important;
}

/* Search Row (matching sort row styling) */
.search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-row .filter-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.search-row .filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    white-space: nowrap;
}

.search-row .filter-input {
    flex: 1;
    max-width: 400px;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    border: 2px solid #ced4da;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-row .filter-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.search-row .filter-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Drag and Drop Styles */
.content-item.sortable-item {
    position: relative;
    transition: all 0.2s ease;
}

.content-item.sortable-item:not(.expanded) {
    cursor: grab;
}

.content-item.sortable-item.sortable-chosen {
    background: #e3f2fd;
    border-left: 4px solid #667eea;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    z-index: 1000;
    cursor: grabbing;
}

.content-item.sortable-item.sortable-ghost {
    opacity: 0.5;
    background: #f0f0f0;
    transform: rotate(2deg);
}

.content-item.sortable-item.sortable-chosen {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.content-item.dragging-active {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.drag-handle {
    position: absolute;
    left: 0.25rem;
    top: 0.25rem;
    color: #999;
    cursor: grab;
    font-size: 0.9rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.drag-handle:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.drag-handle:active {
    cursor: grabbing;
    background: rgba(102, 126, 234, 0.25);
}

.drag-handle.disabled {
    color: #ccc !important;
    cursor: not-allowed !important;
    background: rgba(200, 200, 200, 0.3) !important;
    border-color: rgba(200, 200, 200, 0.5) !important;
    opacity: 0.5;
}

.drag-handle.disabled:hover,
.drag-handle.disabled:active {
    color: #ccc !important;
    cursor: not-allowed !important;
    background: rgba(200, 200, 200, 0.3) !important;
    border-color: rgba(200, 200, 200, 0.5) !important;
}

.content-item.has-drag-handle {
    position: relative;
}

/* Mobile adjustments for filters */
@media (max-width: 768px) {
    .filters-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }
    
    .filters-header-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    /* Sort row mobile adjustments */
    .sort-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .sort-row .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        text-align: center;
    }
    
    .sort-row .filter-group label {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .sort-row .filter-select {
        max-width: none;
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    
    .drag-handle {
        left: 0.25rem;
        top: 0.25rem;
        font-size: 1rem;
        padding: 0.3rem;
        width: 28px;
        height: 28px;
    }
}

    .content-item.expanded .content-info {
        width: 100%;
    }

/* Pagination Controls */
.pagination-controls {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.pagination-info {
    text-align: center;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #999;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.page-number {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.page-number:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.page-number.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
    cursor: default;
}

.page-ellipsis {
    padding: 0.5rem;
    color: #999;
    font-size: 0.9rem;
}

/* Edit Mode Controls */
.edit-mode-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.edit-mode-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.filter-action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.edit-mode-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-mode-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.save-edit-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.cancel-edit-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Edit Mode Visual Indicator */
.edit-mode-active {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.edit-mode-active h4 {
    color: #f39c12;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.edit-mode-active p {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
}

/* Mobile pagination adjustments */
@media (max-width: 768px) {
    .pagination-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-numbers {
        order: -1;
        justify-content: center;
    }
    
    .pagination-btn {
        min-width: 120px;
        padding: 0.75rem 1rem;
    }
    
    .edit-mode-controls {
        gap: 1rem;
    }
    
    .edit-mode-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-action-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .edit-mode-btn,
    .save-edit-btn,
    .cancel-edit-btn,
    .clear-filters-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Loading and error states */
.content-expanded-details p[style*="color: #666"] {
    font-style: italic;
    text-align: center;
    color: #666 !important;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px dashed #ccc;
}

.content-expanded-details p[style*="color: #dc3545"] {
    font-style: italic;
    text-align: center;
    color: #dc3545 !important;
    background: #fff5f5;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #fed7d7;
}

.content-expanded-details p[style*="color: #999"] {
    font-style: italic;
    text-align: center;
    color: #999 !important;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    border: 1px dashed #ddd;
}

/* Recent Content Carousel */
#recentContentCarousel {
    margin-bottom: 2rem;
}

    #recentContentCarousel h3 {
        margin-bottom: 1rem;
        color: #333;
        font-size: 1.5rem;
    }

.recent-content-container {
    position: relative;
}

.recent-content-slide {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .recent-content-slide:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

.recent-content-poster {
    width: 100%;
    height: 280px;
    object-fit: contain;
    display: block;
}

.recent-content-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recent-content-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
}

.recent-content-type {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

    .recent-content-type.series {
        background: #28a745;
    }

.recent-content-rating {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f39c12;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

    .recent-content-rating a {
        color: #f39c12;
        text-decoration: none;
        transition: all 0.2s ease;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        margin: -0.25rem -0.5rem;
    }

        .recent-content-rating a:hover {
            color: #e67e22;
            background: rgba(243, 156, 18, 0.1);
            transform: translateY(-1px);
        }

        .recent-content-rating a:active {
            transform: translateY(0);
        }

/* IMDB Rating Links in Content List */
.imdb-rating-link {
    color: #f39c12 !important;
    text-decoration: none !important;
    font-weight: 600;
    padding: 0.1rem 0.25rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: inline-block;
    margin-left: 0.15rem;
    font-size: 0.85rem;
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

    .imdb-rating-link:hover {
        color: #e67e22 !important;
        background: rgba(243, 156, 18, 0.25);
        border-color: rgba(243, 156, 18, 0.5);
        transform: translateY(-1px);
    }

    .imdb-rating-link:active {
        transform: translateY(0);
    }

.recent-content-added-by {
    font-size: 0.8rem;
    color: #666;
    margin: auto 0 0 0;
    line-height: 1.4;
    padding: 0.75rem 0 1.5rem 0;
    border-top: 1px solid #f0f0f0;
}

    .recent-content-added-by small {
        color: #999;
        font-size: 0.75rem;
    }

/* Splide customization */
.recent-content-container .splide__arrow {
    background: #667eea;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.2s ease;
}

    .recent-content-container .splide__arrow:hover {
        opacity: 1;
        background: #5a6fd8;
        transform: scale(1.1);
    }

    .recent-content-container .splide__arrow svg {
        fill: white;
        width: 1rem;
        height: 1rem;
    }

    .recent-content-container .splide__arrow--prev {
        left: -1.5rem;
    }

    .recent-content-container .splide__arrow--next {
        right: -1.5rem;
    }

/* Mobile adjustments for content items */
@media (max-width: 768px) {
    /* Add better spacing between content items */
    .content-item {
        margin-bottom: 0.5rem;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 1.25rem;
    }
    
    /* Keep horizontal layout on mobile when expanded */
    .content-item.expanded {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1rem;
        margin-bottom: 1rem;
        border-bottom: 3px solid #e0e0e0;
    }
    
    /* Mobile checkbox positioning - move to top-right corner */
    .content-item .content-checkbox {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        margin: 0;
        z-index: 10;
        width: 20px;
        height: 20px;
    }
    
    .content-item.expanded .content-poster {
        width: 60px;
        margin-right: 1rem;
        margin-top: 0;
        margin-bottom: 0;
        align-self: flex-start;
    }
    
    .content-item.expanded .content-info {
        flex: 1;
        margin-top: 0;
    }
    
    /* Add space for delete button on all content items */
    .content-item .content-info {
        margin-bottom: 2.5rem;
    }
    
    /* Add better spacing between content elements on mobile */
    .content-info h4 {
        margin-bottom: 1rem;
    }
    
    .content-info p {
        margin: 0.4rem 0;
        line-height: 1.4;
    }
    
    .content-basic-info {
        margin-bottom: 0.75rem;
    }
    
    .content-basic-info p {
        margin: 0.3rem 0;
    }
    
    /* Center and lower the delete button on mobile for all items */
    .content-item .delete-btn {
        position: absolute;
        bottom: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Reduce padding on mobile for expanded details */
    .content-item.expanded .expanded-details-content {
        padding: 0.75rem;
        margin-bottom: 3rem; /* Space for delete button */
    }
    
    /* Make synopsis section more mobile-friendly */
    .expanded-details-content p:has(strong:contains("Synopsis")) {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    /* Carousel adjustments */
    .recent-content-container .splide__arrow--prev {
        left: -1rem;
    }

    .recent-content-container .splide__arrow--next {
        right: -1rem;
    }

    .recent-content-poster {
        height: 300px;
        max-width: 220px;
        width: 220px;
        margin: 0 auto;
        display: block;
        object-fit: contain;
    }

    .recent-content-slide {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 0.5rem;
    }

    .recent-content-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    /* Even more compact layout for very small screens */
    .content-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        padding-bottom: 1rem;
    }
    
    .content-item.expanded {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    /* Smaller checkbox on very small screens */
    .content-item .content-checkbox {
        width: 18px;
        height: 18px;
        top: 0.4rem;
        right: 0.4rem;
    }
    
    .content-item.expanded .content-poster {
        width: 50px;
        margin-right: 0.75rem;
        margin-top: 0;
        margin-bottom: 0;
        align-self: flex-start;
    }
    
    /* Add space for delete button on all content items - small screens */
    .content-item .content-info {
        margin-bottom: 2rem;
    }
    
    /* Better spacing for small screens */
    .content-info h4 {
        margin-bottom: 1rem;
    }
    
    .content-info p {
        margin: 0.35rem 0;
        line-height: 1.3;
    }
    
    .content-basic-info {
        margin-bottom: 0.6rem;
    }
    
    .content-basic-info p {
        margin: 0.25rem 0;
    }
    
    /* Compact delete button for all items */
    .content-item .delete-btn {
        bottom: 0.4rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .content-item.expanded .expanded-details-content {
        padding: 0.5rem;
        margin-bottom: 2.5rem; /* Less space needed for smaller button */
    }
    
    .expanded-details-content p {
        font-size: 0.85rem;
        margin: 0.25rem 0;
    }
    
    .expanded-details-content p:has(strong:contains("Synopsis")) {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    /* Make IMDB rating buttons smaller on mobile */
    .expanded-details-content a[href*="imdb.com"] {
        font-size: 0.75rem;
        padding: 0.05rem 0.2rem;
    }

    /* Carousel adjustments */
    .recent-content-container .splide__arrow {
        width: 2rem;
        height: 2rem;
    }

        .recent-content-container .splide__arrow svg {
            width: 0.8rem;
            height: 0.8rem;
        }

    .recent-content-poster {
        height: 260px;
        max-width: 190px;
        width: 190px;
        margin: 0 auto;
        display: block;
        object-fit: contain;
    }

    .recent-content-slide {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 0.5rem;
    }

    .recent-content-info {
        padding: 0.5rem;
    }
    
    .recent-content-title {
        font-size: 1rem;
        line-height: 1.2;
    }
}

/* User Rating System Styles */
.user-rating-section {
    margin: 0.5rem 0;
}

.group-rating {
    color: #28a745;
    font-weight: 600;
}

.no-rating {
    color: #6c757d;
    font-style: italic;
}

.user-rating-interface {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rating-container {
    display: flex;
    align-items: center;
}

.rating-select {
    background: #ffffff;
    border: 2px solid #dee2e6;
    color: #495057;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
    outline: none;
}

.rating-select:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.rating-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: #ffffff;
}

.rating-select option {
    padding: 0.5rem;
    font-size: 0.9rem;
}

.rating-select option[value="clear"] {
    color: #dc3545;
    font-weight: 600;
}

.rating-select option[value="clear"]:hover {
    background: #fff5f5;
}

.review-btn {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.review-btn:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-1px);
}

/* Personal Review Section */
.personal-review-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.user-review-text {
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.4;
    color: #555;
}

.review-meta {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Group Reviews Section */
.group-reviews-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.group-reviews-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.review-item {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007bff;
    transition: all 0.2s ease;
}

.review-item:hover {
    background: #f1f3f4;
    border-left-color: #0056b3;
}

.review-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-user-info strong {
    color: #333;
    font-weight: 600;
}

.review-rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-rating {
    color: #ffc107;
    font-weight: bold;
    font-size: 0.9rem;
}

.review-date {
    color: #666;
    font-size: 0.85rem;
}

.review-text {
    color: #555;
    line-height: 1.5;
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

/* Mobile adjustments for rating interface */
@media (max-width: 768px) {
    .user-rating-interface {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .rating-select {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
        min-width: 140px;
    }
    
    .review-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Personal review section mobile adjustments */
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }
    
    .review-header strong {
        text-align: left;
        align-self: flex-start;
    }
    
    .user-review-text {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    /* Group reviews section mobile adjustments */
    .group-reviews-section {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .review-item {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .review-user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .review-rating-info {
        gap: 6px;
    }
    
    .review-text {
        font-size: 0.9rem;
        padding-top: 6px;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .rating-container {
        width: 100%;
    }
    
    .rating-select {
        width: 100%;
        min-width: unset;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .review-btn {
        width: 100%;
        text-align: center;
        margin-top: 0.25rem;
    }
    
    /* Very small screen adjustments for reviews */
    .user-review-text {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .review-meta {
        font-size: 0.75rem;
    }
    
    .group-reviews-section h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .review-item {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .review-user-info strong {
        font-size: 0.9rem;
    }
    
    .review-rating {
        font-size: 0.8rem;
    }
    
    .review-date {
        font-size: 0.75rem;
    }
    
    .review-text {
        font-size: 0.85rem;
        padding-top: 5px;
        margin-top: 5px;
    }
}
