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

:root {
            --bg-primary: #000000;
            --bg-secondary: #0a0a0a;
            --bg-tertiary: #111111;
            --bg-card: #0f0f0f;
            --text-primary: #ffffff;
            --text-secondary: #b3b3b3;
            --text-muted: #666666;
            --accent-primary: #ff4757;
            --accent-primary-hover: #ff6b7a;
            --accent-secondary: #3742fa;
            --accent-success: #2ed573;
            --border-color: #1a1a1a;
            --border-hover: #2a2a2a;
            --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.4);
            --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.5);
            --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.7);
            --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
            --gradient-card: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
        }

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

.animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.03;
            overflow: hidden;
        }

.animated-bg::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background:
                radial-gradient(circle at 20% 80%, #1a0000 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, #0a0000 0%, transparent 50%);
            animation: gentleFloat 60s ease-in-out infinite;
        }

@keyframes gentleFloat {
            0%, 100% {
                transform: translate(0, 0) rotate(0deg);
            }
            50% {
                transform: translate(10px, -10px) rotate(180deg);
            }
        }

.header {
            background: var(--bg-secondary);
            padding: 1rem 2rem;
            box-shadow: var(--shadow-light);
            position: sticky;
            top: 0;
            z-index: 1000;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

.header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

.header-actions {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

.me-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.65rem 1rem;
            border-radius: 999px;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            text-decoration: none;
            background: rgba(255, 255, 255, 0.02);
            transition: all 0.3s ease;
            font-weight: 600;
        }

.me-link:hover,
.me-link.active {
            color: var(--text-primary);
            border-color: var(--accent-primary);
            background: rgba(255, 71, 87, 0.12);
            box-shadow: 0 0 0 1px rgba(255, 71, 87, 0.14);
        }

.logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--accent-primary);
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            position: relative;
        }

.logo::after {
            content: ' by CrystalSky';
            font-size: 0.7rem;
            color: var(--text-secondary);
            font-weight: normal;
            opacity: 0;
            transition: all 0.3s ease;
            position: absolute;
            bottom: -15px;
            left: 0;
            white-space: nowrap;
        }

.logo:hover {
            transform: scale(1.1) rotate(-2deg);
            text-shadow: 0 0 30px var(--accent-primary);
        }

.logo:hover::after {
            opacity: 1;
            bottom: -20px;
        }

.search-container {
            flex: 1;
            max-width: 600px;
            margin: 0 2rem;
            position: relative;
            display: none;
        }

.search-input {
            width: 100%;
            padding: 0.8rem 1.2rem;
            background: var(--bg-tertiary);
            border: 2px solid var(--border-color);
            border-radius: 25px;
            color: var(--text-primary);
            font-size: 1rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

.search-input:focus {
            outline: none;
            border-color: var(--accent-primary);
            box-shadow: 0 0 30px rgba(255, 71, 87, 0.4);
            transform: scale(1.02);
        }

.search-btn {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--accent-primary);
            border: none;
            padding: 0.6rem 1.2rem;
            border-radius: 20px;
            color: white;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

.search-btn:hover {
            background: var(--accent-primary-hover);
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 5px 20px rgba(255, 71, 87, 0.5);
        }

.main-content {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 2rem;
        }

.welcome-section {
            text-align: center;
            padding: 6rem 0;
        }

.welcome-title {
            font-size: 3.5rem;
            font-weight: bold;
            background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1.5rem;
            opacity: 0;
            transform: translateY(30px);
            animation: titleSlideIn 0.8s ease 0.2s forwards;
        }

.welcome-subtitle {
            font-size: 1.3rem;
            color: var(--text-secondary);
            margin-bottom: 3rem;
            opacity: 0;
            transform: translateY(20px);
            animation: titleSlideIn 0.8s ease 0.4s forwards;
        }

.center-search {
            max-width: 600px;
            margin: 0 auto 4rem;
            position: relative;
            opacity: 0;
            transform: translateY(20px);
            animation: titleSlideIn 0.8s ease 0.6s forwards;
        }

@keyframes titleSlideIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

.center-search .search-input {
            display: block;
        }

@media (max-width: 768px) {
            .welcome-title {
                font-size: 2.5rem;
            }
        }

.search-container {
            flex: 1;
            max-width: 400px;
            margin: 0 2rem;
            position: relative;
        }

.section-title {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
            position: relative;
            opacity: 0;
            transform: translateY(20px);
            animation: slideInUp 0.6s ease forwards;
        }

.section-title::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--accent-primary);
            border-radius: 2px;
            animation: expandLine 0.8s ease 0.3s forwards;
        }

