:root {
  --tfvideo-bg: #fafafa;
  --tfvideo-surface: #ffffff;
  --tfvideo-surface-2: #f1f1f1;
  --tfvideo-line: #e8e8e8;
  --tfvideo-text: #111111;
  --tfvideo-muted: #6b6b6b;
  --tfvideo-brand: #e10d0d;
  --tfvideo-brand-dark: #ba2121;
  --tfvideo-brand-soft: #fef2f2;
}

* { -webkit-font-smoothing: antialiased; box-sizing: border-box; }

html, body {
  background: var(--tfvideo-bg);
  color: var(--tfvideo-text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
}
body { margin: 0; }
a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

/* Top brand strip */
.tfvideo-brand-strip {
  height: 3px;
  background: linear-gradient(90deg,
    var(--tfvideo-brand) 0%,
    var(--tfvideo-brand) 25%,
    #1a1a1a 50%,
    var(--tfvideo-brand) 75%,
    var(--tfvideo-brand) 100%);
  background-size: 200% 100%;
  animation: tfvideo-brand-sweep 4s linear infinite;
}
@keyframes tfvideo-brand-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}

/* Top bar */
.tfvideo-topbar {
  background: #0d0d0d;
  color: #e5e5e5;
  font-size: 0.875rem;
  border-bottom: 1px solid #1f1f1f;
}
.tfvideo-topbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.tfvideo-topbar-welcome {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.tfvideo-topbar-welcome .tfvideo-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--tfvideo-brand);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(225, 13, 13, 0.6);
  animation: tfvideo-pulse 2s ease-in-out infinite;
  flex: none;
}
@keyframes tfvideo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225,13,13,0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(225,13,13,0); }
}
.tfvideo-topbar-welcome b { color: #fff; font-weight: 700; }
.tfvideo-topbar-welcome .tfvideo-muted { color: #8a8a8a; }

.tfvideo-topbar-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tfvideo-topbar-social .tfvideo-label {
  font-size: 0.8rem;
  color: #8a8a8a;
  margin-right: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.tfvideo-social-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #1a1a1a;
  border: 1px solid #262626;
  color: #c5c5c5;
  transition: all .2s;
}
.tfvideo-social-btn:hover {
  background: var(--tfvideo-brand);
  border-color: var(--tfvideo-brand);
  color: #fff;
  transform: translateY(-1px);
}

/* Logo */
.tfvideo-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tfvideo-text);
}
.tfvideo-logo img { max-height: 44px; width: auto; display: block; }
.tfvideo-logo .tfvideo-dot { color: var(--tfvideo-brand); }

/* Header layout */
.tfvideo-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--tfvideo-line);
}
.tfvideo-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
}
.tfvideo-header-search { flex: 1; max-width: 640px; margin: 0 auto; }
.tfvideo-header-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; margin-left: auto; }

/* Search */
.tfvideo-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--tfvideo-surface-2);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0.75rem 1.25rem;
  transition: all .2s;
}
.tfvideo-search-box:focus-within {
  background: #fff;
  border-color: #111;
}
.tfvideo-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--tfvideo-text);
}
.tfvideo-search-box input::placeholder { color: var(--tfvideo-muted); }
.tfvideo-search-go {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tfvideo-brand);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s;
  margin: -0.25rem -0.5rem -0.25rem 0;
}
.tfvideo-search-go:hover { background: var(--tfvideo-brand-dark); }

