/* Channel Cards */
.channel-card {
    align-items: center;
    text-align: center;
    padding-top: 1.5rem;
}

.channel-avatar-link {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border-radius: 50%;
    aspect-ratio: 1/1;
}

.channel-avatar-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.channel-desc {
    font-size: 0.95rem;
    color: var(--muted-text-color);
    margin: 0.5rem 0 0 0;
    text-align: center;
}

.youtube-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.youtube-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 1rem;
}

.youtube-content {
    flex-grow: 1;
}

/* Channel List */
.channel-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    /* Slightly smaller than main radius for list items */
    transition: background 0.2s;
}

.channel-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.channel-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-name {
    font-size: 0.9rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Channel Header Grid */
.channel-header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* Desktop: Back/Thumb | Info | Buttons */
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

.channel-header-start {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.channel-header-info h1 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .channel-header-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        justify-items: center;
        /* Center align on mobile */
        text-align: center;
    }

    .channel-header-start {
        flex-direction: column;
        align-items: center;
    }

    .channel-header-info h1 {
        justify-content: center;
    }

    .channel-header-actions {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .youtube-container {
        flex-direction: column;
    }

    .youtube-sidebar {
        width: 100%;
        position: static;
        max-height: 200px;
        overflow-y: auto;
    }
}

/* YouTube Video Grid */


/* video-card styles moved to application.css .interactive-card */

.video-card {
    padding: 0;
}

.video-thumbnail-link {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}

.interactive-card:hover .video-play-overlay {
    opacity: 1;
}

.video-badge-short {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-weight: 600;
    text-transform: uppercase;
}

.video-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Adjust short badge if both are present - though logic usually handles one or other */
.video-duration-badge+.video-badge-short {
    right: 50px;
    /* shift left if both exist */
}

.video-details {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    /* Matched closer to 1.2rem of habits */
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
}

.video-title a {
    text-decoration: none;
    color: inherit;
}

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

.video-meta {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--muted-text-color);
    display: flex;
    justify-content: space-between;
}

.subscription-count {
    font-size: 1rem;
    color: var(--muted-text-color);
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.channel-stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--muted-text-color);
    font-weight: 500;
}

.btn-google {
    background-color: #dd4b39;
    color: white;
    border: none;
}

.btn-google:hover {
    background-color: #c23321;
}


.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-color, #333);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.watch-later-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background-color: #e6f4ea;
    color: #1e7e34;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Extracted Inline Styles */
.btn-header-action {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-name-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon-danger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #dc3545;
}

.card-actions-wrapper {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.btn-action-default {
    color: #333;
}

.btn-action-tv {
    color: #17a2b8;
}

.btn-action-cook {
    color: #fd7e14;
}

.btn-action-danger {
    color: #d9534f;
}

/* Tabs Dropdown */
.tabs-dropdown-container {
    margin-left: auto;
    position: relative;
}

.dropdown-details {
    position: relative;
}

.dropdown-summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-summary::-webkit-details-marker {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    background: var(--card-bg, #ffffff);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    padding: 0.5rem 0;
}