body {
    margin: 0;
    padding-top: 56px;
    font-family: "Roboto", Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s;
}

.content-wrapper {
    display: flex;
    gap: 24px;
    max-width: 1754px;
    margin: 0 auto;
    padding: 24px;
}

.primary-content {
    flex: 1;
    min-width: 0;
}

.secondary-content {
    width: 402px;
    flex-shrink: 0;
}

.video-container {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 5px;
}

.video-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.video-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
}

.channel-details {
    flex: 1;
}

.channel-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.channel-stats {
    font-size: 12px;
    color: var(--text-secondary);
}

.subscribe-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 10px 16px;
    border-radius: 18px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subscribe-btn.subscribed {
    background: var(--button-bg);
    color: var(--text-primary);
}

.subscribe-btn:hover {
    transform: translateY(-2px);
}

.video-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--button-bg);
    border: none;
    padding: 10px 16px;
    border-radius: 18px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-button:hover {
    background: var(--hover-bg);
}

.action-button.liked {
    color: #3ea6ff;
}

.action-button.earn-btn {
    background: var(--gradient-earn);
    color: white;
}

.action-button.earn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.description-container {
    background: var(--button-bg);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 24px;
}

.description-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.description-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.comments-section {
    margin-top: 24px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.comments-count {
    font-size: 20px;
    font-weight: 500;
}

.realtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.comment-input-section {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    flex-shrink: 0;
}

.comment-input-wrapper {
    flex: 1;
}

.comment-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    padding: 2px 0 8px 0;
    outline: none;
}

.comment-input:focus {
    border-bottom-color: var(--text-primary);
}

.comment-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.comment-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.cancel-btn {
    background: transparent;
    color: var(--text-primary);
}

.post-btn {
    background: #3ea6ff;
    color: #0f0f0f;
}

.post-btn:disabled {
    background: var(--button-bg);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.comment-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 13px;
    font-weight: 500;
}

.comment-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-text {
    font-size: 14px;
    line-height: 20px;
    color: var(--text-primary);
}

.earn-banner {
    background: var(--gradient-earn);
    color: white;
    padding: 20px 24px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.3);
}

.earn-banner:hover {
    transform: translateY(-3px);
}

.earn-banner h4 {
    margin-bottom: 8px;
    font-size: 20px;
}

.earn-banner p {
    font-size: 14px;
    opacity: 0.95;
}

.related-section {
    margin-bottom: 16px;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 6px;
}

.related-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.related-video {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}

.related-video:hover {
    background: var(--hover-bg);
}

.related-thumbnail {
    width: 168px;
    height: 94px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.related-channel {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.related-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.login-prompt {
    background: var(--button-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
}

.login-prompt a {
    color: #3ea6ff;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
        padding: 0 16px;
    }

    .secondary-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .video-title {
        font-size: 18px;
    }

    .video-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-wrapper {
        margin-top: 0;
        padding: 0;
    }

    .video-container {
        border-radius: 0;
    }

    .primary-content {
        padding: 0 12px;
    }
}