/* Marius Constantin Theme v1.2 */

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

  :root {
    --ink: #0d0b08;
    --parchment: #e8e0d0;
    --bone: #c9bfa8;
    --gold: #b8922a;
  }

  html, body {
    height: 100%;
    font-family: 'Cormorant Garamond', serif;
    color: var(--parchment);
    overflow: hidden;
  }
  body { background: var(--ink); }

  /* ── FIXED BACKGROUND ── */
  .bg-fixed { position: fixed; inset: 0; z-index: 0; }
  .bg-fixed img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center bottom;
    filter: grayscale(40%) contrast(1.1) brightness(0.45);
  }
  .bg-fixed::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(13,11,8,0.1);
  }

  /* ── LAYOUT ── */
  .layout { position: fixed; inset: 0; z-index: 1; display: flex; }

  /* ── LEFT: fixed hero ── */
  .left {
    user-select: none; -webkit-user-select: none;
    width: 45%; flex-shrink: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 8vh 5vw 8vh 6vw;
  }
  .left-top {
    display: flex; flex-direction: row; align-items: flex-start;
    margin-bottom: 25px;
  }
  /* Wrap avatar and role words together so role words position relative to avatar */
  .hero-avatar-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    opacity: 0; animation: fadeUp 1s 0.3s forwards;
  }
  .hero-role-stack {
    opacity: 0; animation: fadeUp 1s 0.4s forwards;
    position: absolute;
    top: 0; left: 0;
    width: 320px; /* extends beyond avatar to the right */
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding-top: 6px;
    padding-bottom: 6px;
    pointer-events: none;
  }
  .hero-role-stack span {
    font-size: clamp(0.78rem, 0.95vw, 0.92rem);
    font-style: italic; font-weight: 300;
    color: var(--gold); letter-spacing: 0.12em;
    text-transform: uppercase; line-height: 1;
    display: block;
    white-space: nowrap;
  }
  .left-bottom {
    display: flex; flex-direction: column; justify-content: flex-end;
    width: fit-content;
  }

  /* Avatar */
  .hero-avatar {
    width: 110px; height: 110px; border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(184,146,42,0.35);
    margin-bottom: 1.1rem;
    flex-shrink: 0;
    opacity: 0; animation: fadeUp 1s 0.2s forwards;
  }
  .hero-avatar img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
  }

  /* Brief bio */
  .hero-bio {
    font-size: clamp(0.72rem, 0.9vw, 0.85rem);
    font-style: italic; font-weight: 300;
    color: var(--gold); letter-spacing: 0.12em;
    text-transform: uppercase; opacity: 0;
    animation: fadeUp 1s 0.4s forwards;
    margin-bottom: 0.9rem;
  }

  /* About bio */
  .hero-about {
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    font-style: italic; font-weight: 300;
    color: var(--parchment); line-height: 1.7; opacity: 0.85;
    max-width: 100%;
    width: 100%;
    opacity: 0; animation: fadeUp 1s 0.5s forwards;
    margin-top: 1rem;
    margin-bottom: 0;
  }
  .hero-about p + p { margin-top: 0.8rem; }

  /* Name */
  .hero-name {
    font-family: 'Playfair Display', serif; font-weight: 900;
    font-size: clamp(3.4rem, 6.5vw, 7.8rem); line-height: 0.9;
    letter-spacing: -0.02em; color: var(--parchment);
    opacity: 0; animation: fadeUp 1s 0.6s forwards;
  }
  .hero-name em { font-style: italic; color: var(--bone); display: block; }

  /* Tagline */
  .hero-tagline {
    margin-top: 1.2rem;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-style: italic; font-weight: 300; color: var(--bone);
    line-height: 1.7; max-width: 320px;
    opacity: 0; animation: fadeUp 1s 0.8s forwards;
  }

  /* ── RIGHT: video player visible immediately ── */
  .right {
    flex: 1; overflow-y: scroll; overflow-x: hidden;
    display: flex; flex-direction: column;
    scrollbar-width: thin; scrollbar-color: rgba(184,146,42,0.25) transparent;
  }
  .right::-webkit-scrollbar { width: 4px; }
  .right::-webkit-scrollbar-track { background: transparent; }
  .right::-webkit-scrollbar-thumb { background: rgba(184,146,42,0.2); border-radius: 2px; }

  /* ── VIDEO SECTION ── */
  .video-section {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
    padding: 3rem 4vw 2rem; flex-shrink: 0;
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
  }

  .now-playing {
    display: none; align-items: flex-start; gap: 10px;
    margin-bottom: 0.6rem; padding: 8px 12px;
    border-left: 3px solid var(--gold); background: rgba(184,146,42,0.05);
    flex-shrink: 0;
  }
  .now-playing.visible { display: flex; }
  .now-playing-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
    animation: pulse-dot 1.5s infinite; flex-shrink: 0;
    margin-top: 0.4rem;
  }
  .now-playing-text {
    display: flex; flex-direction: column; gap: 0.25rem;
    min-width: 0; flex: 1;
  }
  .now-playing-title {
    font-style: normal; font-size: 1.15rem; color: var(--parchment); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .now-playing-desc {
    font-size: 0.9rem; font-style: italic; color: var(--parchment);
    opacity: 0.75; line-height: 1.5;
    overflow: visible;
  }
  .now-playing-desc:empty { display: none; }

  .video-player-wrap {
    position: relative; width: 100%; aspect-ratio: 16/9;
    border: 1px solid rgba(184,146,42,0.2); overflow: hidden;
    flex-shrink: 0; margin-bottom: 1rem;
    border-radius: 10px;
  }
  .video-player-wrap iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: none;
  }
  #playerPlaceholder {
    position: absolute; inset: 0; background: #111 center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    color: var(--bone); font-style: italic; font-size: 0.9rem; opacity: 0.5;
  }

  /* ── VIDEO LIST ── */
  .video-list-wrap {
    flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0;
    scrollbar-width: thin; scrollbar-color: rgba(184,146,42,0.2) transparent;
  }
  .video-list-wrap::-webkit-scrollbar { width: 3px; }
  .video-list-wrap::-webkit-scrollbar-track { background: transparent; }
  .video-list-wrap::-webkit-scrollbar-thumb { background: rgba(184,146,42,0.2); }

  .video-list { display: flex; flex-direction: column; }

  .video-list-item {
    display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0;
    border-bottom: 1px solid rgba(200,185,160,0.12);
    cursor: pointer; transition: background 0.2s;
  }
  .video-list-item:first-child { border-top: 1px solid rgba(200,185,160,0.12); }
  .video-list-item:hover  { background: rgba(184,146,42,0.04); }
  .video-list-item.active { background: rgba(184,146,42,0.07); }

  .video-list-num {
    font-size: 0.78rem; color: var(--gold); opacity: 0.35;
    min-width: 22px; text-align: right; font-style: italic;
    flex-shrink: 0; transition: opacity 0.2s;
  }
  .video-list-item:hover .video-list-num,
  .video-list-item.active .video-list-num { opacity: 1; }

  .thumb-wrap { position: relative; flex-shrink: 0; }
  .video-list-thumb {
    width: 96px; aspect-ratio: 16/9; object-fit: cover; display: block;
    filter: grayscale(20%) brightness(0.8); transition: filter 0.2s;
  }
  .video-list-item:hover .video-list-thumb,
  .video-list-item.active .video-list-thumb { filter: none; }
  .thumb-duration {
    position: absolute; bottom: 3px; right: 3px;
    background: rgba(0,0,0,0.8); color: #fff;
    font-size: 0.6rem; font-style: italic; padding: 1px 4px;
  }

  .video-list-info { flex: 1; min-width: 0; }
  .video-list-title {
    font-family: 'Playfair Display', serif; font-size: 1.02rem;
    color: var(--parchment); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;
  }
  .video-list-item.active .video-list-title { color: var(--gold); }
  .video-list-meta {
    display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  }
  .video-list-date {
    font-size: 0.88rem; color: var(--bone); opacity: 0.45; font-style: italic;
  }
  .video-list-stats { display: flex; gap: 0.7rem; align-items: center; }
  .stat-item {
    font-size: 0.94rem; color: var(--parchment); opacity: 0.55;
    font-style: italic; letter-spacing: 0.02em; white-space: nowrap;
    transition: opacity 0.2s;
  }
  .video-list-item:hover .stat-item,
  .video-list-item.active .stat-item { opacity: 0.65; }
  .stat-like {
    text-decoration: none;
    cursor: pointer;
  }
  .stat-like:hover {
    color: #e05555;
    opacity: 1 !important;
  }
  .video-list-play {
    font-size: 0.7rem; color: var(--gold); opacity: 0;
    flex-shrink: 0; padding-right: 0.4rem; transition: opacity 0.2s;
  }
  .video-list-item:hover .video-list-play { opacity: 1; }
  .video-list-item.active .video-list-play { opacity: 0.4; }

  .vid-channel-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 1rem 0 0.5rem; font-size: 0.8rem; font-style: italic;
    color: var(--gold); text-decoration: none; opacity: 0.5; transition: opacity 0.2s;
  }
  .vid-channel-link:hover { opacity: 1; }

  /* ── SCROLL HINT ── */
  .scroll-hint {
    position: fixed; bottom: 3rem; right: 1.8rem; z-index: 20;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: 0; animation: fadeIn 1s 1.8s forwards; pointer-events: none;
  }
  .scroll-hint span {
    font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--bone); writing-mode: vertical-rl; opacity: 0.6;
  }
  .scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: pulse-line 2s 2s infinite;
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pulse-line { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
  @keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.3); }
  }

  /* ── MOBILE ── */
  @media (max-width: 700px) {
    html, body { overflow: hidden auto; }
    .layout { position: relative; flex-direction: column; overflow: visible; }
    .left { width: 100%; min-height: 60vh; padding: 3vh 6vw 4vh; justify-content: flex-start; }
    .right { overflow: visible; flex: none; }
    .video-section { position: relative; height: auto; min-height: auto; }
    .video-list-wrap { overflow: visible; max-height: none; }
    .video-list-num { display: none; }
    .video-list-thumb { width: 76px; }
  }