/* Buttons */
.tfvideo-btn-primary,
.tfvideo-btn-dark,
.tfvideo-btn-ghost {
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.tfvideo-btn-primary {
  background: var(--tfvideo-brand);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border: none;
}
.tfvideo-btn-primary:hover { background: var(--tfvideo-brand-dark); transform: translateY(-1px); }
.tfvideo-btn-dark {
  background: #111;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border: none;
}
.tfvideo-btn-dark:hover { background: #000; }
.tfvideo-btn-ghost {
  background: transparent;
  color: var(--tfvideo-text);
  padding: 0.75rem 1.4rem;
  border: 1.5px solid var(--tfvideo-line);
  font-weight: 600;
}
.tfvideo-btn-ghost:hover { border-color: #111; background: #fff; }

/* Form fields */
.tfvideo-field {
  background: #fff;
  border: 1.5px solid var(--tfvideo-line);
  padding: 0.95rem 1.1rem;
  color: var(--tfvideo-text);
  width: 100%;
  outline: none;
  font-size: 1.05rem;
  border-radius: 12px;
  transition: border-color .2s;
  font-family: inherit;
}
.tfvideo-field:focus { border-color: #111; }

/* Layout shell with rail */
.tfvideo-shell {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
}
.tfvideo-rail {
  width: 88px;
  flex: none;
  border-right: 1px solid var(--tfvideo-line);
  background: var(--tfvideo-bg);
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
@media (max-width: 1024px) {
  .tfvideo-rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    border-right: 0;
    border-top: 1px solid var(--tfvideo-line);
    background: rgba(255,255,255,0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 -6px 20px -10px rgba(0,0,0,0.18);
    z-index: 35;
  }
  .tfvideo-rail-item {
    flex: 1 1 0;
    padding: 0.4rem 0.25rem 0.5rem;
    gap: 0.25rem;
    border-radius: 10px;
    min-width: 0;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.1;
  }
  .tfvideo-rail-item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tfvideo-rail-item .tfvideo-icon { font-size: 1.25rem; }
  .tfvideo-rail-item.tfvideo-active::before {
    left: 50%;
    top: -0.4rem;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
  }
  body { padding-bottom: 72px; }
  body.page-template-page-shorts .tfvideo-rail,
  .page-template-page-shorts .tfvideo-rail { display: none; }
  body.page-template-page-shorts { padding-bottom: 0; }
  /* Drawer açıldığında bottom-nav arkada kalsın */
  body.tfvideo-menu-open .tfvideo-rail,
  body.tfvideo-search-open .tfvideo-rail { z-index: 30; }
}
.tfvideo-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tfvideo-muted);
  cursor: pointer;
  transition: all .15s;
  position: relative;
  text-align: center;
}
.tfvideo-rail-item .tfvideo-icon { font-size: 1.35rem; line-height: 1; }
.tfvideo-rail-item:hover { background: var(--tfvideo-surface-2); color: var(--tfvideo-text); }
.tfvideo-rail-item.tfvideo-active {
  background: var(--tfvideo-brand-soft);
  color: var(--tfvideo-brand);
}
.tfvideo-rail-item.tfvideo-active::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 55%;
  background: var(--tfvideo-brand);
  border-radius: 0 4px 4px 0;
}

.tfvideo-main {
  flex: 1;
  padding: 2rem 1.5rem;
  min-width: 0;
}
@media (min-width: 1024px) { .tfvideo-main { padding: 2rem; } }

/* Main nav (mega/dropdown) */
.tfvideo-mainnav {
  background: #fff;
  border-bottom: 1px solid var(--tfvideo-line);
}
.tfvideo-mainnav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.tfvideo-mainnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.tfvideo-mainnav > .tfvideo-mainnav-inner > ul > li { position: relative; }
.tfvideo-mainnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--tfvideo-text);
  position: relative;
  transition: color .15s;
}
.tfvideo-mainnav > .tfvideo-mainnav-inner > ul > li > a::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0;
  height: 2px;
  background: var(--tfvideo-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.tfvideo-mainnav > .tfvideo-mainnav-inner > ul > li:hover > a::after,
.tfvideo-mainnav > .tfvideo-mainnav-inner > ul > li.current-menu-item > a::after { transform: scaleX(1); }
.tfvideo-mainnav .menu-item-has-children > a::after { /* keep underline anim */ }
.tfvideo-mainnav .menu-item-has-children > a .tfvideo-caret { font-size: 0.7rem; opacity: 0.6; }

/* Submenus */
.tfvideo-mainnav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 320px;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--tfvideo-line);
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: 0 24px 56px -18px rgba(0,0,0,0.22), 0 4px 12px -4px rgba(0,0,0,0.06);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.tfvideo-mainnav .sub-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.tfvideo-mainnav .sub-menu .sub-menu {
  top: -0.75rem;
  left: calc(100% + 8px);
  margin-left: 0;
}
.tfvideo-mainnav li:hover > .sub-menu,
.tfvideo-mainnav li:focus-within > .sub-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.tfvideo-mainnav .sub-menu li { width: 100%; }
.tfvideo-mainnav .sub-menu a {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.tfvideo-mainnav .sub-menu a:hover {
  background: var(--tfvideo-surface-2);
  color: var(--tfvideo-brand);
  padding-left: 1.15rem;
}

/* Section heading */
.tfvideo-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.tfvideo-section-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.tfvideo-section-title::before {
  content: "";
  width: 6px;
  height: 28px;
  background: var(--tfvideo-brand);
  border-radius: 99px;
}
.tfvideo-section-title .tfvideo-badge {
  background: var(--tfvideo-brand-soft);
  color: var(--tfvideo-brand);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.tfvideo-see-all {
  color: var(--tfvideo-text);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  transition: background .15s;
}
.tfvideo-see-all:hover { background: var(--tfvideo-surface-2); }

/* Chips */
.tfvideo-chips-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  margin-bottom: 1.5rem;
}
.tfvideo-chips-bar::-webkit-scrollbar { display: none; }
.tfvideo-chip {
  background: #fff;
  color: var(--tfvideo-text);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid var(--tfvideo-line);
  transition: all .15s;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.tfvideo-chip:hover { border-color: #111; }
.tfvideo-chip.tfvideo-active { background: #111; color: #fff; border-color: #111; }

/* Hero */
.tfvideo-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .tfvideo-hero-grid { grid-template-columns: 1fr; } }

/* Hero slider — 2'şer kayma */
.tfvideo-hero-slider { position: relative; margin-bottom: 3rem; }
.tfvideo-hero-slider .tfvideo-hero-track-wrap { overflow: hidden; border-radius: 22px; }
.tfvideo-hero-slider .tfvideo-hero-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .55s cubic-bezier(.5,.05,.2,1);
  will-change: transform;
}
.tfvideo-hero-slider .tfvideo-hero-slide {
  flex: 0 0 calc(50% - .75rem);
  min-width: 0;
}
@media (max-width: 900px) { .tfvideo-hero-slider .tfvideo-hero-slide { flex: 0 0 100%; } }
.tfvideo-hero-next {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.86);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 8px 22px -8px rgba(0,0,0,0.35), 0 2px 6px -2px rgba(0,0,0,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  z-index: 5;
  opacity: 0.92;
}
.tfvideo-hero-next:hover {
  background: #fff;
  transform: translateY(-50%) translateX(2px);
  opacity: 1;
}
.tfvideo-hero-next:focus-visible {
  outline: 2px solid var(--tfvideo-brand, #111);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .tfvideo-hero-next { width: 34px; height: 34px; right: 10px; font-size: 0.8rem; }
}
.tfvideo-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16/10;
  display: block;
}
.tfvideo-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform .8s;
}
.tfvideo-hero:hover img { transform: scale(1.05); }
.tfvideo-hero-content {
  position: absolute; inset: 0;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.78) 100%);
}
.tfvideo-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--tfvideo-brand);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tfvideo-hero-content h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.85rem;
}
.tfvideo-hero-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 1.25rem;
}
.tfvideo-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Video grid */
.tfvideo-grid {
  display: grid;
  gap: 2.5rem 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .tfvideo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tfvideo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .tfvideo-grid { grid-template-columns: repeat(4, 1fr); } }

