:root {
  --bg: #f3f4f6;
  --bg-card: #ffffff;
  --bg-soft: #e5e7eb;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --text: #111827;
  --muted: #6b7280;
  --border: #d1d5db;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #e5e7eb, #f9fafb);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden; /* SAYFA KAYDIRMA YOK */
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER */

.app-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.35);
}

@media (max-width: 800px) {
  .app-header {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: conic-gradient(
    from 220deg,
    #f97316,
    #facc15,
    #22c55e,
    #3b82f6,
    #f97316
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo span {
  font-weight: 900;
  color: #111827;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

/* NAV */

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-link {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-link.active {
  background: var(--accent-soft);
  color: var(--text);
}

/* HEADER RIGHT */

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fafb;
  font-size: 0.78rem;
  color: var(--muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.28);
}

.live-count {
  font-weight: 600;
  color: var(--text);
}

/* MAIN */

.main-layout {
  margin-top: 6px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-section {
  display: none;
  width: 100%;
}

.view-section.active {
  display: block;
}

/* SHORTS */

.shorts-shell {
  display: flex;
  justify-content: center;
  width: 100%;
}

.shorts-inner {
  max-width: 900px;
  width: 100%;
  height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Top meta */

.shorts-header {
  margin-bottom: 4px;
}

.shorts-title {
  font-size: 1rem;
  font-weight: 700;
}

.shorts-sub {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 2px;
}

.shorts-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.dot-separator {
  font-size: 0.75rem;
}

/* PLAYER ROW */

.shorts-player-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.nav-arrow {
  width: 34px;
  height: 80px;
  border-radius: 999px;
  border: none;
  background: rgba(249, 250, 251, 0.95);
  color: #111827;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-arrow:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.shorts-player {
  position: relative;
  flex: 0 0 auto;
}

.player-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 9 / 16;
  /* Yükseklik eskiye yakın, sadece biraz daha geniş */
  max-height: 70vh;
  width: min(540px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}


.player-media video,
.player-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-placeholder {
  font-size: 2.4rem;
  color: rgba(249, 250, 251, 0.9);
}

/* SAĞDAKİ BUTONLAR */

.shorts-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 64px;
}

.side-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.side-btn .icon {
  font-size: 1.15rem;
  line-height: 1;
}

.side-btn .count {
  font-size: 0.72rem;
  color: var(--muted);
}

.side-btn:hover {
  background: var(--bg-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.6);
}

.side-btn-download {
  text-decoration: none;
}

/* YORUM DRAWER */

.comments-drawer {
  position: fixed;
  right: 40px;
  top: 110px;
  width: 340px;
  max-height: calc(100vh - 160px);
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.4);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 20;
}

.comments-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.comments-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comments-header-row h2 {
  font-size: 0.9rem;
}

.comments-close {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}

/* Drawer içi */

.comment-list {
  list-style: none;
  max-height: 170px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.comment-item {
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}

.comment-meta {
  font-size: 0.7rem;
  color: var(--muted);
}

.comment-text {
  font-size: 0.8rem;
}

.comment-form .form-row {
  margin-bottom: 6px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 6px 8px;
  font-size: 0.8rem;
  font-family: inherit;
}

.comment-form textarea {
  resize: vertical;
}

.form-row-end {
  display: flex;
  justify-content: flex-end;
}

.comment-submit {
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  background: var(--accent);
  color: #111827;
  font-weight: 600;
}

/* BACKDROP */

.comments-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 15;
}

.comments-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ABOUT / CONTACT */

.text-card {
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 14px;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.35);
  font-size: 0.9rem;
  color: #111827;
}

.text-card h1 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.text-card p {
  margin-bottom: 6px;
}

.text-card ul {
  margin-left: 18px;
  margin-bottom: 8px;
}

.text-card li {
  margin-bottom: 4px;
}

/* FOOTER */

.footer {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .shorts-player-row {
    flex-direction: column;
  }

  .nav-arrow {
    width: 44px;
    height: 44px;
    margin-top: 4px;
    font-size: 1.4rem;
  }

  .shorts-side-actions {
    flex-direction: row;
    justify-content: center;
    flex: 0 0 auto;
  }

  .side-btn {
    flex: 1;
    height: 46px;
  }

  .comments-drawer {
    right: 10px;
    left: 10px;
    top: auto;
    bottom: 70px;
    width: auto;
    max-height: 60vh;
  }
}
