/* NoirTube Founding Experience v0.3
 * Theme-specific presentation layer. No media, Agora, upload, or account logic.
 * The PlayTube base styles remain available beneath this file.
 */
:root {
  --nt-ink: #101012;
  --nt-surface: #17181b;
  --nt-raised: #24252a;
  --nt-gold: #d6b96e;
  --nt-gold-strong: #f0d38a;
  --nt-white: #f7f6f2;
  --nt-muted: #bab9b7;
  --nt-outline: rgba(240, 211, 138, .24);
}

body.noirtube-experience { background-color: var(--nt-ink); color: var(--nt-white); }
body.noirtube-experience a:focus-visible,
body.noirtube-experience button:focus-visible { outline: 3px solid var(--nt-gold-strong); outline-offset: 3px; }

body.noirtube-experience nav.navbar-findcond {
  background: rgba(14, 14, 16, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .085);
  backdrop-filter: blur(18px);
}
body.noirtube-experience nav.navbar-findcond .search-header input {
  background-color: #25262a; color: var(--nt-white);
  border: 1px solid rgba(255,255,255,.1);
}
body.noirtube-experience nav.navbar-findcond .search-header input::placeholder { color: #b9b9bd; }
body.noirtube-experience nav.navbar-findcond .search-header svg,
body.noirtube-experience nav.navbar-findcond .yp_slide_menu span { color: var(--nt-white); }
body.noirtube-experience nav.navbar-findcond ul.navbar-nav a { color: var(--nt-white); }
body.noirtube-experience nav.navbar-findcond .nt-main-nav-link > a { font-weight: 650; letter-spacing: .015em; }
body.noirtube-experience nav.navbar-findcond .nt-main-nav-link > a:hover,
body.noirtube-experience nav.navbar-findcond .nt-main-nav-link > a:focus { color: var(--nt-gold-strong); }

/* Collapsed desktop sidebar: the launcher belongs above the left icon rail,
 * not inside the logo's horizontal space. Mobile keeps native placement. */
@media (min-width: 1300px) {
  body.noirtube-experience.side_open nav.navbar-findcond .yp_slide_menu {
    position: absolute !important;
    left: -80px !important;
    top: 0;
    width: 80px;
    height: 66px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #101012;
    z-index: 302;
  }
  body.noirtube-experience.side_open nav.navbar-findcond .yp_slide_menu span {
    margin: 0;
    padding: 8px;
  }
  body.noirtube-experience.side_open nav.navbar-findcond .navbar-header > .mobile .logo-img {
    margin: 13px 19px !important;
    max-width: 125px !important;
  }
}
body.noirtube-experience .btn-main { background: var(--nt-gold); color: var(--nt-ink) !important; }
body.noirtube-experience .btn-main:hover { background: var(--nt-gold-strong); }

/* Homepage: featured media stays the primary opening experience. */
body.noirtube-experience .pt_homepg_whote_bg { background: var(--nt-ink); }
/* The stock homepage uses -150px to overlap the featured slider.
 * Our editorial section sits between the slider and collections, so restore flow. */
body.noirtube-experience .pt_homepg_whote_bg.margin { margin-top: 0; }
body.noirtube-experience .pt_homepg_whote_bg .home-page-categories .title h4,
body.noirtube-experience .pt_homepg_whote_bg .home-page-categories .title h4 a { color: var(--nt-white); }
body.noirtube-experience .pt_homepg_whote_bg .home-page-categories .videos .video-list .video-list-title a,
body.noirtube-experience .pt_homepg_whote_bg .video-latest-list .video-title a { color: var(--nt-white); }
body.noirtube-experience .pt_homepg_whote_bg .home-page-categories .videos .video-list .video-list-by,
body.noirtube-experience .pt_homepg_whote_bg .home-page-categories .videos .video-list .video-list-by a { color: var(--nt-muted); }
body.noirtube-experience .pt_homepg_whote_bg .video-list-image img,
body.noirtube-experience .pt_homepg_whote_bg .video-thumb img { transition: transform .3s ease, filter .3s ease; }
body.noirtube-experience .pt_homepg_whote_bg .video-list-image:hover img,
body.noirtube-experience .pt_homepg_whote_bg .video-thumb:hover img { transform: scale(1.025); filter: brightness(1.08); }
body.noirtube-experience .pt_homepg_whote_bg .home-page-categories .title { border-bottom: 1px solid rgba(255,255,255,.11); padding-bottom: 13px; }

/* Featured story: preserve the existing carousel and video controls. */
body.noirtube-experience .pt_new_home_feat_vidd .feature_image_main::after {
  background: linear-gradient(90deg, rgba(10,10,13,.55), rgba(10,10,13,.08) 75%);
}
body.noirtube-experience .pt_new_home_feat_vidd.home_feat .feature_wrap {
  background: rgba(13,13,16,.76);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
}
body.noirtube-experience .pt_new_home_feat_vidd.home_feat .feature_wrap:hover { background: rgba(13,13,16,.84); }
body.noirtube-experience .pt_new_home_feat_vidd.home_feat .feature_wrap h4 { color: var(--nt-gold-strong); letter-spacing: .08em; }
body.noirtube-experience .pt_new_home_feat_vidd .feature_text_title { font-weight: 750; letter-spacing: -.025em; }

/* Creator discovery is deliberately an entry point to native channel listings. */
.nt-creators-rail {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 32px; margin: 28px 0 36px;
  background: linear-gradient(110deg, #202026, #171719);
  border: 1px solid var(--nt-outline); border-radius: 12px;
}
.nt-creators-rail h2 { color: var(--nt-white); font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.035em; margin: 0 0 8px; }
.nt-creators-rail p { color: var(--nt-muted); font-size: 14px; line-height: 1.5; max-width: 570px; margin: 0; }
.nt-creators-rail .nt-eyebrow { margin-bottom: 9px; }
.nt-creators-rail .nt-button { flex-shrink: 0; }

/* Creator-owned channel presence. Preserve native tabs, actions, and cover editor. */
body.noirtube-experience .nt-creator-channel { margin-top: 0; color: var(--nt-white); }
body.noirtube-experience .nt-creator-channel .pt_main_chnl_hdrr {
  background: var(--nt-ink);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: none;
}
body.noirtube-experience .nt-creator-channel .card-container { isolation: isolate; }
body.noirtube-experience .nt-creator-channel .cover-container { position: relative; }
body.noirtube-experience .nt-creator-channel .cover-container img {
  display: block;
  height: clamp(210px, 22vw, 340px);
  object-fit: cover;
}
body.noirtube-experience .nt-creator-channel .cover-container::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(9,9,11,.50));
  pointer-events: none;
}
body.noirtube-experience .nt-creator-channel .card-container .edit-cover-container,
body.noirtube-experience .nt-creator-channel .card-container .user-reposition-dragable-container { z-index: 3; }
body.noirtube-experience .nt-creator-channel .pt_chnl_info {
  background: linear-gradient(105deg, #191a1d, #111214);
  color: var(--nt-white);
  padding: 22px clamp(20px, 3vw, 45px);
  gap: 24px;
}
body.noirtube-experience .nt-creator-channel .pt_chnl_info .avatar-container {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border: 3px solid var(--nt-gold);
  border-radius: 50%;
  box-shadow: 0 5px 22px rgba(0,0,0,.3);
}
body.noirtube-experience .nt-creator-channel .pt_chnl_info .info-container h4 {
  font-size: clamp(24px, 2.35vw, 34px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.2;
  margin: 3px 0 7px;
}
body.noirtube-experience .nt-creator-channel .pt_chnl_info .info-container h4 a { color: var(--nt-white); }
body.noirtube-experience .nt-creator-channel .pt_chnl_info .info-container h4 a:hover { color: var(--nt-gold-strong); }
.nt-channel-eyebrow { display: block; color: var(--nt-gold); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.nt-channel-handle { display: inline-block; color: #d5d0c5; font-size: 13px; margin-right: 16px; }
.nt-channel-summary {
  color: var(--nt-muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 610px;
  margin: 12px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body.noirtube-experience .nt-creator-channel .pt_chnl_info .btn-subscribe,
body.noirtube-experience .nt-creator-channel .pt_chnl_info .btn-subscribed { background: var(--nt-gold); color: var(--nt-ink); font-weight: 750; }
body.noirtube-experience .nt-creator-channel .links-container {
  background: #141517;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding-top: 7px;
}
body.noirtube-experience .nt-creator-channel .links-container ul li a { color: #c5c3c2; font-size: 14px; font-weight: 650; }
body.noirtube-experience .nt-creator-channel .links-container ul li a.active,
body.noirtube-experience .nt-creator-channel .links-container ul li a:hover { color: var(--nt-gold-strong); }
body.noirtube-experience .nt-creator-channel .pt_main_chnl_content { box-shadow: none; padding-top: 10px; }
body.noirtube-experience .nt-creator-channel .pt_main_chnl_content_title { color: var(--nt-white); font-weight: 750; }

@media (max-width: 650px) {
  body.noirtube-experience .nt-creator-channel .cover-container img { height: 175px; }
  body.noirtube-experience .nt-creator-channel .pt_chnl_info { padding: 20px 16px; gap: 10px; }
  body.noirtube-experience .nt-creator-channel .pt_chnl_info .avatar-container { margin-bottom: 12px; width: 78px !important; height: 78px !important; }
  body.noirtube-experience .nt-creator-channel .pt_chnl_info .info-container h4 { font-size: 25px !important; margin: 4px 0 8px; }
  body.noirtube-experience .nt-creator-channel .profile_button_avatar { margin-top: 16px; }
  body.noirtube-experience .nt-creator-channel .links-container ul { display: flex; overflow-x: auto; gap: 23px; padding: 1px 16px 0; }
  body.noirtube-experience .nt-creator-channel .links-container ul li { margin: 0; flex-shrink: 0; }
  body.noirtube-experience .nt-creator-channel .links-container ul li a { white-space: nowrap; }
  .nt-channel-summary { margin: 10px auto 0; }
}

.nt-discover {
  max-width: 1400px; margin: 0 auto 24px; padding: 42px 36px 38px;
  color: var(--nt-white); display: grid; grid-template-columns: minmax(0, 1fr) 175px;
  gap: 42px; align-items: end; border-bottom: 1px solid var(--nt-outline);
}
.nt-discover-copy { max-width: 900px; }
.nt-eyebrow { color: var(--nt-gold); display: block; font-size: 11px; font-weight: 750; letter-spacing: .2em; line-height: 1.4; margin-bottom: 16px; }
.nt-discover h1 { color: var(--nt-white); font-family: 'Poppins', system-ui, sans-serif; font-size: clamp(36px, 5.1vw, 76px); font-weight: 800; letter-spacing: -.065em; line-height: 1.02; margin: 0 0 19px; }
.nt-discover h1 em, .nt-creator-cta h2 em { font-style: normal; color: var(--nt-gold); }
.nt-discover p { color: var(--nt-muted); max-width: 620px; line-height: 1.65; font-size: clamp(14px, 1.4vw, 17px); margin: 0; }
.nt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.nt-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; border-radius: 7px; padding: 13px 19px; font-size: 13px; font-weight: 750; text-decoration: none !important; transition: transform .2s ease, background .2s ease; }
.nt-button:hover { transform: translateY(-2px); }
.nt-button-primary, .nt-button-primary:visited { background: var(--nt-gold); color: var(--nt-ink) !important; }
.nt-button-primary:hover { background: var(--nt-gold-strong); }
.nt-button-outline, .nt-button-outline:visited { color: var(--nt-white) !important; background: transparent; border: 1px solid var(--nt-outline); }
.nt-button-outline:hover { border-color: var(--nt-gold); background: rgba(214,185,110,.09); }
.nt-discover-side { border-left: 1px solid var(--nt-outline); padding-left: 24px; color: #828288; display: grid; gap: 13px; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.nt-creator-cta { background: linear-gradient(120deg, #202020 0%, #131416 100%); border: 1px solid var(--nt-outline); border-radius: 15px; padding: clamp(24px, 4vw, 48px); display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 42px 0 70px; }
.nt-creator-cta h2 { color: var(--nt-white); font-size: clamp(25px, 3.1vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.045em; margin: 0 0 16px; }
.nt-creator-cta p { color: var(--nt-muted); max-width: 640px; font-size: 15px; line-height: 1.65; margin: 0; }
.nt-creator-cta .nt-button { flex-shrink: 0; }

@media (max-width: 780px) {
  .nt-creators-rail { display: block; margin: 22px 0 30px; padding: 22px; }
  .nt-creators-rail .nt-button { margin-top: 18px; }
  .nt-discover { grid-template-columns: 1fr; padding: 29px 20px 30px; gap: 15px; }
  .nt-discover-side { border-left: 0; border-top: 1px solid var(--nt-outline); padding: 12px 0 0; grid-template-columns: repeat(3, 1fr); font-size: 9px; }
  .nt-creator-cta { display: block; margin: 30px 0 45px; padding: 24px; }
  .nt-creator-cta .nt-button { margin-top: 23px; }
  body.noirtube-experience nav.navbar-findcond { padding-left: 10px; padding-right: 10px; }
}

/* Mobile featured story: the artwork has room to breathe above a compact card.
 * Different thumbnail crops are tolerated without per-video editorial metadata. */
@media (max-width: 576px) {
  body.noirtube-experience .pt_new_home_feat_vidd { height: 570px; }
  body.noirtube-experience .pt_new_home_feat_vidd .feature_image_main,
  body.noirtube-experience .pt_new_home_feat_vidd .pt_fv_blur_img > div { height: 570px; }
  body.noirtube-experience .pt_new_home_feat_vidd .feature_image_main {
    background-position: center top;
    padding: 0;
  }
  body.noirtube-experience .pt_new_home_feat_vidd .pt_hmpg_contanr { height: 100%; }
  body.noirtube-experience .pt_new_home_feat_vidd.home_feat .feature_wrap {
    position: absolute;
    top: auto !important;
    bottom: 16px !important;
    left: 12px;
    right: 12px;
    width: auto;
    height: auto;
    padding: 20px 20px 22px;
    border-radius: 14px;
  }
  body.noirtube-experience .pt_new_home_feat_vidd .right_feature_wrap {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 0 0 12px;
  }
  body.noirtube-experience .pt_new_home_feat_vidd .right_feature_wrap > span img { width: 32px; height: 32px; }
  body.noirtube-experience .pt_new_home_feat_vidd .right_feature_wrap .chanel_content {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
    flex-wrap: wrap;
  }
  body.noirtube-experience .pt_new_home_feat_vidd .right_feature_wrap .chanel_content > a > span {
    display: block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
  }
  body.noirtube-experience .pt_new_home_feat_vidd .right_feature_wrap .subscribe_channel { margin: 0; }
  body.noirtube-experience .pt_new_home_feat_vidd .feature_text_title {
    font-size: clamp(20px, 5.6vw, 25px);
    line-height: 1.22;
    max-height: 64px;
    overflow: hidden;
    margin-bottom: 9px;
  }
  body.noirtube-experience .pt_new_home_feat_vidd .feature_wrap .video_info { margin-bottom: 9px; }
  body.noirtube-experience .pt_new_home_feat_vidd .feature_wrap p { max-height: 43px !important; }
  body.noirtube-experience .pt_new_home_feat_vidd .feature_wrap .feature_channel_wrap { margin-top: 13px !important; }
  body.noirtube-experience .pt_new_home_feat_vidd .feature_channel_wrap { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .nt-button, .pt_homepg_whote_bg .video-list-image img, .pt_homepg_whote_bg .video-thumb img { transition: none !important; }
}
