@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root { 
    --yt-black: #0f0f0f; 
    --yt-white: #ffffff; 
    --yt-grey: #272727; 
    --yt-hover: #3f3f3f; 
    --yt-border: rgba(255, 255, 255, 0.1); 
    --yt-text-sec: #aaaaaa; 
    --yt-primary: #3ea6ff; 
    --header-height: 56px; 
    --sidebar-width: 240px; 
    /* Tema Uyumlu Şeffaf Arka Planlar */
    --yt-overlay: rgba(255, 255, 255, 0.1);
    --yt-overlay-light: rgba(255, 255, 255, 0.05);
    --yt-overlay-hover: rgba(255, 255, 255, 0.2);
    --yt-player-bg: #000000;
}

.light-theme { 
    --yt-black: #ffffff; 
    --yt-white: #0f0f0f; 
    --yt-grey: #f2f2f2; 
    --yt-hover: #e5e5e5; 
    --yt-border: rgba(0, 0, 0, 0.1); 
    --yt-text-sec: #606060; 
    --yt-primary: #065fd4; /* Açık temada mavi rengin okunabilir koyu tonu */
    /* Açık Tema Şeffaf Arka Planlar */
    --yt-overlay: rgba(0, 0, 0, 0.05);
    --yt-overlay-light: rgba(0, 0, 0, 0.02);
    --yt-overlay-hover: rgba(0, 0, 0, 0.1);
    --yt-player-bg: #f9f9f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', Arial, sans-serif; background-color: var(--yt-black); color: var(--yt-white); overflow-x: hidden; transition: background-color 0.3s, color 0.3s; }

/* HEADER & SIDEBAR */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: var(--yt-black); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 1001; border-bottom: 1px solid var(--yt-border); transition: background-color 0.3s, border-color 0.3s;}
.header-left { display: flex; align-items: center; gap: 16px; min-width: 200px; }
.menu-icon { font-size: 24px; cursor: pointer; padding: 8px; border-radius: 50%; color: var(--yt-white); }
.logo { display: flex; align-items: center; gap: 4px; text-decoration: none; color: var(--yt-white); font-size: 18px; font-weight: bold; letter-spacing: -1px; }
.logo i { color: #ff0000; font-size: 24px; }
.header-center { flex: 0 1 720px; display: flex; align-items: center; gap: 12px; }
.search-box { flex: 1; display: flex; background: var(--yt-black); border: 1px solid var(--yt-border); border-radius: 40px; overflow: hidden; height: 40px; transition: border-color 0.3s, background-color 0.3s;}
.search-box input { flex: 1; background: transparent; border: none; color: var(--yt-white); padding: 0 16px; outline: none; font-size:16px;}
.search-btn { background: var(--yt-overlay-light); border: none; color: var(--yt-white); width: 64px; border-left: 1px solid var(--yt-border); cursor: pointer; transition: background-color 0.3s; }
.header-right { display: flex; align-items: center; gap: 16px; position: relative;}
.header-icon { font-size: 20px; cursor: pointer; color: var(--yt-white); }

.btn-login-outline { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--yt-primary); color: var(--yt-primary); padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 500; cursor: pointer; transition: 0.2s; text-decoration: none;}
.btn-login-outline:hover { background: var(--yt-overlay); }
.user-avatar-btn { width: 32px; height: 32px; border-radius: 50%; background: #764ba2; color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; cursor: pointer; }
.user-dropdown { display: none; position: absolute; top: 40px; right: 0; background: var(--yt-black); border: 1px solid var(--yt-border); border-radius: 8px; width: 200px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); z-index: 2001;}
.user-dropdown.show { display: block; }
.dropdown-item { display: block; padding: 12px 16px; color: var(--yt-white); text-decoration: none; font-size: 14px; }
.dropdown-item:hover { background: var(--yt-overlay); }