.search-tabs {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            border-bottom: 2px solid var(--border-color);
        }

.tab-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            padding: 1rem 2rem;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            border-bottom: 3px solid transparent;
        }

.tab-btn:hover {
            color: var(--text-primary);
        }

.tab-btn.active {
            color: var(--accent-primary);
            border-bottom-color: var(--accent-primary);
        }

.channel-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

.channel-card {
            background: var(--bg-secondary);
            border-radius: 15px;
            padding: 2rem;
            text-align: center;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            opacity: 0;
            transform: translateY(30px);
            animation: cardSlideIn 0.6s ease forwards;
            border: 2px solid var(--border-color);
        }

.channel-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-heavy);
            border-color: var(--accent-primary);
        }

.channel-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin: 0 auto 1rem;
            overflow: hidden;
            border: 3px solid var(--accent-primary);
            transition: all 0.3s ease;
        }

.channel-card:hover .channel-avatar {
            transform: scale(1.1);
            box-shadow: 0 0 30px rgba(255, 71, 87, 0.5);
        }

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

.channel-name {
            font-size: 1.3rem;
            font-weight: bold;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

.channel-stats {
            color: var(--text-secondary);
            font-size: 0.95rem;
            margin-bottom: 1rem;
        }

.channel-description {
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

.video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

.video-card {
            background: var(--bg-secondary);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            opacity: 0;
            transform: translateY(30px);
            animation: cardSlideIn 0.6s ease forwards;
        }

.video-card:nth-child(even) { animation-delay: 0.1s; }

.video-card:nth-child(3n) { animation-delay: 0.2s; }

@keyframes cardSlideIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

.video-card:hover {
            transform: translateY(-15px) scale(1.02);
            box-shadow: var(--shadow-heavy);
        }

.video-thumbnail {
            width: 100%;
            height: 200px;
            background: var(--bg-tertiary);
            position: relative;
            overflow: hidden;
        }

.video-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.4s ease;
        }

.video-card:hover .video-thumbnail img {
            transform: scale(1.15);
            filter: brightness(1.1);
        }

.play-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 70px;
            height: 70px;
            background: rgba(255, 71, 87, 0.95);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            backdrop-filter: blur(10px);
        }

.video-card:hover .play-overlay {
            transform: translate(-50%, -50%) scale(1);
        }

.play-icon {
            width: 0;
            height: 0;
            border-left: 22px solid white;
            border-top: 14px solid transparent;
            border-bottom: 14px solid transparent;
            margin-left: 6px;
            transition: all 0.3s ease;
        }

.play-overlay:hover .play-icon {
            transform: scale(1.2);
        }

.video-info {
            padding: 1.2rem;
        }

.video-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.3s ease;
        }

.video-card:hover .video-title {
            color: var(--accent-primary);
        }

.video-meta {
            color: var(--text-secondary);
            font-size: 0.9rem;
            transition: color 0.3s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.75rem;
        }

.video-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

.video-card:hover .video-meta {
            color: var(--text-primary);
        }

.share-btn {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            padding: 0.3rem 0.6rem;
            border-radius: 8px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateX(10px);
        }

.video-card:hover .share-btn {
            opacity: 1;
            transform: translateX(0);
        }

