.sidebar-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 160px;
    background: var(--accent-red);
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: background-color 0.2s ease, right 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-tab:hover {
    background-color: #d60101;
    right: 2px;
}

.tab-text {
    font-family: 'SLNTHLN', sans-serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ffffff;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg); /* Reads bottom to top */
    text-transform: uppercase;
}

/* Sidebar Panel (Expanded State) */
.sidebar-panel {
    position: fixed;
    right: -320px; /* Hidden by default */
    top: 50%;
    transform: translateY(-50%);
    width: 290px;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-right: none;
    border-radius: 20px 0 0 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 101;
    transition: right 0.3s ease-in-out, opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-panel.open {
    right: 0; /* Slide in flush to edge */
}

/* Left Sidebar Tab (Collapsed State - Vertical Red Rectangle) */
.sidebar-tab-left {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 160px;
    background: var(--accent-red);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: background-color 0.2s ease, left 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-tab-left:hover {
    background-color: #d60101;
    left: 2px;
}

/* Left Sidebar Panel (Expanded State) */
.sidebar-panel-left {
    position: fixed;
    left: -320px; /* Hidden by default */
    top: 50%;
    transform: translateY(-50%);
    width: 290px;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-left: none;
    border-radius: 0 20px 20px 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 101;
    transition: left 0.3s ease-in-out, opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-panel-left.open {
    left: 0; /* Slide in flush to edge */
}

/* Close button */
.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.sidebar-close:hover {
    color: #fff;
    background: none;
    box-shadow: none;
    border-color: transparent;
}

.sidebar-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-top: 4px;
}

.sidebar-divider {
    height: 1px;
    background: var(--panel-border);
    width: 100%;
}

/* Profile Card */
.sidebar-profile-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    transition: background-color 0.2s ease;
}

.sidebar-profile-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Avatar Frame */
.profile-avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--accent-red);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Creador Tag */
.profile-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(246, 1, 1, 0.15);
    border: 1px solid var(--accent-red);
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.profile-subscribers {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.yt-badge {
    background: var(--accent-red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.profile-card-action {
    margin-top: 6px;
    width: 100%;
    background: var(--accent-red);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.profile-card-action:hover {
    background-color: #d60101;
}