.sidebar { position: fixed; top: var(--header-height); left: 0; bottom: 0; width: var(--sidebar-width); background: var(--yt-black); padding: 12px; overflow-y: auto; z-index: 1000; border-right: 1px solid var(--yt-border); transition: background-color 0.3s, border-color 0.3s;}
.sidebar::-webkit-scrollbar { width: 8px; } .sidebar::-webkit-scrollbar-thumb { background: var(--yt-grey); border-radius: 4px; }
.sidebar-item { display: flex; align-items: center; gap: 20px; padding: 10px 12px; text-decoration: none; color: var(--yt-white); border-radius: 10px; font-size: 14px; transition: 0.2s; cursor: pointer; border: none; background: transparent; width: 100%; text-align: left; }
.sidebar-item:hover { background: var(--yt-hover); }
.sidebar-item.active { background: var(--yt-overlay); font-weight: 500; color: var(--yt-primary); }
.sidebar-item i { font-size: 20px; width: 24px; text-align: center;}
.sidebar-hr { height: 1px; background: var(--yt-border); margin: 12px 0; border: none; }
.sidebar-title { padding: 8px 12px; font-size: 16px; font-weight: 600; margin-top: 8px; color: var(--yt-white);}
.sidebar-submenu { display: none; flex-direction: column; padding-left: 44px; margin-top: 4px; }
.sidebar-submenu.show { display: flex; }
.sub-item { padding: 8px 12px; font-size: 13px; gap: 0; }
.dropdown-btn i.arrow { transition: transform 0.3s; font-size: 14px; margin-left: auto; }
.dropdown-btn.open i.arrow { transform: rotate(180deg); }

/* MAIN CONTENT & GRIDS */
.main-wrapper { margin-left: var(--sidebar-width); padding: calc(var(--header-height) + 24px) 24px 40px; display: flex; flex-direction: column; gap: 24px; max-width: 1800px; margin-right: auto; min-height: 100vh;}
.top-nav { position: fixed; top: var(--header-height); left: var(--sidebar-width); right: 0; height: 56px; background: var(--yt-black); display: flex; align-items: center; padding: 0 24px; gap: 12px; z-index: 999; border-bottom: 1px solid var(--yt-border); overflow-x: auto; transition: background-color 0.3s, border-color 0.3s;}
.top-nav ~ .main-wrapper { padding-top: calc(var(--header-height) + 56px + 24px); }
.cat-btn { padding: 6px 12px; background: var(--yt-overlay); border: none; border-radius: 8px; color: var(--yt-white); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; transition: 0.2s; white-space: nowrap; }
.cat-btn:hover { background: var(--yt-overlay-hover); }
.cat-btn.active { background: var(--yt-white); color: var(--yt-black); }

.home-grid, .gundem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 32px 16px; width: 100%;}
.video-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; cursor: pointer; width: 100%; transition: transform 0.2s;}
.video-card:hover { transform: translateY(-4px); }
.video-thumb-wrapper { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--yt-grey);}
.video-thumb { width: 100%; height: 100%; object-fit: cover; transition: 0.2s;}
.duration-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); color: white; padding: 3px 4px; border-radius: 4px; font-size: 12px; font-weight: 500; z-index: 10;}
.video-info-row { display: flex; gap: 12px; align-items: flex-start; }
.grid-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--yt-grey); color: var(--yt-white); display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; margin-top: 2px; }
.grid-text-block { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.grid-title { font-size: 15px; font-weight: 500; color: var(--yt-white) !important; line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid-channel { font-size: 13px; color: var(--yt-text-sec) !important; line-height: 1.4; }
.grid-meta { font-size: 13px; color: var(--yt-text-sec) !important; line-height: 1.4; }

.loading-spinner { text-align: center; padding: 20px; color: var(--yt-text-sec); width: 100%; margin-top: 20px; display: none; grid-column: 1/-1; }
.loading-spinner i { font-size: 24px; animation: spin 1s linear infinite; display: inline-block;}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* SONG & NEWS DETAILS */
.watch-container { display: flex; flex-direction: row; gap: 24px; width: 100%; align-items: flex-start;}
.video-section { flex: 1; min-width: 0; }
.secondary-col { width: 400px; flex-shrink: 0; }

.player-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--yt-player-bg) !important; border-radius: 12px; overflow: hidden; margin-bottom:16px;}
.player-wrapper iframe { width: 100%; height: 100%; border: none; pointer-events: auto;}
.lux-watermark { position: absolute; top: 16px; left: 20px; background: rgba(0,0,0,0.6); color: #fff; padding: 6px 12px; border-radius: 8px; font-weight: 800; font-size: 16px; pointer-events: none; z-index: 50; backdrop-filter: blur(4px); letter-spacing: 2px;}
.lux-watermark span { color: var(--yt-primary); }

.song-details { margin-top: 12px; }
.song-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; color: var(--yt-white) !important; }
.video-actions-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.channel-info-block { display: flex; align-items: center; gap: 12px; }
.channel-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--yt-grey); color: var(--yt-primary); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; border: 1px solid var(--yt-border); flex-shrink:0; }
.channel-text { display: flex; flex-direction: column; justify-content: center; margin-right: 8px;}
.channel-name { font-weight: 600; font-size: 16px; color: var(--yt-white) !important; display: flex; align-items: center; gap: 4px; }
.channel-subs { font-size: 12px; color: var(--yt-text-sec); }

