/* ============================================
   FLOXFLIX - Originální streamovací platforma
   Design: Midnight Teal + Violet Accent
   ============================================ */

/* === Reset a základní styly === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Originální barevné schéma - ŽÁDNÉ Netflix barvy */
    --primary-bg: #0a0e1a;
    --secondary-bg: #121829;
    --tertiary-bg: #1a2332;
    --accent-teal: #14b8a6;
    --accent-violet: #8b5cf6;
    --accent-lime: #84cc16;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --hover-glow: rgba(139, 92, 246, 0.3);
    --card-shadow: rgba(0, 0, 0, 0.5);
    --gradient-overlay: linear-gradient(180deg, transparent 0%, var(--primary-bg) 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Navigační lišta === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.95) 0%, rgba(10, 14, 26, 0.7) 100%);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.98);
    box-shadow: 0 2px 20px rgba(139, 92, 246, 0.2);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-violet);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
}

.search-input {
    background: var(--secondary-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-violet);
    box-shadow: 0 0 15px var(--hover-glow);
    width: 250px;
}

.search-icon {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.btn-icon {
    background: transparent;
    border: 2px solid var(--accent-teal);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent-teal);
    font-size: 1.2rem;
}

.btn-icon:hover {
    background: var(--accent-teal);
    color: var(--primary-bg);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
    transform: scale(1.1);
}

/* === Hlavní obsah === */
main {
    margin-top: 80px;
    min-height: calc(100vh - 200px);
}

/* === Hero sekce === */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-bg) 0%, transparent 50%, var(--primary-bg) 100%),
                linear-gradient(180deg, transparent 0%, var(--primary-bg) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-tag {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--accent-violet);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-description {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-teal) 100%);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* === Sekce obsahu === */
.content-section {
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* === Karty seriálů === */
.series-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.series-card:hover {
    transform: translateY(-10px);
}

.series-card-image {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.series-card:hover .series-card-image {
    transform: scale(1.05);
}

.series-card-content {
    padding: 1rem;
}

.series-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.series-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.tag {
    background: rgba(20, 184, 166, 0.2);
    color: var(--accent-teal);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.series-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === Detail seriálu === */
.series-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.series-banner {
    position: relative;
    height: 60vh;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
}

.series-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.series-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 26, 0.95) 100%);
}

.series-detail-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.series-detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.series-detail-description {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* === Tabs === */
.tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid var(--tertiary-bg);
    margin-bottom: 2rem;
}

.tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-violet);
    transition: width 0.3s ease;
}

.tab:hover,
.tab.active {
    color: var(--text-primary);
}

.tab.active::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* === Epizody === */
.season-selector {
    margin-bottom: 2rem;
}

.season-select {
    background: var(--secondary-bg);
    border: 2px solid var(--accent-violet);
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.season-select:hover {
    box-shadow: 0 0 15px var(--hover-glow);
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.episode-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.episode-card:hover:not(.coming-soon) {
    background: var(--hover-bg);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.episode-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.episode-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-muted);
    min-width: 50px;
}

.episode-thumbnail {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.episode-info {
    flex: 1;
}

.episode-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.episode-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.episode-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.episode-play-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: auto;
    align-self: center;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.episode-play-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.coming-soon-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    animation: pulse 2s ease-in-out infinite;
}

.coming-soon-icon {
    font-size: 2rem;
    animation: rotate 3s linear infinite;
}

.coming-soon-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(139, 92, 246, 0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* === Přehrávač === */
.watch-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.video-player {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.video-player video {
    width: 100%;
    display: block;
}

.watch-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.watch-title {
    font-size: 2rem;
    font-weight: 700;
}

.watch-meta {
    color: var(--text-muted);
}

.watch-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Like button */
.like-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.like-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-violet);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.like-btn.liked {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(168, 85, 247, 0.3));
    border-color: var(--accent-violet);
    animation: likeAnimation 0.4s ease;
}

.like-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.like-btn:hover .like-icon {
    transform: scale(1.2);
}

.like-btn.liked .like-icon {
    animation: heartBeat 0.6s ease;
}

.like-count {
    font-size: 1rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(0.9);
    }
    20%, 40%, 60%, 80% {
        transform: scale(1.3);
    }
    50%, 70% {
        transform: scale(1.1);
    }
}

/* === Upload rozhraní === */
.upload-section {
    background: var(--secondary-bg);
    border: 2px dashed var(--accent-violet);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.upload-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.upload-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--tertiary-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.8rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-violet);
    box-shadow: 0 0 15px var(--hover-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-label {
    display: block;
    background: var(--tertiary-bg);
    border: 2px dashed var(--accent-teal);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    background: var(--secondary-bg);
    border-color: var(--accent-violet);
}

.file-input {
    position: absolute;
    left: -9999px;
}

.file-name {
    color: var(--accent-teal);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* === Prázdný stav === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* === 404 stránka === */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* === Footer === */
.footer {
    background: var(--secondary-bg);
    border-top: 2px solid var(--tertiary-bg);
    padding: 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* === Loading animace === */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid var(--tertiary-bg);
    border-top-color: var(--accent-violet);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* === Responzivní design === */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .series-detail-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .search-input {
        width: 150px;
    }
    
    .search-input:focus {
        width: 180px;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .series-detail-title {
        font-size: 2rem;
    }
    
    .episode-card {
        flex-direction: column;
        text-align: center;
    }
    
    .episode-thumbnail {
        width: 100%;
        height: auto;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* === Custom Video Player === */
.video-player-wrapper {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.video-player-wrapper video {
    width: 100%;
    display: block;
}

.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-controls.visible {
    opacity: 1;
}

.video-player-wrapper:hover .custom-controls {
    opacity: 1;
}

/* Progress bar */
.progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 8px;
}

.progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-violet);
    border-radius: 3px;
    transition: width 0.1s linear;
    pointer-events: none;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--accent-violet);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

/* Controls bottom */
.controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Volume slider */
.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-teal);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.8);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent-teal);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Time display */
.time-display {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 100px;
    font-family: 'Courier New', monospace;
}

/* Quality menu */
.quality-menu {
    position: absolute;
    bottom: 60px;
    right: 50px;
    background: rgba(18, 24, 41, 0.98);
    border: 2px solid var(--accent-violet);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.quality-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quality-option {
    padding: 0.8rem 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.quality-option:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-violet);
}

.quality-option.active {
    background: rgba(139, 92, 246, 0.3);
    color: var(--accent-violet);
    position: relative;
}

.quality-option.active::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    font-weight: bold;
}

/* Fullscreen adjustments */
.video-player-wrapper:fullscreen {
    border-radius: 0;
}

.video-player-wrapper:fullscreen .custom-controls {
    padding: 2rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .volume-slider {
        display: none;
    }
    
    .time-display {
        font-size: 0.75rem;
        min-width: 80px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .controls-left,
    .controls-right {
        gap: 0.5rem;
    }
    
    .quality-selector {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* === Utility třídy === */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