.tfvideo-card {
  cursor: pointer;
  transition: transform .25s;
  display: block;
  color: inherit;
}
.tfvideo-card:hover { transform: translateY(-4px); }
.tfvideo-card .tfvideo-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tfvideo-surface-2);
  border: 1px solid var(--tfvideo-line);
}
.tfvideo-card .tfvideo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.tfvideo-card:hover .tfvideo-thumb img { transform: scale(1.06); }
.tfvideo-card .tfvideo-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.tfvideo-card .tfvideo-cat-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255,255,255,0.95);
  color: #111;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.tfvideo-card .tfvideo-rank-badge {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: var(--tfvideo-brand);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.tfvideo-card .tfvideo-meta {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0 0.25rem;
}
.tfvideo-card .tfvideo-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex: none;
  position: relative;
}
.tfvideo-card .tfvideo-avatar::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 12px; height: 12px;
  background: var(--tfvideo-brand);
  border-radius: 50%;
  border: 2px solid var(--tfvideo-bg);
}
.tfvideo-card .tfvideo-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tfvideo-card .tfvideo-channel {
  font-size: 0.95rem;
  color: var(--tfvideo-muted);
  margin: 0.4rem 0 0;
  font-weight: 500;
}
.tfvideo-card .tfvideo-stats {
  font-size: 0.9rem;
  color: var(--tfvideo-muted);
  margin: 0.15rem 0 0;
}

/* Empty thumb */
.tfvideo-thumb-empty {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--tfvideo-muted);
  font-size: 1.6rem;
}

/* Shorts */
.tfvideo-shorts-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1280px) { .tfvideo-shorts-row { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1024px) { .tfvideo-shorts-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .tfvideo-shorts-row { grid-template-columns: repeat(2, 1fr); } }
.tfvideo-short-card {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: var(--tfvideo-surface-2);
  transition: transform .3s;
  border: 1px solid var(--tfvideo-line);
  display: block;
}
.tfvideo-short-card:hover { transform: translateY(-4px); }
.tfvideo-short-card img { width: 100%; height: 100%; object-fit: cover; }
.tfvideo-short-card .tfvideo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.9) 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.tfvideo-short-card .tfvideo-play-icon {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--tfvideo-brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.9rem;
}
.tfvideo-short-card .tfvideo-stitle {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.tfvideo-short-card .tfvideo-sviews {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.3rem;
  font-weight: 500;
}

/* Category banner */
.tfvideo-cat-banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #111;
  padding: 3rem 2.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tfvideo-cat-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(225,13,13,0.85) 0%, rgba(20,20,20,0.95) 100%);
  z-index: 0;
}
.tfvideo-cat-banner > * { position: relative; z-index: 1; }
.tfvideo-cat-banner .tfvideo-cat-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
}
.tfvideo-cat-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
.tfvideo-cat-banner p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0;
}