.btn-subscribe { background: var(--yt-white); color: var(--yt-black); border: none; padding: 0 16px; height: 36px; border-radius: 18px; font-weight: 500; font-size: 14px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
.btn-subscribe.subscribed { background: var(--yt-overlay); color: var(--yt-white); }

.action-buttons-group { display: flex; align-items: center; gap: 8px; flex-wrap:wrap;}
.pill-btn-group { display: flex; background: var(--yt-overlay-light); border-radius: 18px; height: 36px; align-items: center;}
.pill-btn { background: transparent; color: var(--yt-white); border: none; padding: 0 16px; height: 100%; font-weight: 500; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.pill-btn:hover { background: var(--yt-overlay-hover); }
.pill-btn-left { border-radius: 18px 0 0 18px; border-right: 1px solid var(--yt-border);}
.pill-btn-right { border-radius: 0 18px 18px 0; padding: 0 12px; }
.pill-btn-single { background: var(--yt-overlay-light); color: var(--yt-white); border: none; padding: 0 16px; height: 36px; border-radius: 18px; font-weight: 500; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.pill-btn-single:hover { background: var(--yt-overlay-hover); }
.pill-btn-circle { width: 36px; height: 36px; border-radius: 50%; padding: 0; justify-content: center; }

.description-box { background: var(--yt-overlay-light) !important; padding: 16px; border-radius: 12px; margin-top: 16px; font-size: 14px; line-height: 1.5; transition: 0.2s; cursor: pointer; border: 1px solid var(--yt-border) !important;}
.desc-stats { font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--yt-white) !important;}
.desc-stats span { color: var(--yt-white) !important; }
.cat-tag { color: var(--yt-primary); text-decoration: none; font-weight: 500; background: var(--yt-overlay-light); padding: 4px 10px; border-radius: 12px; font-size: 12px;}
.desc-content-wrapper { max-height: 65px; overflow: hidden; transition: max-height 0.4s ease-in-out; color: var(--yt-white) !important; }
.desc-content-wrapper.expanded { max-height: 5000px !important; }
.desc-lyrics { white-space: pre-wrap; font-family: inherit; margin-top: 4px; color: var(--yt-white); }
.show-more-btn { background: transparent; border: none; color: var(--yt-white); font-weight: 700; cursor: pointer; margin-top: 8px; padding: 0; font-size: 14px; font-family: inherit; }

/* PHP'DEN GELEN INLINE RENKLERİ EZMEK İÇİN YENİ KURALLAR */
.news-content-text { color: var(--yt-white) !important; }
.news-content-text * { color: var(--yt-white) !important; } 
.news-content-text img { max-width: 100%; height: auto; border-radius: 12px; margin: 20px auto; display: block; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }

.news-cover-wrapper { position: relative; width: 100%; height: 450px; border-radius: 12px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--yt-border); background: var(--yt-player-bg) !important; display: flex; align-items: center; justify-content: center; }
.news-cover-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; filter: blur(20px); transform: scale(1.1); z-index: 1; }
.news-cover-wrapper img.main-img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; z-index: 2; display: block; border-radius: 8px; box-shadow: 0 4px 30px rgba(0,0,0,0.6); }

/* YORUMLAR */
.content-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--yt-border); }
.section-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; color: var(--yt-white); }
.comment-input-row { display: flex; gap: 16px; margin-bottom: 32px; }
.comment-input-wrapper { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.comment-input-wrapper input { background: transparent; border: none; border-bottom: 1px solid var(--yt-border); color: var(--yt-white); outline: none; padding: 4px 0; font-size: 14px; transition: border-color 0.3s; }
.comment-input-wrapper input:focus { border-bottom: 2px solid var(--yt-white); padding-bottom: 3px; }
.comment-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; display: none; }
.comment-item { display: flex; gap: 16px; margin-bottom: 16px; }
.comment-author-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.comment-author { font-size: 13px; font-weight: 600; color: var(--yt-white); }
.comment-time { font-size: 12px; color: var(--yt-text-sec); }
.comment-text { font-size: 14px; line-height: 1.4; margin-bottom: 8px; color: var(--yt-white); }