.save-btn {
            background: rgba(55, 66, 250, 0.12);
            border: 1px solid rgba(55, 66, 250, 0.35);
            color: #c8d0ff;
            padding: 0.3rem 0.6rem;
            border-radius: 8px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateX(10px);
        }

.video-card:hover .save-btn {
            opacity: 1;
            transform: translateX(0);
        }

.save-btn:hover {
            background: var(--accent-secondary);
            color: white;
            border-color: var(--accent-secondary);
        }

.share-btn:hover {
            background: var(--accent-primary);
            color: white;
            border-color: var(--accent-primary);
        }

.loading-indicator {
            text-align: center;
            padding: 2rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

.loading-indicator.visible {
            opacity: 1;
        }

.spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--border-color);
            border-top: 3px solid var(--accent-primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

@keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

.error-message {
            text-align: center;
            color: var(--text-secondary);
            padding: 2rem;
            font-size: 1.1rem;
        }

.captcha-gate {
            background: linear-gradient(145deg, rgba(255, 71, 87, 0.12), var(--bg-secondary));
            border: 2px solid rgba(255, 71, 87, 0.55);
            border-radius: 14px;
            padding: 1.2rem;
            margin: 1rem auto 1.5rem;
            max-width: 360px;
            box-shadow: 0 0 0 1px rgba(255, 71, 87, 0.25), 0 8px 24px rgba(255, 71, 87, 0.18);
        }

.captcha-title {
            color: var(--text-primary);
            font-size: 1.02rem;
            font-weight: 700;
            margin-bottom: 0.35rem;
        }

.captcha-gate p {
            color: var(--text-secondary);
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
        }

.captcha-note {
            color: var(--text-muted);
            font-size: 0.78rem;
            margin-top: 0.6rem;
            line-height: 1.4;
        }

.captcha-status {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin: 0.5rem 0 1rem;
        }

.captcha-hidden {
            display: none;
        }

#mcaptcha__widget-container {
            width: 320px;
            max-width: 100%;
            min-height: 80px;
            overflow: hidden;
        }

#mcaptcha__widget-container iframe {
            width: 320px !important;
            max-width: 100% !important;
            height: 80px !important;
            border: 0;
        }

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

            .search-container {
                margin: 0;
                max-width: 100%;
            }

            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }

.player-container {
            background: var(--bg-secondary);
            border-radius: 20px;
            border: 1px solid var(--border-color);
            overflow: hidden;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-medium);
            animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

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

.video-player {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%;
        }

.video-player iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

.video-info {
            padding: 2rem;
            background: var(--gradient-card);
            border-top: 1px solid var(--border-color);
        }

.video-title {
            font-size: 2rem;
            font-weight: bold;
            color: var(--text-primary);
            margin-bottom: 1rem;
            line-height: 1.3;
        }

