    /* ----------------------------------------------------
       Design System & CSS Variables
       ---------------------------------------------------- */
    :root {
      --bg-primary: #0f0f0f;
      --bg-secondary: #181818;
      --bg-tertiary: #272727;
      --bg-hover: #3f3f3f;
      --text-main: #f1f1f1;
      --text-muted: #aaaaaa;
      --accent: #3ea6ff;
      --border-color: #383838;
      --radius-sm: 6px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }

    /* Reset & Base Styles */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background-color: var(--bg-primary);
      color: var(--text-main);
      font-family: var(--font-family);
      line-height: 1.5;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* ----------------------------------------------------
       Header & Navigation Bar
       ---------------------------------------------------- */
    header {
      background-color: var(--bg-primary);
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 100;
      padding: 0 1.5rem;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 700;
      font-size: 1.2rem;
      color: var(--text-main);
      text-decoration: none;
      cursor: pointer;
    }

    .brand-icon {
      width: 28px;
      height: 20px;
      background: #ff0000;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .brand-icon::after {
      content: '';
      width: 0;
      height: 0;
      border-top: 5px solid transparent;
      border-bottom: 5px solid transparent;
      border-left: 9px solid white;
      margin-left: 2px;
    }

    /* Nav Tabs */
    .nav-tabs {
      display: flex;
      gap: 0.5rem;
      height: 100%;
      align-items: center;
    }

    .tab-btn {
      text-decoration: none;
      background: transparent;
      border: none;
      color: var(--text-muted);
      padding: 0.5rem 1.25rem;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      border-radius: var(--radius-sm);
      transition: all 0.2s ease;
      position: relative;
    }

    .tab-btn:hover {
      background-color: var(--bg-secondary);
      color: var(--text-main);
    }

    .tab-btn.active {
      color: var(--text-main);
      background-color: var(--bg-tertiary);
    }

    .tab-btn.active::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 0;
      right: 0;
      height: 3px;
      background-color: var(--text-main);
      border-radius: 3px 3px 0 0;
    }

    /* ----------------------------------------------------
       Main Layout Container
       ---------------------------------------------------- */
    main {
      max-width: 1280px;
      width: 100%;
      margin: 0 auto;
      padding: 1.5rem;
      flex: 1;
    }

    /* View Container Toggling */
    .view-container {
      display: none;
    }

    .view-container.active {
      display: block;
    }

    /* ----------------------------------------------------
       1. MAIN CONTENT VIEW (Video & Comments)
       ---------------------------------------------------- */
    .video-section {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    /* Responsive Aspect Ratio Wrapper for Video/iFrame */
    .player-wrapper {
      position: relative;
      width: 100%;
      padding-top: 56.25%; /* 16:9 Aspect Ratio */
      background-color: #000;
      border-radius: var(--radius-md);
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    .player-wrapper iframe,
    .player-wrapper video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
    }

    /* Video Info Section */
    .video-details {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .video-title {
      font-size: 1.35rem;
      font-weight: 700;
      line-height: 1.3;
    }

    .channel-and-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--border-color);
    }

    .channel-info {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: #555;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      color: white;
      object-fit: cover;
    }

    .channel-meta h4 {
      font-size: 1rem;
      font-weight: 600;
    }

    .channel-meta span {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .action-buttons {
      display: flex;
      gap: 0.5rem;
    }

    .btn {
      text-decoration: none;
      background-color: var(--bg-tertiary);
      color: var(--text-main);
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 18px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: background 0.2s;
    }

    .btn:hover {
      background-color: var(--bg-hover);
    }

    .video-description {
      background-color: var(--bg-secondary);
      padding: 1rem;
      border-radius: var(--radius-md);
      font-size: 0.92rem;
      color: var(--text-main);
      white-space: pre-line;
    }

    /* Comments Section */
    .comments-section {
      margin-top: 2rem;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .comments-header {
      font-size: 1.1rem;
      font-weight: 700;
    }

    .comment-input-box {
      display: flex;
      gap: 1rem;
      align-items: flex-start;
    }

    .comment-field-wrapper {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.5rem;
    }

    .comment-input {
      width: 100%;
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--border-color);
      color: var(--text-main);
      padding: 0.5rem 0;
      font-size: 0.95rem;
      outline: none;
      font-family: inherit;
      transition: border-color 0.2s;
    }

    .comment-input:focus {
      border-bottom-color: var(--text-main);
    }

    .comments-list {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .comment-item {
      display: flex;
      gap: 1rem;
    }

    .comment-body {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      font-size: 0.9rem;
    }

    .comment-meta {
      display: flex;
      gap: 0.5rem;
      align-items: center;
    }

    .comment-author {
      font-weight: 600;
      color: var(--text-main);
    }

    .comment-time {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .comment-text {
      color: var(--text-main);
    }

    /* ----------------------------------------------------
       2. BLOG VIEW
       ---------------------------------------------------- */
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1.5rem;
      margin-top: 1rem;
    }

    .card {
      background-color: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      transition: transform 0.2s;
    }

    .card:hover {
      transform: translateY(-2px);
    }

    .card-title {
      font-size: 1.15rem;
      font-weight: 700;
    }

    .card-meta {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .card-excerpt {
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.4;
      flex: 1;
    }

    /* ----------------------------------------------------
       3. TUTORIALS VIEW
       ---------------------------------------------------- */
    .tutorials-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-top: 1rem;
    }

    .tutorial-card {
      background-color: var(--bg-secondary);
      border-left: 4px solid var(--accent);
      border-radius: var(--radius-sm);
      padding: 1.25rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
    }

    .tutorial-info h3 {
      font-size: 1.1rem;
      margin-bottom: 0.25rem;
    }

    .tutorial-info p {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .badge {
      background-color: var(--bg-tertiary);
      color: var(--accent);
      padding: 0.25rem 0.6rem;
      border-radius: 12px;
      font-size: 0.75rem;
      font-weight: 600;
    }

    /* Responsive Tweaks */
    @media (max-width: 600px) {
      header {
        padding: 0 0.75rem;
      }
      .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
      }
      main {
        padding: 1rem;
      }
      .tutorial-card {
        flex-direction: column;
        align-items: flex-start;
      }
    }
  /* Blog Fragment Styles matching the dark YouTube-inspired theme */
  .blog-post-card {
    background-color: var(--bg-card, #1f1f1f);
    border: 1px solid var(--border-color, #272727);
    border-radius: 12px;
    padding: 2rem;
    max-width: 850px;
    margin: 0 auto;
    color: var(--text-main, #f1f1f1);
  }

  .blog-meta-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
  }

  .blog-category {
    background-color: rgba(62, 166, 255, 0.15);
    color: #3ea6ff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
  }

  .blog-date {
    color: var(--text-muted, #aaa);
  }

  .blog-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0 0 1.25rem 0;
    line-height: 1.3;
  }

  .blog-author-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, #272727);
    margin-bottom: 1.5rem;
  }

  .blog-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #383838;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
  }

  .blog-author-info {
    display: flex;
    flex-direction: column;
  }

  .blog-author-name {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .blog-read-time {
    font-size: 0.8rem;
    color: var(--text-muted, #aaa);
  }

  .blog-cover-container {
    width: 100%;
    max-height: 380px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
  }

  .blog-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .blog-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #d9d9d9;
  }

  .blog-body p {
    margin-bottom: 1.25rem;
  }

  .blog-body h2, .blog-body h3 {
    color: var(--text-main, #f1f1f1);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .blog-body code {
    background-color: #272727;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
  }

  .blog-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #272727);
  }

  .blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .blog-tag {
    background-color: #272727;
    color: var(--text-muted, #aaa);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
  }