.comment-interaction { display: flex; align-items: center; gap: 16px; color: var(--yt-text-sec); }
.comment-interaction span { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; cursor: pointer; transition: color 0.2s; }
.comment-interaction span:hover { color: var(--yt-white); }
.comment-interaction i { font-size: 14px; }
.comment-reply-form { margin-left: 56px; margin-top: 8px; display: none; }
.nested-comments { margin-left: 56px; margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--yt-overlay); }

/* ARTIST PROFİLİ & SAĞ MENÜ */
.artist-banner { position: relative; width: 100%; height: 300px; background: var(--yt-player-bg) !important; border-radius: 16px; overflow: hidden; margin-bottom: 40px; display: flex; align-items: flex-end; padding: 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.artist-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); z-index: 1; }
.artist-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; z-index: 0; filter: blur(4px) brightness(0.8); }
.artist-profile-content { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; width: 100%; }
.artist-avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid var(--yt-black); box-shadow: 0 4px 20px rgba(0,0,0,0.5); background: var(--yt-grey); display:flex; align-items:center; justify-content:center; font-size:48px; font-weight:bold; color:var(--yt-primary);}
.artist-info { flex: 1; }
/* Artist Name is over gradient background, keeping it #fff is okay but var(--yt-white) is safer */
.artist-name { font-size: 36px; font-weight: 800; color: #fff !important; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; } 

.artist-gallery-container { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.artist-gallery-container::-webkit-scrollbar { height: 6px; }
.artist-gallery-container::-webkit-scrollbar-thumb { background: var(--yt-border); border-radius: 4px; }
.artist-gallery-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; cursor: pointer; border: 1px solid transparent; transition: transform 0.2s, border-color 0.2s; flex-shrink: 0; background: var(--yt-grey); }
.artist-gallery-thumb:hover { transform: scale(1.1); border-color: var(--yt-primary); box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.lux-swal-image { object-fit: contain !important; max-height: 70vh !important; border-radius: 8px; background: var(--yt-black); }

.personal-info-box { background: var(--yt-overlay-light) !important; border: 1px solid var(--yt-border) !important; border-radius: 12px; padding: 20px; margin-bottom: 24px; box-shadow: inset 0 0 20px rgba(0,0,0,0.05); }
.info-row { display: flex; flex-direction: column; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--yt-border); }
.info-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-label { font-size: 11px; color: var(--yt-text-sec); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;}
.info-value { font-size: 14px; font-weight: 500; color: var(--yt-white) !important; line-height: 1.4;}

/* Sidebar Listeler ve Yazı Renkleri İçin Sabitleme */
ul li strong { color: var(--yt-white) !important; }
ul li { color: var(--yt-text-sec) !important; }
.title { color: var(--yt-white) !important; }
.bi-patch-check-fill, .bi-check-circle-fill { color: var(--yt-primary) !important; }

.up-next { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.artist-list-card { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; background: var(--yt-overlay-light) !important; border: 1px solid var(--yt-border) !important; text-decoration: none; color: inherit; transition: 0.2s; }
.artist-list-card:hover { background: var(--yt-overlay) !important; transform: translateX(4px); border-color: var(--yt-primary) !important; }
.artist-list-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: var(--yt-grey); flex-shrink: 0; }
.artist-list-info .name { font-size: 14px; font-weight: 600; color: var(--yt-white); margin-bottom: 2px; }
.artist-list-info .meta { font-size: 11px; color: var(--yt-text-sec); }

.next-header { font-size: 16px; font-weight: 600; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--yt-border); color: var(--yt-white) !important;}
.next-item { display: flex; gap: 8px; text-decoration: none; color: inherit; border-radius: 8px; padding: 4px; transition: 0.2s; }
.next-item:hover { background: var(--yt-overlay); }
.next-thumb { width: 168px; height: 94px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.next-info { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.next-info .title { font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; color: var(--yt-white) !important; }
.next-info .meta { font-size: 12px; color: var(--yt-text-sec); line-height: 1.2; }

/* MODALS */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 10000; align-items: center; justify-content: center; }
.modal-box { background: var(--yt-black); border: 1px solid var(--yt-border); padding: 24px; border-radius: 12px; width: 400px; max-width: 90%; position: relative;}
.form-input { width: 100%; padding: 12px; background: transparent; border: 1px solid var(--yt-border); color: var(--yt-white); border-radius: 8px; margin-bottom: 16px; font-size: 14px;}
.form-input:focus { border-color: var(--yt-primary); outline: none; }
.btn-full { width: 100%; padding: 12px; background: var(--yt-primary); color: #000; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; transition: 0.2s;}

.more-dropdown { display: none; position: absolute; top: 40px; right: 0; background: var(--yt-grey); border: 1px solid var(--yt-border); border-radius: 8px; width: 180px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); z-index: 2000; padding: 8px 0; }
.more-dropdown.show { display: block; }
.more-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--yt-white); text-decoration: none; font-size: 14px; cursor: pointer; border:none; background:transparent; width:100%; text-align:left;}
.more-item:hover { background: var(--yt-overlay); }
.pl-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: var(--yt-overlay-light); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: 0.2s;}
.pl-item:hover { background: var(--yt-overlay); }

