:root {
    --sidebar-bg: #f5f6fa;
    --content-bg: #ffffff;
    --highlight: #1e90ff;
    --header-bg: #2d3436;
    --text-color: #2f3542;
    --border: #dcdde1;
  }

  * {
    box-sizing: border-box;
  }

  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #ecf0f1;
    color: var(--text-color);
  }


    .sidebar {
    width: 280px;
    overflow-y: auto;
    height: 100%;
  }

  .content {
    flex: 1;
    overflow-y: auto;
    height: 100%;
  }

  .category-item {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .category-item:hover {
    background-color: var(--highlight);
    color: white;
    border-color: var(--highlight);
  }

  .channel-box:last-child {
    border-bottom: none;
  }

  .channel-box img {
    height: 50px;
    width: 88px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 16px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
  }

  .channel-details {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  }

  .channel-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
  }

  .channel-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
  }

  h4 {
    font-size: 16px;
    margin: 0 0 16px;
    font-weight: 600;
    color: #2c3e50;
  }

  h5 {
    font-size: 15px;
    margin-bottom: 14px;
    font-weight: 600;
    color: #34495e;
  }

  /* Scrollbars: subtle */
  .sidebar::-webkit-scrollbar,
  .content::-webkit-scrollbar {
    width: 6px;
  }

  .sidebar::-webkit-scrollbar-thumb,
  .content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }

  .sidebar::-webkit-scrollbar-track,
  .content::-webkit-scrollbar-track {
    background: transparent;
  }
  .tab-button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    border-bottom: 2px solid transparent;
  }
  .tab-button.active {
    color: #1e90ff;
    border-color: #1e90ff;
  }
  .search-input {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
  }
  .vod-grid, .series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  .vod-item, .series-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    padding: 10px;
  }
  .vod-item img, .series-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
  }
  .vod-title, .series-title {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  :root {
    --bg-color: #f5f6fa;
    --text-color: #2f3542;
    --card-bg: #fff;
    --highlight: #1e90ff;
    --border: #dcdde1;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg-color: #1e1e2f;
      --text-color: #dcdde1;
      --card-bg: #2c2c3e;
      --highlight: #1e90ff;
      --border: #444;
    }
  }

  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
  }
  .header-bar {
    height: 56px;
    background-color: var(--highlight);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-size: 18px;
    font-weight: 600;
  }
  .tab-button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    border-bottom: 2px solid transparent;
  }
  .tab-button.active {
    color: var(--highlight);
    border-color: var(--highlight);
  }
  .search-input {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
  }
  .vod-grid, .series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  .vod-item, .series-item {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    padding: 10px;
  }
  .vod-item img, .series-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
  }
  .vod-title, .series-title {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  :root {
    --bg-color: #f5f6fa;
    --text-color: #2f3542;
    --card-bg: #fff;
    --highlight: #1e90ff;
    --border: #dcdde1;
  }
  body.dark {
    --bg-color: #1e1e2f;
    --text-color: #dcdde1;
    --card-bg: #2c2c3e;
    --highlight: #1e90ff;
    --border: #444;
  }

  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
  }
  .header-bar {
    height: 56px;
    background-color: var(--highlight);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    font-size: 18px;
    font-weight: 600;
  }
  .tab-button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    border-bottom: 2px solid transparent;
  }
  .tab-button.active {
    color: var(--highlight);
    border-color: var(--highlight);
  }
  .search-input {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
  }
  .vod-grid, .series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  .vod-item, .series-item {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    padding: 10px;
  }
  .vod-item img, .series-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
  }
  .vod-title, .series-title {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mode-toggle {
    background: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
  }
  #categoryList {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  