:root {
    --primary-color: #ff0000;
    --primary-hover: #cc0000;
    --background: #0f0f0f;
    --surface: #1a1a1a;
    --surface-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --border-color: #333333;
    --success-color: #00ff00;
    --error-color: #ff4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container-full {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo-section:hover {
    opacity: 0.8;
}

.logo-image {
    height: 36px;
    width: auto;
}

.search-form {
    flex: 1;
    max-width: 600px;
    display: flex;
    gap: 0.5rem;
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: var(--primary-color);
    background-color: var(--surface);
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

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

.suggestion-item:hover,
.suggestion-item.active {
    background-color: var(--surface-hover);
}

.suggestion-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.suggestion-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.suggestion-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 2px 8px;
    background-color: var(--background);
    border-radius: 12px;
}

.search-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: var(--primary-hover);
}

.search-button svg {
    width: 20px;
    height: 20px;
}

/* Sections */
.section {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.hidden {
    display: none !important;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    flex-direction: column;
}

.welcome-content {
    text-align: center;
    padding: 3rem 0;
}

.welcome-logo {
    height: 80px;
    width: auto;
    margin: 0 auto 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

.welcome-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Content Sections */
.content-section {
    margin-top: 3rem;
}

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

.section-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px 16px;
}

@media (min-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1920px) {
    .video-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 2560px) {
    .video-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.video-card {
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fadeInUp 0.5s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

.video-card:hover .video-card-title {
    color: #ffffff;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background-color: var(--surface);
    overflow: hidden;
    border-radius: 12px;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 3px 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.continue-watching-card .video-duration {
    background-color: rgba(255, 0, 0, 0.9);
}

.video-card-content {
    padding: 12px 0;
    display: flex;
    gap: 12px;
}

.video-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.video-card-author {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.video-card-meta {
    display: flex;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Results Section */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.results-count {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Player Section */
.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.back-button:hover {
    background-color: var(--surface-hover);
    border-color: var(--primary-color);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

/* Player Layout - Main + Sidebar */
.player-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 1280px) {
    .player-layout {
        grid-template-columns: 1fr 400px;
    }
}

.player-main {
    min-width: 0;
}

.player-container {
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    display: block;
}

/* Custom Video Controls */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 40px 12px 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.player-container:hover .custom-controls {
    opacity: 1;
}

.progress-container {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
}

.progress-bar-custom {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

/* Time Tooltip - YouTube Style */
.time-tooltip {
    position: absolute;
    bottom: 15px;
    display: none;
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%);
}

.controls-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

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

.control-btn svg {
    width: 24px;
    height: 24px;
}

.play-icon, .pause-icon, .volume-icon, .mute-icon {
    display: block;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.time-display {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 100px;
}

.spacer {
    flex: 1;
}

/* Quality Selector - Gut sichtbar! */
.quality-selector-custom {
    background-color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    color: #000000;
    padding: 6px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quality-selector-custom:hover {
    background-color: #f0f0f0;
    border-color: var(--primary-color);
}

.quality-selector-custom option {
    background-color: #ffffff;
    color: #000000;
    padding: 8px;
}

/* Video Info */
.video-info {
    margin-top: 1.5rem;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.video-author {
    font-size: 1rem;
    font-weight: 600;
}

.video-stats {
    display: flex;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.video-description-container {
    background-color: var(--surface);
    padding: 1rem;
    border-radius: 8px;
}

.video-description {
    white-space: pre-wrap;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Sidebar - Related Videos */
.player-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.related-videos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-video-card {
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 8px;
    border-radius: 8px;
}

.related-video-card:hover {
    background-color: var(--surface-hover);
}

.related-video-thumbnail {
    position: relative;
    width: 168px;
    min-width: 168px;
    aspect-ratio: 16/9;
    background-color: var(--surface);
    border-radius: 8px;
    overflow: hidden;
}

.related-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
}

.related-video-info {
    flex: 1;
    min-width: 0;
}

.related-video-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-video-author {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.related-video-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Comments */
.comments-section {
    margin-top: 2rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background-color: var(--surface);
    padding: 1rem;
    border-radius: 8px;
    animation: fadeInUp 0.4s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

.comment-author {
    font-weight: 600;
}

.comment-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comment-content {
    white-space: pre-wrap;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.comment-likes {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comment-replies {
    margin-top: 1rem;
    padding-left: 2rem;
    border-left: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reply-item {
    background-color: var(--background);
    padding: 0.75rem;
    border-radius: 6px;
}

/* Error Toast */
.error-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--error-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 1279px) {
    .player-layout {
        grid-template-columns: 1fr;
    }
    
    .player-sidebar {
        position: static;
    }
    
    .related-videos {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 8px 0;
    }

    .logo-image {
        height: 28px;
    }

    .search-form {
        width: 100%;
        max-width: 100%;
    }

    .welcome-logo {
        height: 60px;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .video-title {
        font-size: 1.25rem;
    }

    .comment-replies {
        padding-left: 1rem;
    }

    .container-full {
        padding: 0 12px;
    }
    
    .volume-slider {
        display: none;
    }
    
    .related-videos {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Player Fixes */
    .player-layout {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0;
    }
    
    .player-container {
        border-radius: 0;
        margin: 0 -12px;
        width: calc(100% + 24px);
    }
    
    .video-player {
        border-radius: 0;
        max-height: 40vh;
    }
    
    .custom-controls {
        padding: 8px;
    }
    
    .controls-bottom {
        gap: 8px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .time-display {
        font-size: 0.75rem;
    }
    
    /* Verstecke unwichtige Buttons auf Mobile */
    #theaterBtn {
        display: none !important;
    }
    
    #audioSelector {
        display: none !important;
    }
    
    /* Größere Touch-Fläche für Progress Bar */
    .progress-container {
        padding: 12px 0;
        cursor: pointer;
    }
    
    .progress-bar-custom {
        height: 4px;
    }
    
    .progress-bar-custom::after {
        width: 12px;
        height: 12px;
        margin-top: -6px;
    }
    
    /* Player Sidebar auf Mobile unter Video */
    .player-sidebar {
        margin-top: 24px;
    }
}

/* Audio Selector - neben Quality Selector */
.audio-selector-custom {
    background-color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    color: #000000;
    padding: 6px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-left: 8px;
}

.audio-selector-custom:hover {
    background-color: #f0f0f0;
    border-color: var(--primary-color);
}

.audio-selector-custom option {
    background-color: #ffffff;
    color: #000000;
    padding: 8px;
}

/* Login Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-logo {
    height: 48px;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-input {
    padding: 0.75rem;
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: var(--primary-color);
}

.auth-button {
    padding: 0.75rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-button:hover {
    background-color: var(--primary-hover);
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-error {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.guest-button {
    width: 100%;
    padding: 0.75rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s;
}

.guest-button:hover {
    background-color: var(--surface-hover);
    border-color: var(--text-secondary);
}

/* User Menu */
.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    min-width: 200px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Admin Link */
.admin-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    margin-bottom: 8px;
}

.admin-link:hover {
    background: var(--surface-hover);
}

.admin-link.hidden {
    display: none;
}

.logout-button {
    width: 100%;
    padding: 0.5rem;
    background-color: transparent;
    border: 1px solid var(--error-color);
    border-radius: 8px;
    color: var(--error-color);
    cursor: pointer;
    transition: all 0.2s;
}

.logout-button:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

/* User Button in Header */
.user-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.user-button:hover {
    background-color: var(--surface-hover);
}

.user-button .user-avatar {
    width: 24px;
    height: 24px;
    font-size: 1rem;
}

/* User Button Container */
.user-button-container {
    margin-left: auto;
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.user-button:hover {
    background-color: var(--surface-hover);
    border-color: var(--primary-color);
}

.user-button .user-avatar {
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Admin Panel */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-section {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* Top Videos List */
.top-videos-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.top-video-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background-color: var(--background);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.top-video-item:hover {
    background-color: var(--surface-hover);
}

.top-video-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.top-video-info {
    flex: 1;
}

.top-video-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.top-video-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Users List */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--background);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.user-item:hover {
    background-color: var(--surface-hover);
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.user-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.user-stat {
    text-align: center;
    padding: 0.5rem 1rem;
}

.user-stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.user-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.delete-user-btn {
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid var(--error-color);
    border-radius: 6px;
    color: var(--error-color);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.delete-user-btn:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

.delete-user-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Admin Panel */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-section {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* Top Videos List */
.top-videos-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.top-video-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background-color: var(--background);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.top-video-item:hover {
    background-color: var(--surface-hover);
}

.top-video-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.top-video-info {
    flex: 1;
}

.top-video-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.top-video-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Users List */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--background);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.user-item:hover {
    background-color: var(--surface-hover);
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.user-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.user-stat {
    text-align: center;
    padding: 0.5rem 1rem;
}

.user-stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.user-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.delete-user-btn {
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid var(--error-color);
    border-radius: 6px;
    color: var(--error-color);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.delete-user-btn:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

.delete-user-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Login Button for Guests */
.login-button {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-button:hover {
    background-color: var(--primary-hover);
}

/* Theater/Kino-Modus */
.player-layout.theater-mode {
    max-width: 100%;
    margin: 0;
}

.player-layout.theater-mode .player-main {
    max-width: 100%;
}

.player-layout.theater-mode .video-player {
    max-height: calc(100vh - 200px);
}
/* Search Filters */
.search-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: thin;
}

.search-filters::-webkit-scrollbar {
    height: 6px;
}

.search-filters::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.filter-chip {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-chip:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
}

.filter-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* "Meintest du...?" */
.did-you-mean {
    padding: 12px 16px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
}

.did-you-mean a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.did-you-mean a:hover {
    text-decoration: underline;
}