.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; width: 100%; color: var(--yt-white); }

/* Mobil Header İkon Rengi Override */
.btn-login-outline.mic-btn-desktop {
    background: var(--yt-overlay-light) !important;
    color: var(--yt-white) !important;
}

@media (max-width: 1100px) { .sidebar { width: 72px; padding: 12px 4px; } .sidebar-item { flex-direction: column; gap: 4px; font-size: 10px; padding: 12px 0; justify-content: center; text-align: center;} .sidebar-item i { font-size: 24px; margin: 0; width: auto;} .sidebar-title, .sidebar-hr, .sidebar-submenu, .dropdown-btn i.arrow { display: none !important; } .main-wrapper { margin-left: 72px; padding-left: 16px; padding-right: 16px; } .top-nav { left: 72px; } }
@media (max-width: 1000px) { .watch-container { flex-direction: column; } .secondary-col { width: 100%; } .next-thumb { width: 160px; height: 90px; } .artist-banner { height: auto; padding: 24px; flex-direction: column; align-items: center; text-align: center;} .artist-profile-content { flex-direction: column; text-align: center; } }
@media (max-width: 768px) { .sidebar { display: none; } .top-nav { left: 0; } .main-wrapper { margin-left: 0; padding-top: calc(var(--header-height) + 16px); } }
/* Kütüphane ve Profil Sayfaları İçin Ortak Sidebar Düzeni */
.lib-page-active body > .sidebar { display: none !important; }
.lib-page-active .main-wrapper { margin-left: 0 !important; padding: calc(var(--header-height)) 0 0 0 !important; display: flex !important; flex-direction: row !important; max-width: 100% !important; }

.library-sidebar { width: 260px; background: var(--yt-black); border-right: 1px solid var(--yt-border); position: fixed; top: var(--header-height); bottom: 0; left: 0; padding: 24px 16px; overflow-y: auto; z-index: 900; transition: background-color 0.3s, border-color 0.3s;}
.library-content { flex: 1; margin-left: 260px; padding: 40px; max-width: 1600px; margin-right: auto; width: 100%; }

.lib-menu-title { font-size: 13px; font-weight: 700; color: var(--yt-text-sec); text-transform: uppercase; letter-spacing: 1px; margin: 20px 0 8px 12px; }
.lib-item { display: flex; align-items: center; gap: 16px; padding: 12px 16px; color: var(--yt-white); text-decoration: none; border-radius: 12px; font-size: 14px; font-weight: 500; transition: 0.2s; margin-bottom: 4px; }
.lib-item:hover { background: var(--yt-overlay-light); transform: translateX(4px); }
.lib-item.active { background: var(--yt-overlay); color: var(--yt-primary); font-weight: 600; border-left: 4px solid var(--yt-primary); border-radius: 0 12px 12px 0; }
.lib-item i { font-size: 20px; width: 24px; text-align: center; }

@media (max-width: 1000px) { .library-sidebar { display: none; } .library-content { margin-left: 0; padding: 20px; } }