.video-meta {
            display: flex;
            align-items: center;
            gap: 2rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

.channel-name {
            color: var(--text-secondary);
            font-size: 1.1rem;
            text-decoration: none;
            transition: all 0.3s ease;
        }

.channel-name:hover {
            color: var(--accent-primary);
        }

.action-buttons {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }

.btn {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 0.8rem 1.5rem;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

.btn:hover {
            background: var(--border-hover);
            border-color: var(--border-hover);
        }

.btn-primary {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: white;
        }

.btn-primary:hover {
            background: var(--accent-primary-hover);
            border-color: var(--accent-primary-hover);
            transform: translateY(-2px);
            box-shadow: var(--shadow-light);
        }

.description-box {
            background: var(--bg-tertiary);
            padding: 1.5rem;
            border-radius: 16px;
            border: 1px solid var(--border-color);
            border-left: 4px solid var(--accent-primary);
            margin-top: 2rem;
        }

.description-title {
            color: var(--accent-primary);
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

.description-text {
            color: var(--text-secondary);
            line-height: 1.7;
            white-space: pre-wrap;
            word-wrap: break-word;
            max-height: 400px;
            overflow-y: auto;
        }

.share-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 3000;
            backdrop-filter: blur(15px);
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

.share-modal.active {
            display: flex;
        }

.share-modal-content {
            background: var(--bg-secondary);
            border-radius: 24px;
            border: 1px solid var(--border-color);
            max-width: 600px;
            width: 100%;
            padding: 2rem;
            animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: var(--shadow-heavy);
        }

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

.share-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }

.share-modal-header h3 {
            font-size: 1.4rem;
            color: var(--text-primary);
        }

.close-share-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

.close-share-btn:hover {
            color: var(--accent-primary);
            transform: scale(1.2);
        }

.share-toggle {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }

.toggle-btn {
            flex: 1;
            padding: 1rem;
            border: 2px solid var(--border-color);
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
        }

.toggle-btn.active {
            border-color: var(--accent-primary);
            background: var(--accent-primary);
            color: white;
        }

.toggle-btn:hover:not(.active) {
            border-color: var(--accent-primary);
        }

.share-url-box {
            background: var(--bg-primary);
            padding: 1.5rem;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }

.share-url-label {
            color: var(--text-secondary);
            font-size: 0.85rem;
            margin-bottom: 0.8rem;
            display: block;
        }

.share-url-display {
            font-family: 'Courier New', monospace;
            background: var(--bg-secondary);
            padding: 1rem;
            border-radius: 8px;
            color: var(--accent-primary);
            word-break: break-all;
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
            font-size: 0.85rem;
            line-height: 1.5;
        }

.timestamp-box {
            background: var(--bg-tertiary);
            padding: 1.5rem;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }

.timestamp-checkbox {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            margin-bottom: 1rem;
            cursor: pointer;
        }

.checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid var(--accent-primary);
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            background: transparent;
        }

.checkbox.checked {
            background: var(--accent-primary);
        }

.checkbox-label {
            color: var(--text-primary);
            font-weight: 600;
            cursor: pointer;
        }

.timestamp-input-group {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

.timestamp-input-group.active {
            opacity: 1;
            pointer-events: auto;
        }

.timestamp-input {
            flex: 1;
            padding: 0.8rem 1rem;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

.timestamp-input:focus {
            outline: none;
            border-color: var(--accent-primary);
            box-shadow: 0 0 15px rgba(255, 71, 87, 0.3);
        }

.copy-btn {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
        }

.copy-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
        }

.copy-btn:active {
            transform: translateY(0);
        }

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

            .search-container {
                margin: 0;
                max-width: 100%;
            }

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

            .video-meta {
                gap: 1rem;
            }

            .action-buttons {
                flex-direction: column;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }

            .share-modal-content {
                padding: 1.5rem;
            }

            .share-toggle {
                flex-direction: column;
            }
        }

.channel-header {
            background: var(--bg-secondary);
            border-radius: 20px;
            padding: 2.5rem;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-medium);
            animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

.channel-top {
            display: flex;
            align-items: center;
            gap: 2rem;
            margin-bottom: 2rem;
        }

.channel-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 3px solid var(--accent-primary);
            overflow: hidden;
            flex-shrink: 0;
            box-shadow: var(--shadow-medium);
            transition: transform 0.3s ease;
        }

.channel-avatar:hover {
            transform: scale(1.05);
        }

.channel-info {
            flex: 1;
        }

.channel-name {
            font-size: 2.2rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
        }