/* Breadcrumb */
.tfvideo-breadcrumb {
  font-size: 1rem;
  color: var(--tfvideo-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tfvideo-breadcrumb a:hover { color: var(--tfvideo-brand); }
.tfvideo-breadcrumb .tfvideo-current { color: var(--tfvideo-text); font-weight: 600; }

/* Video detail */
.tfvideo-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 2rem;
}
@media (max-width: 1280px) { .tfvideo-detail { grid-template-columns: 1fr; } }

.tfvideo-player {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.tfvideo-player video,
.tfvideo-player iframe { width: 100%; height: 100%; display: block; border: 0; }
.tfvideo-player img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.tfvideo-player .tfvideo-play-big {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.tfvideo-player .tfvideo-play-big i {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--tfvideo-brand);
  display: grid;
  place-items: center;
  font-size: 2rem;
  padding-left: 8px;
  transition: transform .25s, background .25s;
  box-shadow: 0 12px 40px rgba(225,13,13,0.45);
}
.tfvideo-player .tfvideo-play-big:hover i {
  transform: scale(1.08);
  background: var(--tfvideo-brand-dark);
}

.tfvideo-vtitle {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0;
  line-height: 1.25;
}
.tfvideo-vmeta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.tfvideo-vchannel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.tfvideo-vchannel .tfvideo-avatar-lg {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--tfvideo-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}
.tfvideo-vchannel .tfvideo-name { font-weight: 700; font-size: 1.05rem; }
.tfvideo-vchannel .tfvideo-subs { font-size: 0.9rem; color: var(--tfvideo-muted); }
.tfvideo-vactions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tfvideo-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--tfvideo-surface-2);
  color: var(--tfvideo-text);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
  text-decoration: none;
}
.tfvideo-action-pill:hover { background: #e5e5e5; }
.tfvideo-action-pill.tfvideo-active { background: var(--tfvideo-brand-soft); color: var(--tfvideo-brand); }

.tfvideo-info-box {
  background: var(--tfvideo-surface-2);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.tfvideo-info-box .tfvideo-stats-line { font-weight: 700; margin-bottom: 0.5rem; }
.tfvideo-info-box .tfvideo-desc { color: #2a2a2a; }
.tfvideo-info-box .tfvideo-desc p:first-child { margin-top: 0; }

/* Comments */
.tfvideo-comments { margin-top: 2rem; }
.tfvideo-comments h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.25rem; }
.tfvideo-comment {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.tfvideo-comment .tfvideo-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--tfvideo-brand);
  font-size: 1.05rem;
}
.tfvideo-comment .tfvideo-body .tfvideo-who { font-weight: 700; font-size: 0.95rem; }
.tfvideo-comment .tfvideo-body .tfvideo-when { color: var(--tfvideo-muted); font-size: 0.85rem; margin-left: 0.4rem; }
.tfvideo-comment .tfvideo-body .tfvideo-text { margin-top: 0.3rem; font-size: 0.97rem; line-height: 1.5; }

.tfvideo-comment-form { margin-top: 2rem; }
.tfvideo-comment-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--tfvideo-line);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}
.tfvideo-comment-form textarea:focus { border-color: #111; outline: none; }
.tfvideo-comment-form .tfvideo-comment-actions { margin-top: 0.75rem; display: flex; justify-content: flex-end; }

/* Related sidebar */
.tfvideo-related-list { display: flex; flex-direction: column; gap: 1rem; }
.tfvideo-related-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 0.85rem;
  cursor: pointer;
  color: inherit;
}
.tfvideo-related-card .tfvideo-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tfvideo-surface-2);
}
.tfvideo-related-card .tfvideo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tfvideo-related-card .tfvideo-duration {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tfvideo-related-card .tfvideo-info .t {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tfvideo-related-card .tfvideo-info .c { color: var(--tfvideo-muted); font-size: 0.85rem; margin-top: 0.3rem; }

/* Auth cards */
.tfvideo-auth-wrap {
  min-height: calc(100vh - 4px);
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem;
}
.tfvideo-auth-card {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--tfvideo-line);
  padding: 2.5rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.tfvideo-auth-card h1 { font-size: 1.85rem; font-weight: 800; text-align: center; margin: 0 0 0.5rem; }
.tfvideo-auth-card .tfvideo-auth-sub { text-align: center; font-size: 1rem; color: var(--tfvideo-muted); margin-bottom: 2rem; }
.tfvideo-auth-card form { display: flex; flex-direction: column; gap: 1rem; }
.tfvideo-auth-card label { font-weight: 600; font-size: 1rem; display: block; margin-bottom: 0.5rem; }
.tfvideo-auth-card .tfvideo-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.tfvideo-auth-card .tfvideo-row-meta {
  display: flex; align-items: center; justify-content: space-between; font-size: 0.95rem;
}
.tfvideo-auth-card .tfvideo-link { color: var(--tfvideo-brand); font-weight: 600; }
.tfvideo-auth-card .tfvideo-link:hover { text-decoration: underline; }
.tfvideo-auth-card .tfvideo-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--tfvideo-muted); }
.tfvideo-auth-card .tfvideo-checkbox input { width: 1rem; height: 1rem; margin-top: 0.2rem; accent-color: var(--tfvideo-brand); }
.tfvideo-auth-card button[type="submit"] { width: 100%; justify-content: center; margin-top: 0.5rem; }
.tfvideo-auth-foot { text-align: center; margin-top: 2rem; color: var(--tfvideo-muted); font-size: 1rem; }
.tfvideo-auth-back { display: block; text-align: center; margin-top: 1.5rem; color: var(--tfvideo-muted); }
.tfvideo-auth-back:hover { color: var(--tfvideo-brand); }
.tfvideo-form-error {
  background: var(--tfvideo-brand-soft);
  color: var(--tfvideo-brand);
  border: 1px solid #fecaca;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.tfvideo-form-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Member panel */
.tfvideo-member {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
@media (max-width: 900px) { .tfvideo-member { grid-template-columns: 1fr; } }
.tfvideo-member-nav {
  background: #fff;
  border: 1px solid var(--tfvideo-line);
  border-radius: 18px;
  padding: 1rem;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}
.tfvideo-member-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--tfvideo-text);
  margin-bottom: 0.25rem;
}
.tfvideo-member-nav a:hover { background: var(--tfvideo-surface-2); }
.tfvideo-member-nav a.tfvideo-active { background: var(--tfvideo-brand-soft); color: var(--tfvideo-brand); }
.tfvideo-member-content {
  background: #fff;
  border: 1px solid var(--tfvideo-line);
  border-radius: 18px;
  padding: 2rem;
}
.tfvideo-member-content h2 { margin: 0 0 1.25rem; font-size: 1.5rem; font-weight: 800; }

