/* VidDrop /author page CSS — extracted from templates/author.html
 * Cache 7 ngày immutable. Apply qua <link> trong template.
 */

  .author-hero {
    background:
      radial-gradient(circle at 20% 20%, rgba(99,102,241,.15), transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(236,72,153,.1), transparent 50%);
    border-radius: 24px;
    padding: 48px 32px;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .author-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 800;
    color: white;
    box-shadow:
      0 12px 40px rgba(99,102,241,.4),
      inset 0 0 0 4px rgba(255,255,255,.15);
    position: relative;
    overflow: hidden;
  }
  .author-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
  }
  .author-avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.05em;
    z-index: 1;
  }
  .avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(99,102,241,.15);
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(99,102,241,.3);
    cursor: pointer;
    transition: all .2s;
  }
  .avatar-upload-btn:hover {
    background: rgba(99,102,241,.25);
    border-color: rgba(99,102,241,.5);
    transform: translateY(-1px);
  }
  .author-avatar::after {
    content: '✓';
    position: absolute;
    bottom: 0; right: 8px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(59,130,246,.5);
    border: 3px solid #060912;
  }
  .author-name {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
  }
  .author-handle {
    background: linear-gradient(135deg, #818cf8, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
  }
  .author-tagline {
    color: #94a3b8;
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
  }
  .author-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 720px;
    margin: 32px auto 0;
  }
  .author-stat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
  }
  .author-stat .num {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #818cf8, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
  }
  .author-stat .lbl {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .author-section {
    background: rgba(14,20,34,.6);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px;
    padding: 28px 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
  }
  .author-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.015em;
  }
  .author-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #6366f1, #ec4899);
    border-radius: 2px;
  }
  .author-section p {
    color: #cbd5e1;
    line-height: 1.75;
    margin: .8em 0;
    font-size: 16px;
  }
  .author-section strong { color: #f8fafc; }

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
  }
  .skill-card {
    background: linear-gradient(180deg, rgba(99,102,241,.05), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 16px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    display: flex; align-items: flex-start; gap: 12px;
  }
  .skill-card:hover {
    border-color: rgba(99,102,241,.35);
    background: linear-gradient(180deg, rgba(99,102,241,.08), rgba(255,255,255,.02));
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(99,102,241,.3);
  }
  .skill-card .ic {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  }
  .skill-card .ic svg { width: 18px; height: 18px; color: #fff; }
  .skill-card .ic.indigo  { background: linear-gradient(135deg, #6366f1, #4f46e5); }
  .skill-card .ic.violet  { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
  .skill-card .ic.pink    { background: linear-gradient(135deg, #ec4899, #db2777); }
  .skill-card .ic.red     { background: linear-gradient(135deg, #ef4444, #dc2626); }
  .skill-card .ic.cyan    { background: linear-gradient(135deg, #06b6d4, #0891b2); }
  .skill-card .ic.amber   { background: linear-gradient(135deg, #f59e0b, #d97706); }
  .skill-card .ic.emerald { background: linear-gradient(135deg, #10b981, #059669); }
  .skill-card .ic.sky     { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
  .skill-card .ic.rose    { background: linear-gradient(135deg, #f43f5e, #e11d48); }
  .skill-card .ic.teal    { background: linear-gradient(135deg, #14b8a6, #0d9488); }
  .skill-card .body { flex: 1; min-width: 0; }
  .skill-card .ttl { color: #fff; font-weight: 600; font-size: 14px; line-height: 1.3; }
  .skill-card .sub { color: #94a3b8; font-size: 12px; margin-top: 4px; line-height: 1.45; }

  .service-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 18px;
  }
  .service-cat {
    display: flex; align-items: center; gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(99,102,241,.05), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
    color: inherit;
    transition: all .25s cubic-bezier(.4,0,.2,1);
  }
  .service-cat:hover {
    border-color: rgba(99,102,241,.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(99,102,241,.3);
    background: linear-gradient(180deg, rgba(99,102,241,.08), rgba(255,255,255,.02));
  }
  .service-cat .ic {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
    color: #fff;
  }
  .service-cat .ic svg { width: 20px; height: 20px; }
  .service-cat .ic.indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
  .service-cat .ic.rose   { background: linear-gradient(135deg, #f43f5e, #e11d48); }
  .service-cat .ic.amber  { background: linear-gradient(135deg, #f59e0b, #d97706); }
  .service-cat .ic.teal   { background: linear-gradient(135deg, #14b8a6, #0d9488); }
  .service-cat .body { flex: 1; min-width: 0; }
  .service-cat .t { color: #fff; font-weight: 600; font-size: 15px; line-height: 1.3; margin-bottom: 3px; }
  .service-cat .s { color: #94a3b8; font-size: 12.5px; line-height: 1.5; }
  .service-cat .arr { color: #818cf8; font-size: 18px; transition: transform .2s; flex-shrink: 0; }
  .service-cat:hover .arr { transform: translateX(3px); }

  [data-theme="light"] .service-cat { background: #fff; border-color: #e5e7eb; }
  [data-theme="light"] .service-cat:hover { background: #fafbff; }
  [data-theme="light"] .service-cat .t { color: #0f172a; }
  [data-theme="light"] .service-cat .s { color: #64748b; }

  .social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
  }
  .social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    color: #e5e7eb;
    text-decoration: none;
    transition: all .25s;
  }
  .social-link:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.06);
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
  }
  .social-link.fb:hover { border-color: #1877f2; box-shadow: 0 8px 20px rgba(24,119,242,.3); }
  .social-link.tt:hover { border-color: #ff0050; box-shadow: 0 8px 20px rgba(255,0,80,.3); }
  .social-link.yt:hover { border-color: #ff0000; box-shadow: 0 8px 20px rgba(255,0,0,.3); }
  .social-link.zl:hover { border-color: #0068ff; box-shadow: 0 8px 20px rgba(0,104,255,.3); }
  .social-link.tg:hover { border-color: #0088cc; box-shadow: 0 8px 20px rgba(0,136,204,.3); }
  .social-link .ic {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform .25s;
  }
  .social-link .ic svg { width: 22px; height: 22px; }
  .social-link:hover .ic { transform: scale(1.05); }
  .social-link.fb .ic { background: linear-gradient(135deg, #1877f2, #0c5ecf); color: #fff; box-shadow: 0 4px 10px rgba(24,119,242,.3); }
  .social-link.tt .ic { background: linear-gradient(135deg, #25f4ee, #fe2c55); color: #fff; box-shadow: 0 4px 10px rgba(254,44,85,.3); }
  .social-link.yt .ic { background: linear-gradient(135deg, #ff0000, #cc0000); color: #fff; box-shadow: 0 4px 10px rgba(255,0,0,.3); }
  .social-link.zl .ic { background: linear-gradient(135deg, #0068ff, #0052cc); color: #fff; box-shadow: 0 4px 10px rgba(0,104,255,.3); }
  .social-link.tg .ic { background: linear-gradient(135deg, #2aabee, #0088cc); color: #fff; box-shadow: 0 4px 10px rgba(0,136,204,.3); }
  .social-link .nm { font-weight: 600; color: #fff; font-size: 14px; }
  .social-link .hd { font-size: 12px; color: #94a3b8; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

  .timeline { padding-left: 24px; border-left: 2px solid rgba(99,102,241,.3); }
  .timeline-item { position: relative; padding-bottom: 20px; }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -32px; top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 0 0 4px #060912, 0 0 12px rgba(99,102,241,.5);
  }
  .timeline-item .yr {
    color: #818cf8;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .timeline-item .ttl { color: #fff; font-weight: 600; margin: 4px 0 6px; }
  .timeline-item .desc { color: #94a3b8; font-size: 14px; line-height: 1.6; }

  /* ═══ Article rows V2 — card grid với cover thumbnail ═══ */
  .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 16px;
  }
  .article-row {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
    border: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.4,0,.2,1), border-color .2s, box-shadow .2s;
  }
  .article-row:hover {
    transform: translateY(-3px);
    border-color: rgba(99,102,241,.35);
    box-shadow: 0 16px 36px -16px rgba(99,102,241,.35);
  }
  .article-row .cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 50%, #be185d 100%);
  }
  .article-row .cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
  }
  .article-row:hover .cover img { transform: scale(1.04); }
  .article-row .cover-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.55);
    font-weight: 800; font-size: 30px;
    letter-spacing: -0.04em;
  }
  .article-row .num {
    position: absolute;
    top: 10px; left: 10px;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,.1);
  }
  .article-row .info {
    padding: 14px 16px 16px;
    display: flex; flex-direction: column;
    gap: 6px;
    flex: 1;
  }
  .article-row .ttl {
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.35;
    letter-spacing: -0.005em;
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .article-row .meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.05);
  }
  .article-row .meta span { display: inline-flex; align-items: center; gap: 4px; }
  .article-row .meta svg { width: 12px; height: 12px; opacity: .65; flex-shrink: 0; }

  /* Light theme overrides */
  [data-theme="light"] .author-hero {
    background:
      radial-gradient(circle at 20% 20%, rgba(99,102,241,.08), transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(236,72,153,.06), transparent 50%);
  }
  [data-theme="light"] .author-section {
    background: #ffffff;
    border-color: #ebedf0;
    box-shadow: 0 1px 3px rgba(16,24,40,.04);
  }
  [data-theme="light"] .author-stat,
  [data-theme="light"] .social-link,
  [data-theme="light"] .article-row {
    background: #ffffff;
    border-color: #ebedf0;
  }
  [data-theme="light"] .author-name,
  [data-theme="light"] .author-section h2,
  [data-theme="light"] .skill-card .ttl,
  [data-theme="light"] .social-link .nm,
  [data-theme="light"] .article-row .ttl,
  [data-theme="light"] .timeline-item .ttl { color: #0f172a; }
  [data-theme="light"] .article-row .meta { border-top-color: #f1f5f9; }
  [data-theme="light"] .author-section p { color: #1f2937; }
  [data-theme="light"] .author-tagline,
  [data-theme="light"] .author-stat .lbl,
  [data-theme="light"] .skill-card .sub,
  [data-theme="light"] .social-link .hd,
  [data-theme="light"] .article-row .meta,
  [data-theme="light"] .timeline-item .desc { color: #6b7280; }
  [data-theme="light"] .timeline-item::before { box-shadow: 0 0 0 4px #f7f8fa, 0 0 12px rgba(99,102,241,.3); }

  @media (max-width: 640px) {
    .author-hero { padding: 32px 20px; }
    .author-avatar { width: 120px; height: 120px; font-size: 48px; }
    .author-section { padding: 22px 20px; }
  }
