        /* Page-specific styles for home.html */
        
        /* Główna karta filmu */
        .main-card {
            background: #1a1a1a;
            border-radius: 16px;
            margin-bottom: 32px;
            overflow: hidden;
            border: 1px solid #2a2a2a;
        }
        
        .main-header {
            background: #111;
            padding: 24px;
            display: flex;
            gap: 24px;
            border-bottom: 2px solid #2a2a2a;
        }
        
        .main-thumbnail {
            width: 160px;
            height: 90px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px;
            position: relative;
            flex-shrink: 0;
            cursor: pointer;
            overflow: hidden;
            transition: opacity 0.3s;
        }
        
        .main-thumbnail.loaded {
            animation: fadeIn 0.5s ease-in;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
        
        .play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            background: rgba(0,0,0,0.7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        
        .play-button:hover {
            background: #ff6b6b;
            transform: translate(-50%, -50%) scale(1.1);
        }
        
        .play-button::after {
            content: '▶';
            color: white;
            font-size: 16px;
            margin-left: 2px;
        }
        
        .main-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .title-row {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 12px;
        }
        
        .main-title {
            font-size: 24px;
            font-weight: 700;
            color: #fff;
        }
        
        .film-id {
            color: #666;
            font-size: 14px;
            font-family: monospace;
        }
        
        .metadata {
            display: flex;
            gap: 20px;
            align-items: center;
            color: #888;
            font-size: 14px;
            margin-bottom: 16px;
        }
        
        .metadata-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .source-badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            color: white;
        }
        
        .source-youtube {
            background: #ff0000;
        }
        
        .source-tiktok {
            background: #000;
            border: 1px solid #333;
        }
        
        .source-instagram {
            background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
        }
        
        .status-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        
        .status-completed {
            background: rgba(40, 167, 69, 0.2);
            color: #28a745;
        }
        
        .main-actions {
            display: flex;
            gap: 12px;
        }
        
        .action-btn {
            padding: 10px 16px;
            background: #2a2a2a;
            border: 1px solid #3a3a3a;
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .action-btn:hover {
            background: #3a3a3a;
            border-color: #ff6b6b;
        }
        
        .action-btn.primary {
            background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
            border: none;
            color: #000;
            font-weight: 600;
        }
        
        .action-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
        }
        
        /* Kontrola interpretacji */
        .interpretation-control {
            background: #0f0f0f;
            padding: 16px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #2a2a2a;
        }
        
        .interpretation-selector {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        
        .interpretation-dropdown {
            background: #1a1a1a;
            border: 1px solid #3a3a3a;
            border-radius: 8px;
            padding: 8px 16px;
            color: #e0e0e0;
            font-size: 14px;
            cursor: pointer;
            min-width: 300px;
        }
        
        .interpretation-actions {
            display: flex;
            gap: 8px;
        }
        
        .small-btn {
            padding: 6px 12px;
            background: #2a2a2a;
            border: 1px solid #3a3a3a;
            border-radius: 6px;
            color: #aaa;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .small-btn:hover {
            background: #3a3a3a;
            color: #fff;
        }
        
        /* Lista wariantów */
        .variants-section {
            background: #111;
            padding: 24px;
        }
        
        .variants-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 16px;
        }
        
        .variants-controls {
            display: flex;
            gap: 12px;
            align-items: center;
        }
        
        .filter-select, .sort-select {
            background: #2a2a2a;
            border: 1px solid #3a3a3a;
            color: #e0e0e0;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .filter-select:hover, .sort-select:hover {
            background: #3a3a3a;
            border-color: #ff6b6b;
        }
        
        .filter-select:focus, .sort-select:focus {
            outline: none;
            border-color: #ff6b6b;
            box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
        }
        
        .variants-title {
            font-size: 18px;
            font-weight: 600;
            color: #fff;
        }
        
        /* Wariant - dokładnie jak w szkicu */
        .variant-item {
            background: #1a1a1a;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 16px;
            border: 1px solid #2a2a2a;
            transition: all 0.3s ease;
        }
        
        .variant-item:hover {
            background: #222;
            border-color: #3a3a3a;
            transform: translateX(2px);
        }
        
        .variant-content {
            display: flex;
            gap: 16px;
        }
        
        .variant-left {
            display: flex;
            align-items: flex-start;
            gap: 16px;
        }
        
        .variant-number {
            width: 30px;
            height: 30px;
            background: #2a2a2a;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: #888;
            flex-shrink: 0;
        }
        
        .variant-thumbnail {
            width: 120px;
            height: 67px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            border-radius: 8px;
            position: relative;
            flex-shrink: 0;
            cursor: pointer;
            transition: opacity 0.3s;
        }
        
        .variant-thumbnail.loaded {
            animation: fadeIn 0.5s ease-in;
        }
        
        .variant-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .variant-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 20px;
        }
        
        .variant-info {
            flex: 1;
        }
        
        .variant-meta {
            color: #888;
            font-size: 13px;
            margin-bottom: 8px;
        }
        
        .variant-scores-container {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .critic-scores-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            align-items: center;
        }
        
        .overall-score {
            background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
            color: #000;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 700;
            font-size: 16px;
            margin-right: 10px;
            flex-shrink: 0;
        }
        
        .score-badge {
            background: #2a2a2a;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            display: flex;
            align-items: center;
            gap: 3px;
            color: #888;
            white-space: nowrap;
        }
        
        .score-badge .value {
            color: #ffd93d;
            font-weight: 700;
        }
        
        .variant-buttons-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            flex-shrink: 0;
            width: 100%;
            max-width: 520px;
        }
        
        .variant-buttons-grid button {
            width: 100%;
            min-width: 0;
        }
        
        .comment-count-btn {
            background: #2a2a2a;
            color: #888;
        }
        
        .delete-btn {
            color: #dc3545;
        }
        
        .like-btn {
            padding: 8px 12px;
            background: #28a745;
            border: 1px solid #28a745;
            border-radius: 6px;
            color: white;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
            white-space: nowrap;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .dislike-btn {
            padding: 8px 12px;
            background: transparent;
            border: 1px solid #dc3545;
            border-radius: 6px;
            color: #dc3545;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 600;
            white-space: nowrap;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .like-btn:hover {
            background: #218838;
            transform: scale(1.02);
        }
        
        .dislike-btn:hover {
            background: #dc3545;
            color: white;
            transform: scale(1.02);
        }
        
        .variant-actions {
            margin-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .action-buttons-row {
            display: flex;
            gap: 8px;
        }
        
        .action-icon-btn {
            padding: 8px 12px;
            background: #2a2a2a;
            border: 1px solid #3a3a3a;
            border-radius: 6px;
            color: #e0e0e0;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .action-icon-btn:hover {
            background: #3a3a3a;
            border-color: #ff6b6b;
            transform: translateY(-1px);
        }
        
        .action-icon-btn.comment-count-btn {
            background: #333;
            color: #aaa;
        }
        
        .action-icon-btn.delete-btn {
            color: #dc3545;
        }
        
        .action-icon-btn.delete-btn:hover {
            background: #dc3545;
            color: white;
            border-color: #dc3545;
        }
        
        /* Panel boczny */
        .layout-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
        }
        
        .side-panel {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .panel-card {
            background: #1a1a1a;
            border-radius: 12px;
            padding: 20px;
            border: 1px solid #2a2a2a;
        }
        
        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .panel-title {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
        }
        
        /* Status panel */
        .status-content {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .status-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .status-label {
            color: #888;
            font-size: 14px;
        }
        
        .status-value {
            color: #ffd93d;
            font-weight: 600;
            font-size: 14px;
        }
        
        .progress-bar {
            width: 100%;
            height: 8px;
            background: #2a2a2a;
            border-radius: 4px;
            overflow: hidden;
            margin-top: 8px;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #ff6b6b 0%, #ffd93d 100%);
            width: 50%;
            transition: width 0.3s ease;
        }
        
        /* Komentarze */
        .comment-count {
            background: #2a2a2a;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            color: #aaa;
        }
        
        .comments-list {
            max-height: 300px;
            overflow-y: auto;
            margin-bottom: 16px;
        }
        
        .comment-item {
            background: #111;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 12px;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 12px;
            color: #888;
        }
        
        .comment-variant {
            color: #ffd93d;
            font-weight: 600;
        }
        
        .comment-text {
            font-size: 14px;
            line-height: 1.5;
            color: #e0e0e0;
        }
        
        .comment-input {
            background: #111;
            border: 1px solid #3a3a3a;
            border-radius: 8px;
            padding: 12px;
            width: 100%;
            color: #e0e0e0;
            resize: vertical;
            min-height: 80px;
            margin-bottom: 12px;
        }
        
        .comment-input:focus {
            outline: none;
            border-color: #ff6b6b;
        }
        
        .voice-btn {
            padding: 10px 16px;
            background: #2a2a2a;
            border: 1px solid #3a3a3a;
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 14px;
            cursor: pointer;
            width: 100%;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .voice-btn:hover {
            background: #3a3a3a;
            border-color: #ff6b6b;
        }
        
        /* Powiadomienia */
        .notification-toggle {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: #111;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .notification-toggle:hover {
            background: #1a1a1a;
        }
        
        .toggle-switch {
            width: 48px;
            height: 24px;
            background: #2a2a2a;
            border-radius: 12px;
            position: relative;
            transition: all 0.3s;
        }
        
        .toggle-switch.active {
            background: #28a745;
        }
        
        .toggle-knob {
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            position: absolute;
            top: 2px;
            left: 2px;
            transition: all 0.3s;
        }
        
        .toggle-switch.active .toggle-knob {
            left: 26px;
        }
        
        /* Film w trakcie przetwarzania */
        .processing-status {
            background: #1a1a1a;
            padding: 40px;
            border-radius: 8px;
            text-align: center;
            color: #888;
        }
        
        .processing-icon {
            font-size: 48px;
            margin-bottom: 16px;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { opacity: 0.5; }
            50% { opacity: 1; }
            100% { opacity: 0.5; }
        }
        
        /* Responsive */
        @media (max-width: 1200px) {
            .layout-grid {
                grid-template-columns: 1fr;
            }
            
            .side-panel {
                grid-row: 2;
            }
        }
        
        /* System nawigacji z zakładkami - style przeniesione do navigation.js */
        
        /* Progress bar */
        .progress-bar {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #ff6b6b, #ffd93d);
            border-radius: 4px;
            transition: width 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.3),
                transparent
            );
            animation: shimmer 2s infinite;
        }
        
        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }
            100% {
                transform: translateX(100%);
            }
        }
        
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
            }
            70% {
                box-shadow: 0 0 0 20px rgba(255, 107, 107, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
            }
        }
        
        /* Loading spinner */
        .loading-spinner {
            width: 40px;
            height: 40px;
            margin: 0 auto;
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-top-color: #ff6b6b;
            border-radius: 50%;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
        
        /* Animacja pojawiania się kart */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Animacja sukcesu dla przycisków */
        .like-btn.success, .dislike-btn.success {
            background: #28a745 !important;
            border-color: #28a745 !important;
            color: white !important;
            animation: successPulse 0.5s ease-out;
        }
        
        @keyframes successPulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }
        
        /* Transition dla wszystkich interaktywnych elementów */
        .action-btn, .like-btn, .dislike-btn, .action-icon-btn,
        .filter-select, .sort-select, .interpretation-dropdown {
            transition: all 0.2s ease;
        }
        
        .action-btn:active, .like-btn:active, .dislike-btn:active,
        .action-icon-btn:active {
            transform: scale(0.95);
        }
        
        /* Smooth transitions dla paneli */
        .panel-card {
            transition: all 0.3s ease;
        }
        
        .panel-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }
        
        /* Loading state dla całej strony */
        .loading-state {
            opacity: 0.8;
            pointer-events: none;
        }
        
        /* Style dla komentarzy */
        .comments-section {
            background: #0f0f0f;
            border-top: 2px solid #2a2a2a;
            padding: 20px;
            margin-top: 20px;
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .comments-header h3, .comments-header h4 {
            color: #fff;
            font-size: 18px;
            margin: 0;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: #666;
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }
        
        .close-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }
        
        .comments-form {
            margin-bottom: 20px;
        }
        
        .comment-input {
            width: 100%;
            background: #1a1a1a;
            border: 1px solid #3a3a3a;
            border-radius: 8px;
            padding: 12px;
            color: #e0e0e0;
            font-size: 14px;
            resize: vertical;
            font-family: inherit;
        }
        
        .comment-input:focus {
            outline: none;
            border-color: #ff6b6b;
            background: #222;
        }
        
        .comment-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
        }
        
        .comment-actions label {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #888;
            font-size: 14px;
            cursor: pointer;
        }
        
        .like-checkbox {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }
        
        /* Button styles are in common.css */
        
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .comment-item {
            background: #1a1a1a;
            border: 1px solid #2a2a2a;
            border-radius: 8px;
            padding: 16px;
        }
        
        .comment-header {
            display: flex;
            gap: 12px;
            align-items: center;
            margin-bottom: 8px;
            font-size: 12px;
            color: #666;
        }
        
        .comment-variant {
            color: #ff6b6b;
            font-weight: 600;
        }
        
        .comment-liked {
            color: #ff6b6b;
        }
        
        .comment-text {
            color: #e0e0e0;
            font-size: 14px;
            line-height: 1.5;
        }
        
        /* Style dla komentarzy wariantów */
        .variant-comments {
            background: rgba(15, 15, 15, 0.8);
            border-radius: 8px;
            padding: 16px;
            margin-top: 12px;
        }
        
        .variant-feedback {
            margin-top: 16px;
        }
        
        .feedback-item {
            background: rgba(26, 26, 26, 0.8);
            border: 1px solid #2a2a2a;
            border-radius: 6px;
            padding: 12px;
        }
        
        .feedback-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            font-size: 12px;
        }
        
        .liked-icon {
            color: #ff6b6b;
            font-weight: 600;
        }
        
        .disliked-icon {
            color: #666;
            font-weight: 600;
        }
        
        .feedback-date {
            color: #666;
        }
        
        .feedback-comment {
            color: #e0e0e0;
            font-size: 13px;
            line-height: 1.4;
        }
        
        /* Style dla panelu statystyk */
        .stats-content {
            padding: 16px;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }
        
        .stat-item {
            text-align: center;
            padding: 12px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.2s;
        }
        
        .stat-item:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 107, 107, 0.5);
        }
        
        .stat-value {
            font-size: 24px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 4px;
        }
        
        .stat-label {
            font-size: 12px;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        @media (max-width: 1400px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        /* Dodatkowe style responsywne */
        @media (max-width: 768px) {
            body {
                padding: 10px;
                min-height: 100vh;
            }
            
            .container {
                padding: 0;
            }
            
            .main-card {
                border-radius: 12px;
                margin-bottom: 20px;
            }
            
            .main-header {
                padding: 16px;
                gap: 16px;
            }
            
            .main-title {
                font-size: 20px;
            }
            
            .metadata {
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .main-actions {
                flex-wrap: wrap;
            }
            
            .action-btn {
                flex: 1;
                min-width: calc(50% - 6px);
                font-size: 13px;
                padding: 8px 12px;
            }
            
            .variants-section {
                padding: 16px;
            }
            
            .variants-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .variants-controls {
                width: 100%;
                flex-direction: column;
                gap: 8px;
            }
            
            .filter-select, .sort-select {
                width: 100%;
            }
            
            .variant-buttons-grid {
                gap: 6px;
            }
            
            .action-icon-btn {
                font-size: 12px;
                padding: 6px 10px;
            }
            
            .panel-card {
                margin-bottom: 12px;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            
            .stat-item {
                padding: 8px;
            }
            
            .stat-value {
                font-size: 18px;
            }
            
            .stat-label {
                font-size: 10px;
            }
            
            .comments-section {
                padding: 12px;
            }
            
            .comment-input {
                font-size: 13px;
                padding: 8px;
            }
            
            .btn-primary {
                font-size: 13px;
                padding: 8px 16px;
            }
        }
        
        @media (max-width: 480px) {
            .main-thumbnail {
                width: 100%;
                height: 180px;
            }
            
            .action-btn {
                min-width: 100%;
            }
            
            .variant-thumbnail {
                width: 80px;
                height: 60px;
            }
            
            .variant-number {
                font-size: 20px;
            }
            
            .variant-buttons-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .like-btn, .dislike-btn {
                grid-column: span 2;
            }
            
            .notification-toggle {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .toggle-switch {
                margin-left: 0;
            }
        }
        
        /* Obsługa orientacji poziomej na mobile */
        @media (max-width: 768px) and (orientation: landscape) {
            .main-header {
                flex-direction: row;
            }
            
            .main-thumbnail {
                width: 200px;
                height: 120px;
            }
            
            .variant-content {
                flex-direction: row;
            }
        }
        
        /* Dostosowanie dla bardzo małych ekranów */
        @media (max-width: 375px) {
            .main-title {
                font-size: 18px;
            }
            
            .action-btn {
                font-size: 12px;
                padding: 6px 10px;
            }
        }
        
        /* Styles for input-section */
        .input-section {
            background: #1a1a1a;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 40px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.5);
        }
        
        .input-group {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        input[type="url"] {
            flex: 1;
            padding: 15px 20px;
            border: 2px solid #333;
            border-radius: 8px;
            background: #0a0a0a;
            color: #e0e0e0;
            font-size: 16px;
            transition: border-color 0.3s;
            min-width: 300px;
        }
        
        input[type="url"]:focus {
            outline: none;
            border-color: #ff6b6b;
        }
        
        .input-group.drag-over input[type="url"] {
            border-color: #4CAF50;
            background: rgba(76, 175, 80, 0.1);
        }
        
        .drop-zone {
            position: relative;
        }
        
        .drop-zone-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(76, 175, 80, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            pointer-events: none;
            color: white;
            font-size: 18px;
            font-weight: 500;
        }
        
        .input-group.drag-over .drop-zone-overlay {
            display: flex;
        }
        
        .slider-group {
            margin-bottom: 20px;
        }
        
        .slider-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            color: #aaa;
        }
        
        input[type="range"] {
            width: 100%;
            height: 8px;
            background: #333;
            border-radius: 4px;
            outline: none;
            -webkit-appearance: none;
        }
        
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            background: #ff6b6b;
            border-radius: 50%;
            cursor: pointer;
        }
        
        /* Button styles are in common.css */
        
        .styles-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }
        
        /* Styl dla checkboxów wyboru stylów */
        .style-checkbox-label {
            display: inline-flex;
            align-items: center;
            padding: 8px 16px;
            background: #2a2a2a;
            border: 2px solid #444;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
            user-select: none;
        }
        
        .style-checkbox-label:hover {
            background: #333;
            border-color: #666;
        }
        
        .style-checkbox {
            margin-right: 8px;
            width: 18px;
            height: 18px;
            cursor: pointer;
        }
        
        .style-checkbox:checked + .style-checkbox-text {
            font-weight: 600;
        }
        
        .style-checkbox-label:has(.style-checkbox:checked) {
            background: #ff6b6b;
            border-color: #ff6b6b;
            color: #000;
        }
        
        .style-checkbox-label.custom {
            background: #4a4a4a;
            border-color: #666;
        }
        
        .style-checkbox-label.custom .style-checkbox-text {
            color: #ffd93d;
        }
        
        .style-checkbox-label.custom:has(.style-checkbox:checked) {
            background: #ffd93d;
            border-color: #ffd93d;
            color: #000;
        }
        
        .style-checkbox-label.custom:has(.style-checkbox:checked) .style-checkbox-text {
            color: #000;
        }
        
        
        /* Tasks view styles removed - tasks are now in separate tasks.html */
        
        /* Animacja pulse dla podświetlenia sekcji */
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
                border-color: #ff6b6b;
            }
            50% {
                box-shadow: 0 0 20px 10px rgba(255, 107, 107, 0.3);
                border-color: #ff6b6b;
            }
            100% {
                box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
                border-color: #333;
            }
        }

        /* Voice display styles */
        .variant-voices {
            margin-top: 8px;
            padding: 6px 10px;
            background: rgba(100, 150, 255, 0.1);
            border-radius: 6px;
            border-left: 3px solid #6496ff;
            font-size: 12px;
            line-height: 1.6;
        }

        .variant-voices .voice-item {
            background: rgba(100, 150, 255, 0.15);
            padding: 2px 6px;
            border-radius: 4px;
            margin-right: 4px;
            display: inline-block;
            color: #a8c4ff;
            font-weight: 500;
            cursor: default;
            transition: background 0.2s;
        }

        .variant-voices .voice-item:hover {
            background: rgba(100, 150, 255, 0.25);
        }

        /* Animacje dla toast notifications */
        @keyframes slideUp {
            from {
                transform: translateX(-50%) translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateX(-50%) translateY(0);
                opacity: 1;
            }
        }
        
        @keyframes slideDown {
            from {
                transform: translateX(-50%) translateY(0);
                opacity: 1;
            }
            to {
                transform: translateX(-50%) translateY(100%);
                opacity: 0;
            }
        }
        
        /* Style dla inline video container */
        .inline-video-container {
            margin-top: 15px;
            padding: 15px;
            background: #1a1a1a;
            border-radius: 8px;
            border: 1px solid #333;
            animation: fadeIn 0.3s ease;
        }
        
        .inline-video-container video {
            width: 100%;
            max-width: 600px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.5);
        }
        
        /* Animacja dla b\u0142\u0119d\u00f3w miniaturek */
        .thumbnail-error {
            position: relative;
        }
        
        .thumbnail-error::after {
            content: '\u26a0\ufe0f';
            position: absolute;
            top: 5px;
            right: 5px;
            font-size: 20px;
            background: rgba(0,0,0,0.7);
            padding: 2px 6px;
            border-radius: 4px;
        }
        /* AI Maker CSS fixes - Force visibility on all devices */
        div[id*="ai-maker"]:not(.ai-maker-modal):not(.ai-maker-dialog),
        #ai-maker-btn,
        .ai-maker-button,
        #ai-maker-button,
        button[onclick*="maker"] {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            z-index: 10000 !important;
        }
        
        /* Fix button position on mobile */
        #ai-maker-button {
            position: absolute !important;
            top: 0px !important;
            left: 0px !important;
        }
        
        .ai-maker-modal {
            z-index: 10001 !important;
            backdrop-filter: blur(4px) !important;
        }
        
        .ai-maker-dialog {
            z-index: 10002 !important;
            max-width: 90vw !important;
            max-height: 90vh !important;
        }
        
        /* AI Analysis Modal Styles */
        .ai-analysis-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
            z-index: 9999;
            animation: fadeIn 0.3s ease;
        }
        
        .ai-analysis-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .ai-analysis-content {
            background: #1a1a1a;
            border-radius: 12px;
            max-width: 90vw;
            max-height: 90vh;
            width: 1200px;
            overflow: hidden;
            border: 1px solid #333;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
            display: flex;
            flex-direction: column;
        }
        
        .ai-analysis-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 20px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #333;
        }
        
        .ai-analysis-header h2 {
            color: white;
            font-size: 20px;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .ai-analysis-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        
        .ai-analysis-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }
        
        .ai-analysis-body {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
            background: #0f0f0f;
        }
        
        .ai-output-section {
            background: #1a1a1a;
            border: 1px solid #333;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .ai-output-section h3 {
            color: #ff6b6b;
            font-size: 16px;
            margin: 0 0 12px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .ai-output-content {
            background: #0a0a0a;
            border: 1px solid #2a2a2a;
            border-radius: 6px;
            padding: 16px;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            line-height: 1.6;
            color: #e0e0e0;
            white-space: pre-wrap;
            word-wrap: break-word;
            max-height: 400px;
            overflow-y: auto;
        }
        
        .ai-output-meta {
            display: flex;
            gap: 20px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #2a2a2a;
            font-size: 12px;
            color: #888;
        }
        
        .ai-output-meta span {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #333;
            border-top-color: #ff6b6b;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .no-data-message {
            text-align: center;
            padding: 60px 20px;
            color: #888;
        }
        
        .no-data-message svg {
            width: 80px;
            height: 80px;
            margin-bottom: 20px;
            opacity: 0.3;
        }
        
        .variant-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid #333;
            flex-wrap: wrap;
        }
        
        .variant-tab {
            padding: 8px 16px;
            background: #2a2a2a;
            border: 1px solid #333;
            border-radius: 6px;
            color: #888;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
        }
        
        .variant-tab:hover {
            background: #333;
            color: #e0e0e0;
        }
        
        .variant-tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: transparent;
        }
        
        @media (max-width: 768px) {
            .ai-analysis-content {
                width: 95vw;
                max-height: 95vh;
                margin: 10px;
            }
            
            .ai-analysis-header {
                padding: 16px;
            }
            
            .ai-analysis-body {
                padding: 16px;
            }
            
            .ai-output-section {
                padding: 16px;
            }
        }
        
        /* Dubbing Modal Styles */
        .dubbing-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
            z-index: 9999;
            animation: fadeIn 0.3s ease;
        }
        
        .dubbing-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .dubbing-content {
            background: #1a1a1a;
            border-radius: 12px;
            max-width: 90vw;
            max-height: 90vh;
            width: 1000px;
            overflow: hidden;
            border: 1px solid #333;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
            display: flex;
            flex-direction: column;
        }
        
        .dubbing-header {
            background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
            padding: 20px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #333;
        }
        
        .dubbing-header h2 {
            color: #000;
            font-size: 20px;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .dubbing-close {
            background: rgba(0, 0, 0, 0.2);
            border: none;
            color: #000;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        
        .dubbing-close:hover {
            background: rgba(0, 0, 0, 0.3);
            transform: scale(1.1);
        }
        
        .dubbing-body {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
            background: #0f0f0f;
        }
        
        .dubbing-section {
            background: #1a1a1a;
            border: 1px solid #333;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .dubbing-section h3 {
            color: #ff6b6b;
            font-size: 16px;
            margin: 0 0 12px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .dubbing-content-area {
            background: #0a0a0a;
            border: 1px solid #2a2a2a;
            border-radius: 6px;
            padding: 16px;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            line-height: 1.6;
            color: #e0e0e0;
            white-space: pre-wrap;
            word-wrap: break-word;
            max-height: 500px;
            overflow-y: auto;
        }
        
        .dubbing-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid #333;
        }
        
        .dubbing-tab {
            padding: 8px 16px;
            background: #2a2a2a;
            border: 1px solid #333;
            border-radius: 6px;
            color: #888;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
        }
        
        .dubbing-tab:hover {
            background: #333;
            color: #e0e0e0;
        }
        
        .dubbing-tab.active {
            background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
            color: #000;
            border-color: transparent;
            font-weight: 600;
        }
        
        @media (max-width: 768px) {
            .dubbing-content {
                width: 95vw;
                max-height: 95vh;
                margin: 10px;
            }
            
            .dubbing-header {
                padding: 16px;
            }
            
            .dubbing-body {
                padding: 16px;
            }
            
            .dubbing-section {
                padding: 16px;
            }
        }