/* Footer */
.tfvideo-foot { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--tfvideo-line); }
.tfvideo-foot-grid {
  display: grid;
  grid-template-columns: 33% 40% 1fr;
  gap: 3.5rem;
  padding-bottom: 2rem;
  align-items: start;
}
.tfvideo-foot-col--wide a { display: block; }
@media (min-width: 769px) {
  .tfvideo-foot-col--wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 0.4rem;
  }
  .tfvideo-foot-col--wide h4 { grid-column: 1 / -1; }
}
@media (max-width: 768px) { .tfvideo-foot-grid { grid-template-columns: 1fr 1fr; } }
.tfvideo-foot-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--tfvideo-text);
}
.tfvideo-foot-col a {
  display: block;
  font-size: 0.95rem;
  color: var(--tfvideo-muted);
  margin-bottom: 0.6rem;
  transition: color .15s;
}
.tfvideo-foot-col a:hover { color: var(--tfvideo-brand); }
.tfvideo-foot-bottom {
  border-top: 1px solid var(--tfvideo-line);
  padding: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--tfvideo-muted);
}

/* Shorts feed */
.page-template-page-shorts .tfvideo-main { padding: 0; max-width: none; }
.page-template-page-shorts .tfvideo-foot { display: none; }
.tfvideo-feed {
  height: calc(100vh - 80px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  background: var(--tfvideo-surface-2);
}
.tfvideo-feed::-webkit-scrollbar { display: none; }
.tfvideo-slide {
  height: calc(100vh - 80px);
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.tfvideo-short-stage {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  height: 100%;
  max-height: 800px;
}
.tfvideo-short-player {
  position: relative;
  height: 100%;
  max-height: 800px;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #111;
}
.tfvideo-short-player .tfvideo-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.tfvideo-short-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer;
  color: #fff;
}
.tfvideo-short-play-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  font-size: 1.6rem;
  transition: background .15s, transform .15s;
}
.tfvideo-short-play:hover .tfvideo-short-play-circle { background: rgba(255,255,255,0.32); transform: scale(1.05); }
.tfvideo-short-play-circle i { margin-left: 4px; }
.tfvideo-short-media {
  position: absolute; inset: 0;
  background: #000;
}
.tfvideo-short-media video,
.tfvideo-short-media iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.tfvideo-short-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}
.tfvideo-short-info > * { pointer-events: auto; }
.tfvideo-short-title { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin: 0 0 .75rem; color: #fff; }
.tfvideo-short-channel { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.tfvideo-short-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--tfvideo-brand, #e10d0d);
  display: grid; place-items: center;
  font-size: 1.4rem;
  color: #fff;
}
.tfvideo-short-name { font-size: 1rem; font-weight: 600; }
.tfvideo-short-subs { font-size: .85rem; opacity: .85; }
.tfvideo-short-hashtags { font-size: .95rem; opacity: .9; }
.tfvideo-short-actions {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding-bottom: .25rem;
  flex: 0 0 auto;
}
.tfvideo-short-actions a { text-decoration: none; color: inherit; }
.tfvideo-action-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--tfvideo-surface-2);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  border: 0;
  color: var(--tfvideo-text);
  transition: background .15s, color .15s;
}
.tfvideo-action-btn:hover { background: #e0e0e0; }
.tfvideo-action-btn .fa-heart { color: var(--tfvideo-muted); transition: color .15s, transform .15s; }
.tfvideo-action-btn.tfvideo-fav-btn:hover .fa-heart { color: var(--tfvideo-brand, #e10d0d); }
.tfvideo-action-btn.tfvideo-active .fa-heart { color: var(--tfvideo-brand, #e10d0d); transform: scale(1.08); }
.tfvideo-action-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.4rem;
  min-height: 1.1em;
}

/* Pagination */
.tfvideo-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tfvideo-pagination a,
.tfvideo-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.85rem;
  border-radius: 12px;
  border: 1.5px solid var(--tfvideo-line);
  background: #fff;
  font-weight: 600;
  color: var(--tfvideo-text);
}
.tfvideo-pagination a:hover { border-color: #111; }
.tfvideo-pagination .current { background: #111; color: #fff; border-color: #111; }

/* Mobile responsive */
@media (max-width: 768px) {
  html, body { font-size: 15px; }
  .tfvideo-topbar-inner { padding: 0.65rem 1rem; gap: 0.5rem; flex-wrap: nowrap; }
  .tfvideo-topbar-welcome { font-size: 0.78rem; }
  .tfvideo-topbar-welcome .tfvideo-muted { display: none; }
  .tfvideo-topbar-social .tfvideo-label { display: none; }
  .tfvideo-social-btn { width: 30px; height: 30px; }

  .tfvideo-header-inner { padding: 0.75rem 1rem; gap: 0.75rem; }
  .tfvideo-logo { font-size: 1.25rem; }
  .tfvideo-search-box { padding: 0.55rem 0.75rem; }
  .tfvideo-search-box input { font-size: 0.9rem; }
  .tfvideo-search-go { width: 34px; height: 34px; }
  .tfvideo-btn-dark, .tfvideo-btn-ghost { padding: 0.6rem 1rem; font-size: 0.9rem; }

  .tfvideo-main { padding: 1.25rem 1rem; }
  .tfvideo-section-title { font-size: 1.35rem; }
  .tfvideo-section-title::before { width: 5px; height: 22px; }
  .tfvideo-section-head { margin-bottom: 1rem; }
  .tfvideo-see-all { font-size: 0.9rem; padding: 0.4rem 0.75rem; }

  .tfvideo-hero-grid { gap: 1rem; margin-bottom: 2rem; }
  .tfvideo-hero { aspect-ratio: 16/11; border-radius: 16px; }
  .tfvideo-hero-content { padding: 1.5rem; }
  .tfvideo-hero-content h1 { font-size: 1.4rem; margin-bottom: 0.5rem; }
  .tfvideo-hero-content p { font-size: 0.95rem; }
  .tfvideo-hero-tag { font-size: 0.75rem; padding: 0.35rem 0.75rem; margin-bottom: 0.85rem; }
  .tfvideo-hero-meta { font-size: 0.85rem; gap: 0.6rem; flex-wrap: wrap; }

  .tfvideo-card .tfvideo-title { font-size: 1rem; }
  .tfvideo-card .tfvideo-channel,
  .tfvideo-card .tfvideo-stats { font-size: 0.9rem; }
  .tfvideo-card .tfvideo-meta { gap: 0.7rem; margin-top: 0.75rem; }
  .tfvideo-card .tfvideo-avatar { width: 36px; height: 36px; font-size: 1rem; }

  .tfvideo-chip { padding: 0.5rem 0.95rem; font-size: 0.9rem; }
  .tfvideo-chips-bar { gap: 0.5rem; margin-bottom: 1rem; }

  .tfvideo-cat-banner { padding: 1.75rem 1.5rem; border-radius: 16px; }
  .tfvideo-cat-banner h1 { font-size: 1.65rem; }
  .tfvideo-cat-banner p { font-size: 0.95rem; }

  .tfvideo-vtitle { font-size: 1.25rem; margin-top: 1rem; }
  .tfvideo-vmeta-row { gap: 0.75rem; margin-top: 0.85rem; }
  .tfvideo-vchannel .tfvideo-avatar-lg { width: 44px; height: 44px; font-size: 1.15rem; }
  .tfvideo-action-pill { padding: 0.55rem 0.95rem; font-size: 0.9rem; }
  .tfvideo-info-box { padding: 1rem 1.15rem; font-size: 0.92rem; margin-top: 1rem; }
  .tfvideo-player .tfvideo-play-big i { width: 70px; height: 70px; font-size: 1.4rem; }

  .tfvideo-related-card { grid-template-columns: 140px 1fr; gap: 0.7rem; }

  .tfvideo-foot { margin-top: 2.5rem; padding-top: 1.75rem; }
  .tfvideo-foot-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .tfvideo-foot-col h4 { font-size: 0.95rem; margin-bottom: 0.7rem; }
  .tfvideo-foot-col a { font-size: 0.9rem; margin-bottom: 0.5rem; }

  .tfvideo-auth-card { padding: 2rem 1.5rem; }

  /* Mobile main nav: collapse */
  .tfvideo-mainnav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--tfvideo-surface-2);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    margin-right: 0.5rem;
  }
}
@media (min-width: 769px) {
  .tfvideo-mainnav-toggle { display: none; }
}

/* Mobile mega menu drawer */
@media (max-width: 768px) {
  .tfvideo-mainnav-inner { display: none; padding: 0; }
  .tfvideo-mainnav.tfvideo-open .tfvideo-mainnav-inner { display: block; padding: 0.5rem 1rem 1rem; }
  .tfvideo-mainnav ul { flex-direction: column; }
  .tfvideo-mainnav .sub-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding-left: 0.75rem;
    border-left: 2px solid var(--tfvideo-line);
    border-radius: 0;
    display: block;
    margin-top: 0.25rem;
  }
}

/* Shorts feed mobile */
@media (max-width: 1024px) {
  .tfvideo-feed { height: calc(100vh - 130px); }
  .tfvideo-slide { height: calc(100vh - 130px); padding: 1rem; }
  .tfvideo-short-player { max-height: none; height: 100%; }
  .tfvideo-short-stage { gap: .5rem; }
  .tfvideo-short-actions { gap: .9rem; }
  .tfvideo-action-btn { width: 46px; height: 46px; font-size: 1.2rem; }
  .tfvideo-short-title { font-size: 1.15rem; }
}
@media (max-width: 600px) {
  .tfvideo-short-info { padding: 1rem; }
  .tfvideo-short-info .tfvideo-short-channel { gap: .5rem; }
}

/* Settings table tweaks for empty meta */
.tfvideo-empty-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--tfvideo-muted);
  background: var(--tfvideo-surface-2);
  border-radius: 14px;
  font-size: 1rem;
}

