/* YouTube Studio Exact Desktop Styling */
:root {
  --yt-spec-base-background: #ffffff;
  --yt-spec-general-background-a: #f9f9f9;
  --yt-spec-general-background-b: #f1f1f1;
  --yt-spec-text-primary: #0d0d0d;
  --yt-spec-text-secondary: #606060;
  --yt-spec-text-disabled: #909090;
  --yt-spec-10-percent-layer: rgba(0, 0, 0, 0.1);
  --yt-spec-border-color: #e5e5e5;
  --yt-spec-brand-red: #cc0000;
  --yt-spec-call-to-action: #065fd4;
  --yt-spec-badge-chip-background: rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--yt-spec-base-background);
  color: var(--yt-spec-text-primary);
  font-size: 13px;
  line-height: 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.yt-header {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--yt-spec-border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  z-index: 40;
  flex-shrink: 0;
}

.yt-header-left { display: flex; align-items: center; gap: 12px; min-width: 220px; }

.yt-icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: transparent; color: #606060;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background-color 0.15s;
}
.yt-icon-btn:hover { background-color: rgba(0, 0, 0, 0.05); color: #0d0d0d; }

.yt-logo-wrap { display: flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; }
.yt-search-container { flex: 1; max-width: 580px; margin: 0 24px; }
.yt-search-box {
  display: flex; align-items: center; height: 36px;
  border: 1px solid #cccccc; border-radius: 8px; padding: 0 12px; background: #ffffff;
}
.yt-search-box:focus-within { border-color: #0d0d0d; }
.yt-search-box input { border: none; outline: none; width: 100%; font-size: 14px; color: #0d0d0d; margin-left: 10px; font-family: inherit; }

.yt-header-right { display: flex; align-items: center; gap: 8px; }
.yt-create-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 1px solid #cccccc; border-radius: 18px; background: #ffffff; color: #0d0d0d;
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.yt-create-btn:hover { background-color: #f2f2f2; }

.yt-signin-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border: 1px solid #d0d7de; border-radius: 18px; background: #ffffff; color: #065fd4;
  font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none;
}
.yt-signin-btn:hover { background-color: #def1ff; border-color: transparent; }

.yt-avatar-btn { width: 32px; height: 32px; border-radius: 50%; border: none; padding: 0; overflow: hidden; cursor: pointer; margin-left: 6px; background: #e5e5e5; }
.yt-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.yt-workspace { display: flex; flex: 1; overflow: hidden; position: relative; }

.yt-sidebar {
  width: 256px; background: #ffffff; border-right: 1px solid var(--yt-spec-border-color);
  display: flex; flex-direction: column; flex-shrink: 0; transition: width 0.2s ease; user-select: none;
}
.yt-sidebar.collapsed { width: 72px; }
.yt-sidebar.collapsed .yt-channel-meta, .yt-sidebar.collapsed .yt-nav-label { display: none; }
.yt-sidebar.collapsed .yt-channel-avatar-lg { width: 32px; height: 32px; }
.yt-sidebar.collapsed .yt-channel-box { padding: 16px 0; }

.yt-channel-box { padding: 24px 16px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; flex-shrink: 0; }
.yt-channel-avatar-lg { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; cursor: pointer; border: 1px solid #e5e5e5; }
.yt-channel-meta { margin-top: 12px; width: 100%; }
.yt-your-channel-label { font-size: 12px; font-weight: 500; color: #0d0d0d; }
.yt-channel-title-side { font-size: 12px; color: #606060; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.yt-nav-scroll { flex: 1; overflow-y: auto; padding: 8px 0; }
.yt-nav-bottom { border-top: 1px solid var(--yt-spec-border-color); padding: 8px 0; flex-shrink: 0; }

.yt-nav-item {
  height: 48px; display: flex; align-items: center; gap: 24px; padding: 0 20px;
  color: #606060; font-size: 14px; font-weight: 500; cursor: pointer;
  border-left: 4px solid transparent; background: transparent; width: 100%; text-align: left;
  border-top: none; border-right: none; border-bottom: none; font-family: inherit;
}
.yt-nav-item:hover { background-color: #f9f9f9; color: #0d0d0d; }
.yt-nav-item.active { background-color: #f2f2f2; color: #cc0000; border-left-color: #cc0000; }
.yt-nav-item svg { width: 24px; height: 24px; flex-shrink: 0; fill: currentColor; }

.yt-main { flex: 1; overflow-y: auto; background: #ffffff; padding: 24px 32px 48px; }
.yt-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.yt-page-title { font-size: 25px; font-weight: 500; color: #0d0d0d; line-height: 32px; }

.yt-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 1200px) { .yt-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .yt-grid-3 { grid-template-columns: 1fr; } }

.yt-col-stack { display: flex; flex-direction: column; gap: 24px; }
.yt-card { background: #ffffff; border: 1px solid var(--yt-spec-border-color); border-radius: 12px; padding: 20px 24px; }
.yt-card-title { font-size: 18px; font-weight: 500; color: #0d0d0d; margin-bottom: 16px; }
.yt-card-subtitle { font-size: 12px; color: #606060; }

.yt-btn-pill {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px;
  border-radius: 18px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; font-family: inherit;
}
.yt-btn-secondary { background: rgba(0, 0, 0, 0.05); color: #0d0d0d; }
.yt-btn-secondary:hover { background: rgba(0, 0, 0, 0.1); }
.yt-btn-primary { background: #0d0d0d; color: #ffffff; }
.yt-btn-blue { background: #065fd4; color: #ffffff; }

.yt-metric-big { font-size: 34px; font-weight: 500; line-height: 40px; color: #0d0d0d; margin: 4px 0 12px; }
.yt-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; }
.yt-divider { height: 1px; background: var(--yt-spec-border-color); margin: 16px 0; }

.yt-tabs-bar { display: flex; gap: 32px; border-bottom: 1px solid var(--yt-spec-border-color); margin-bottom: 24px; }
.yt-tab-btn {
  padding: 12px 0; font-size: 14px; font-weight: 500; color: #606060;
  background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; font-family: inherit;
}
.yt-tab-btn.active { color: #0d0d0d; border-bottom-color: #0d0d0d; }

.yt-table-wrap { border: 1px solid var(--yt-spec-border-color); border-radius: 8px; overflow-x: auto; }
.yt-table { width: 100%; border-collapse: collapse; text-align: left; }
.yt-table th { font-size: 12px; font-weight: 500; color: #606060; padding: 12px 16px; border-bottom: 1px solid var(--yt-spec-border-color); cursor: pointer; white-space: nowrap; }
.yt-table td { padding: 12px 16px; border-bottom: 1px solid var(--yt-spec-border-color); vertical-align: middle; font-size: 13px; }
.yt-table tr:hover td { background-color: #f9f9f9; }
.yt-thumb-cell { display: flex; align-items: center; gap: 16px; min-width: 280px; }
.yt-thumb-img { width: 120px; height: 68px; border-radius: 4px; object-fit: cover; background: #e5e5e5; flex-shrink: 0; }

.yt-account-menu {
  position: fixed; top: 58px; right: 16px; width: 340px; max-height: calc(100vh - 76px);
  background: #ffffff; border: 1px solid #e5e5e5; border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.14); z-index: 100; display: flex; flex-direction: column; overflow: hidden;
}
.yt-account-header { padding: 16px; border-bottom: 1px solid #e5e5e5; display: flex; align-items: center; gap: 12px; }
.yt-channel-list { overflow-y: auto; max-height: 400px; padding: 8px 0; }
.yt-channel-option {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border: none; background: transparent; text-align: left; cursor: pointer; font-family: inherit;
}
.yt-channel-option:hover, .yt-channel-option.selected { background-color: #f2f2f2; }

.yt-status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.yt-status-unavailable { background: #fce8e6; color: #c5221f; }
.yt-status-active { background: #e6f4ea; color: #137333; }

.yt-modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px; }
.yt-modal { background: #ffffff; border-radius: 12px; max-width: 560px; width: 100%; padding: 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22); }
.hidden { display: none !important; }