.channel-stats {
            color: var(--text-secondary);
            font-size: 1rem;
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

.stat-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

.channel-description {
            background: var(--bg-tertiary);
            padding: 1.5rem;
            border-radius: 15px;
            border: 1px solid var(--border-color);
            border-left: 4px solid var(--accent-primary);
            position: relative;
        }

.description-content {
            color: var(--text-secondary);
            line-height: 1.7;
            white-space: pre-wrap;
            word-wrap: break-word;
            position: relative;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

.description-content.truncated {
            max-height: 240px;
        }

.description-content.expanded {
            max-height: none;
        }

.description-fade {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 80px;
            background: linear-gradient(transparent, var(--bg-tertiary));
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

.description-fade.hidden {
            opacity: 0;
        }

.expand-btn {
            background: none;
            border: none;
            color: var(--accent-primary);
            cursor: pointer;
            font-weight: 600;
            margin-top: 1rem;
            padding: 0.5rem 0;
            transition: all 0.3s ease;
            display: block;
        }

.expand-btn:hover {
            color: var(--accent-primary-hover);
            transform: translateX(5px);
        }

.channel-tabs {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            align-items: center;
        }

.tab-btn {
            background: var(--bg-secondary);
            border: 2px solid var(--border-color);
            color: var(--text-secondary);
            padding: 0.9rem 2rem;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 600;
            font-size: 1rem;
        }

.tab-btn.active {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: white;
            box-shadow: var(--shadow-light);
        }

.tab-btn:hover:not(.active) {
            border-color: var(--accent-primary);
            transform: translateY(-2px);
        }

.sort-dropdown {
            background: var(--bg-secondary);
            border: 2px solid var(--border-color);
            color: var(--text-primary);
            padding: 0.9rem 1.5rem;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-left: auto;
        }

.sort-dropdown:focus {
            outline: none;
            border-color: var(--accent-primary);
            box-shadow: 0 0 30px rgba(255, 71, 87, 0.4);
        }

.sort-dropdown:hover {
            border-color: var(--accent-primary);
        }

.video-meta {
            color: var(--text-secondary);
            font-size: 0.9rem;
            transition: color 0.3s ease;
        }

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

            .search-container {
                margin: 0;
                max-width: 100%;
            }

            .channel-top {
                flex-direction: column;
                text-align: center;
            }

            .channel-name {
                font-size: 1.8rem;
            }

            .channel-stats {
                justify-content: center;
            }

            .channel-tabs {
                flex-direction: column;
            }

            .tab-btn,
            .sort-dropdown {
                width: 100%;
            }

            .sort-dropdown {
                margin-left: 0;
            }

            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }

.is-hidden { display: none; }

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-text { margin-top: 1rem; }

.empty-state-link { color: var(--accent-primary); }

.centered-spinner { margin: 0 auto; }

.muted-centered {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.muted-text { color: var(--text-secondary); }

.no-results-message {
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

.hidden-label { display: none; }

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-panel {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 90%;
}

.share-modal-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.share-modal-block {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.share-modal-block + .share-modal-block { margin-top: 2rem; }

.share-modal-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.share-modal-url {
    font-family: monospace;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 8px;
    word-break: break-all;
    color: var(--text-primary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.share-modal-copy-btn {
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.share-modal-copy-btn.litetube {
    background: var(--accent-primary);
}

.share-modal-copy-btn.litetube:hover {
    background: var(--accent-primary-hover);
}

.share-modal-copy-btn.youtube {
    background: var(--accent-secondary);
}

.share-modal-copy-btn.youtube:hover {
            background: #2030d4;
        }

.is-hidden { display: none; }

.me-main {
            max-width: 1280px;
        }

.profile-hero {
            background: linear-gradient(145deg, rgba(255, 71, 87, 0.12), rgba(55, 66, 250, 0.08), var(--bg-secondary));
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 1.5rem;
            box-shadow: var(--shadow-medium);
            margin-bottom: 1.5rem;
        }

.profile-card {
            display: flex;
            align-items: center;
            gap: 1.25rem;
            flex-wrap: wrap;
        }

.profile-copy {
            min-width: 0;
        }

.me-title {
            margin-bottom: 0.5rem;
        }

.profile-meta {
            color: var(--text-secondary);
            font-size: 0.95rem;
            white-space: pre-line;
        }

.profile-avatar {
            width: 88px;
            height: 88px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--accent-primary);
            box-shadow: 0 0 0 6px rgba(255, 71, 87, 0.08);
            flex-shrink: 0;
        }

.profile-avatar-placeholder {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            font-size: 2rem;
            font-weight: 700;
        }

.profile-actions {
            margin-top: 1rem;
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

.library-section {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 1.5rem;
            box-shadow: var(--shadow-light);
            margin-bottom: 1.5rem;
        }

.section-header-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 1rem;
            flex-wrap: wrap;
        }

.playlist-create-form {
            display: flex;
            gap: 0.75rem;
            align-items: center;
            flex-wrap: wrap;
        }

.playlist-input {
            min-width: 260px;
            padding: 0.85rem 1rem;
            border-radius: 14px;
            border: 1px solid var(--border-color);
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }

.playlist-input:focus {
            outline: none;
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
        }

.playlist-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }

.playlist-card {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

.playlist-card-header {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            align-items: flex-start;
        }

.playlist-card-header h3 {
            font-size: 1.1rem;
            margin-bottom: 0.2rem;
        }

.playlist-card-header p {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

.playlist-badge {
            padding: 0.35rem 0.65rem;
            border-radius: 999px;
            background: rgba(255, 71, 87, 0.12);
            color: var(--accent-primary);
            border: 1px solid rgba(255, 71, 87, 0.25);
            font-size: 0.8rem;
            white-space: nowrap;
        }

.playlist-videos {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

.playlist-video-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.75rem 0;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

.playlist-video-link {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            text-decoration: none;
            min-width: 0;
        }

.playlist-video-title {
            color: var(--text-primary);
            font-weight: 600;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

.playlist-video-meta {
            color: var(--text-secondary);
            font-size: 0.82rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

.icon-btn {
            border: 1px solid var(--border-color);
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            border-radius: 999px;
            padding: 0.45rem 0.75rem;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

.icon-btn:hover {
            color: var(--text-primary);
            border-color: var(--accent-primary);
            background: rgba(255, 71, 87, 0.12);
        }

.icon-btn.danger:hover {
            border-color: rgba(255, 71, 87, 0.6);
            background: rgba(255, 71, 87, 0.18);
        }

.history-layout {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1.5rem;
        }

.history-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-top: 1rem;
        }

.history-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1rem;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.06);
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
        }

.history-item:hover {
            transform: translateY(-2px);
            border-color: rgba(255, 71, 87, 0.35);
            background: rgba(255, 71, 87, 0.08);
        }

.watch-history-item {
            align-items: center;
        }

.history-thumb {
            width: 72px;
            height: 48px;
            border-radius: 10px;
            overflow: hidden;
            background: var(--bg-tertiary);
            flex-shrink: 0;
        }

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

.history-thumb-placeholder {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(255, 71, 87, 0.15), rgba(55, 66, 250, 0.15));
        }

.history-copy {
            flex: 1;
            min-width: 0;
        }

.history-title {
            color: var(--text-primary);
            font-weight: 600;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

.history-meta {
            color: var(--text-secondary);
            font-size: 0.85rem;
            margin-top: 0.2rem;
        }

.history-arrow {
            color: var(--accent-primary);
            font-size: 0.82rem;
            white-space: nowrap;
        }

.playlist-modal-content {
            max-width: 720px;
        }

.playlist-modal-body {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

.playlist-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

.playlist-option {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.9rem 1rem;
            border-radius: 14px;
            border: 1px solid var(--border-color);
            background: var(--bg-primary);
            cursor: pointer;
            color: var(--text-primary);
        }

.playlist-option input {
            accent-color: var(--accent-primary);
        }

.playlist-modal-actions {
            display: flex;
            justify-content: flex-end;
        }

@media (max-width: 768px) {
            .header-actions {
                margin-left: 0;
            }

            .profile-card {
                align-items: flex-start;
            }

            .history-item,
            .playlist-video-row,
            .playlist-card-header,
            .section-header-row {
                align-items: flex-start;
                flex-direction: column;
            }

            .playlist-create-form {
                width: 100%;
            }

            .playlist-input {
                min-width: 100%;
                width: 100%;
            }
        }