/* ----- Share popup ----- */
.tfvideo-share-pop {
  position: absolute;
  z-index: 9999;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--tfvideo-line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  animation: tfvideo-pop .15s ease-out;
}
@keyframes tfvideo-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.tfvideo-share-pop a,
.tfvideo-share-pop button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: transparent;
  border: 0;
  color: var(--tfvideo-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}
.tfvideo-share-pop a:hover,
.tfvideo-share-pop button:hover { background: var(--tfvideo-surface-2); }
.tfvideo-share-pop i { width: 18px; text-align: center; font-size: 1rem; color: var(--tfvideo-muted); }
.tfvideo-share-pop a[href*="wa.me"] i        { color: #25D366; }
.tfvideo-share-pop a[href*="facebook"] i     { color: #1877F2; }
.tfvideo-share-pop a[href*="twitter"] i      { color: #111; }

/* ----- Mobile header iconları + drawer ----- */
.tfvideo-icon-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: var(--tfvideo-surface-2);
  border: 0;
  color: var(--tfvideo-text);
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.tfvideo-icon-btn:hover { background: #e5e7eb; color: var(--tfvideo-brand); }

.tfvideo-mobile-only { display: none; }
.tfvideo-desktop-only { display: inline-flex; }
@media (max-width: 768px) {
  .tfvideo-mobile-only { display: inline-grid; }
  .tfvideo-desktop-only { display: none !important; }
  /* Header search box mobilde gizle (drawer açılır) */
  .tfvideo-header-search { display: none; }
  .tfvideo-header-inner { gap: 0.5rem; }
}

/* Mobil arama drawer */
.tfvideo-mobile-search {
  display: none;
  padding: 0.75rem 1rem;
  background: #fff;
  border-top: 1px solid var(--tfvideo-line);
}
.tfvideo-mobile-search .tfvideo-search-box { width: 100%; }
.tfvideo-mobile-search .tfvideo-search-close {
  background: transparent; border: 0; cursor: pointer;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--tfvideo-muted); font-size: 1rem;
}
body.tfvideo-search-open .tfvideo-mobile-search { display: block; animation: tfvideo-slide-down .2s ease-out; }
@keyframes tfvideo-slide-down { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Drawer backdrop (menü ve search için ortak) */
.tfvideo-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 38;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
body.tfvideo-menu-open .tfvideo-drawer-backdrop,
body.tfvideo-search-open .tfvideo-drawer-backdrop { opacity: 1; pointer-events: auto; }

/* Mobil menü drawer (1024px altı) — SOLDAN slide */
@media (max-width: 1024px) {
  .tfvideo-mainnav {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(320px, 88vw);
    background: #fff;
    z-index: 39;
    transform: translateX(-100%);
    transition: transform .25s ease-out;
    box-shadow: 8px 0 24px rgba(0,0,0,0.12);
    overflow-y: auto;
    border-bottom: 0;
  }
  body.tfvideo-menu-open .tfvideo-mainnav { transform: translateX(0); }

  .tfvideo-mainnav-inner {
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }

  /* Drawer üst başlık */
  .tfvideo-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem 0.85rem;
    border-bottom: 1px solid var(--tfvideo-line);
  }
  .tfvideo-drawer-logo .tfvideo-logo { font-size: 1.15rem; }
  .tfvideo-drawer-logo .tfvideo-logo img { max-height: 36px; width: auto; }

  /* Drawer içi arama */
  .tfvideo-drawer-search {
    padding: 1rem 1.25rem 0.5rem;
  }
  .tfvideo-drawer-search .tfvideo-search-box { width: 100%; }

  /* Menü listesi */
  .tfvideo-mainnav ul {
    display: block;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0.5rem 0.75rem;
    list-style: none;
  }
  .tfvideo-mainnav li { display: block; }
  .tfvideo-mainnav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--tfvideo-text);
  }
  .tfvideo-mainnav a:hover { background: var(--tfvideo-surface-2); color: var(--tfvideo-brand); }
  .tfvideo-mainnav .current-menu-item > a,
  .tfvideo-mainnav .current_page_item > a {
    background: var(--tfvideo-brand-soft, rgba(225, 13, 13, 0.08));
    color: var(--tfvideo-brand);
  }
  /* WP, '#' veya home_url ile aynı URL'e sahip her item'ı current_page_item işaretler.
     Kırmızı blok yığılmasın diye placeholder ('#') linklerini hiç highlight etme. */
  .tfvideo-mainnav a[href="#"],
  .tfvideo-mainnav a[href$="#"] {
    background: transparent !important;
    color: var(--tfvideo-text) !important;
  }
  .tfvideo-mainnav a[href="#"]:hover,
  .tfvideo-mainnav a[href$="#"]:hover {
    background: var(--tfvideo-surface-2) !important;
    color: var(--tfvideo-brand) !important;
  }
  .tfvideo-mainnav > .tfvideo-mainnav-inner ul > li > a::after { display: none; }
  .tfvideo-mainnav .sub-menu {
    position: static; box-shadow: none; padding: 0.25rem; display: none;
    background: var(--tfvideo-surface-2); border-radius: 10px; margin: 0.35rem 0 0.5rem 1.25rem;
    border: 0;
  }
  .tfvideo-mainnav li:hover > .sub-menu,
  .tfvideo-mainnav li:focus-within > .sub-menu { display: block; }
  .tfvideo-mainnav .sub-menu a { padding: 0.65rem 0.85rem; font-weight: 500; font-size: 0.95rem; }

  /* Close button */
  .tfvideo-mainnav-close {
    background: var(--tfvideo-surface-2); border: 0; cursor: pointer;
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: 1rem;
    color: var(--tfvideo-text);
    flex: 0 0 auto;
    transition: background .15s;
  }
  .tfvideo-mainnav-close:hover { background: #e5e7eb; }

  /* Drawer alt sosyal şerit */
  .tfvideo-drawer-foot {
    margin-top: auto;
    padding: 1.25rem 1.25rem 1.5rem;
    border-top: 1px solid var(--tfvideo-line);
    background: linear-gradient(180deg, transparent, var(--tfvideo-surface-2));
  }
  .tfvideo-drawer-foot-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--tfvideo-muted);
    margin-bottom: 0.65rem;
  }
  .tfvideo-drawer-socials {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .tfvideo-drawer-socials a {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: #fff;
    border: 1px solid var(--tfvideo-line);
    color: var(--tfvideo-text);
    font-size: 1rem;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
  }
  .tfvideo-drawer-socials a:hover {
    background: var(--tfvideo-brand);
    color: #fff;
    border-color: var(--tfvideo-brand);
    transform: translateY(-2px);
  }

  /* Drawer açıkken sayfa scroll'unu kilitle */
  body.tfvideo-menu-open { overflow: hidden; }
}
@media (min-width: 1025px) {
  .tfvideo-drawer-head,
  .tfvideo-drawer-search,
  .tfvideo-drawer-foot { display: none; }
}
@media (min-width: 1025px) {
  .tfvideo-mainnav-close { display: none; }
}

/* Mobile fine-tuning: 600px (small phones) */
@media (max-width: 600px) {
  .tfvideo-header-inner { gap: 0.5rem; padding: 0.65rem 0.85rem; }
  .tfvideo-logo { font-size: 1.1rem; }
  .tfvideo-icon-btn { width: 38px; height: 38px; font-size: 1rem; }

  .tfvideo-foot { margin-top: 2.5rem; padding-top: 1.75rem; }
  .tfvideo-foot-grid { gap: 1.5rem; }
  .tfvideo-section-title { font-size: 1.2rem; }
  .tfvideo-hero-content h1 { font-size: 1.2rem; }

  /* Üye paneli mobil — yan menü yatay scroll */
  .tfvideo-member-nav { position: static; padding: 0.5rem; display: flex; gap: 0.4rem; overflow-x: auto; }
  .tfvideo-member-nav::-webkit-scrollbar { display: none; }
  .tfvideo-member-nav a { flex: 0 0 auto; padding: 0.6rem 0.95rem; margin: 0; white-space: nowrap; }
  .tfvideo-member-content { padding: 1.25rem; }
}

/* Mobile fine-tuning: 480px (very small) */
@media (max-width: 480px) {
  .tfvideo-foot-grid { grid-template-columns: 1fr; }
  .tfvideo-topbar-welcome { font-size: 0.72rem; }
  .tfvideo-topbar-social { gap: 0.3rem; }
  .tfvideo-social-btn { width: 26px; height: 26px; font-size: 0.75rem; }

  .tfvideo-action-btn { width: 42px; height: 42px; font-size: 1.1rem; }
  .tfvideo-short-stage { gap: .35rem; }
  .tfvideo-short-info { padding: 0.85rem; }
  .tfvideo-short-title { font-size: 1rem; margin-bottom: .5rem; }
  .tfvideo-short-avatar { width: 36px; height: 36px; font-size: 1.15rem; }
}
