/* YouTube Radar Styles */

.youtube-section {
    padding: 100px 0;
    min-height: 80vh;
    background: radial-gradient(circle at top right, #1a0a0a, #000);
}

.youtube-container {
    padding: 30px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.1);
}

.yt-header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.yt-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 50px;
    padding: 5px 20px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.yt-icon {
    font-size: 1.5rem;
    color: #ff0000;
    margin-right: 15px;
}

#ytChannelInput {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 10px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
}

#ytChannelInput:focus {
    outline: none;
}

#ytAddChannelBtn {
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.9rem;
    background: #ff0000;
    color: white;
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 1px;
    white-space: nowrap;
}

.yt-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.yt-channel-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.yt-channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

.yt-card-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.yt-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #ff0000;
}

.yt-channel-name {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yt-video-preview {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.yt-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.yt-video-preview:hover .yt-play-overlay {
    opacity: 1;
}

.yt-play-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.yt-video-details {
    padding: 15px;
}

.yt-video-title {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.yt-timestamp {
    font-size: 0.75rem;
    color: #777;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0000;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Syncopate', sans-serif;
    animation: pulse 2s infinite;
}

.yt-delete-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    transition: color 0.3s;
}

.yt-delete-btn:hover {
    color: #ff0000;
}

/* Modal */
.yt-modal-content {
    background: #000;
    border: 1px solid #333;
    max-width: 900px;
    width: 90%;
    padding: 0;
}

.yt-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.yt-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.yt-video-info {
    padding: 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yt-video-info h3 {
    color: white;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

.yt-channel-link {
    color: #ff0000;
    text-decoration: none;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.9rem;
    border: 1px solid #ff0000;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.yt-channel-link:hover {
    background: #ff0000;
    color: white;
}