/* ========== TX PLAYER ========== */
.tx-player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  font-family: "Outfit", "Noto Sans JP", system-ui, sans-serif;
}

.tx-player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.tx-player-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 5;
}

.tx-player.controls-visible .tx-player-gradient {
  opacity: 1;
}

.tx-player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 16px 14px;
  z-index: 10;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tx-player.controls-visible .tx-player-controls {
  opacity: 1;
  transform: translateY(0);
}

.tx-progress-wrap {
  position: relative;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 6px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.tx-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  overflow: hidden;
  transition: height 0.18s ease;
}

.tx-progress-wrap:hover .tx-progress-track,
.tx-progress-wrap.is-dragging .tx-progress-track {
  height: 7px;
}

.tx-progress-buffer {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.tx-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
}

.tx-progress-thumb {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.12s ease;
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
  z-index: 2;
}

.tx-progress-wrap:hover .tx-progress-thumb,
.tx-progress-wrap.is-dragging .tx-progress-thumb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
}

.tx-progress-tooltip {
  position: absolute;
  top: -28px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 3;
}

.tx-progress-wrap:hover .tx-progress-tooltip,
.tx-progress-wrap.is-dragging .tx-progress-tooltip {
  opacity: 1;
}

.tx-progress-wrap.has-preview:hover .tx-progress-tooltip,
.tx-progress-wrap.has-preview.is-dragging .tx-progress-tooltip {
  opacity: 0;
}

.tx-preview-container {
  position: absolute;
  bottom: 22px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.15s ease;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tx-progress-wrap:hover .tx-preview-container,
.tx-progress-wrap.is-dragging .tx-preview-container {
  opacity: 1;
}

.tx-preview-canvas {
  display: block;
  width: 160px;
  height: 90px;
  border-radius: 6px;
  border: 2px solid rgba(233, 69, 96, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  background: #0b0b12;
}

.tx-preview-time {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .tx-preview-canvas {
    width: 136px;
    height: 76px;
  }

  .tx-preview-container {
    bottom: 32px;
  }
}

.tx-player-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tx-ctrl-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.tx-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tx-ctrl-btn svg {
  width: 22px;
  height: 22px;
}

.tx-seek-btn {
  position: relative;
}

.tx-seek-btn .tx-seek-icon svg {
  width: 26px;
  height: 26px;
}

.tx-seek-btn .tx-seek-label {
  position: absolute;
  font-size: 0.5rem;
  font-weight: 800;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 1px;
}

.tx-volume-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tx-volume-slider {
  width: 0;
  overflow: hidden;
  transition: width 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  outline: none;
}

.tx-volume-wrap:hover .tx-volume-slider {
  width: 80px;
  opacity: 1;
}

.tx-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.tx-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.tx-time-display {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 0 4px;
}

.tx-ctrl-spacer {
  flex: 1;
}

.tx-settings-btn-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ========== SETTINGS PANEL (GLASSMORPHISM & TILES) ========== */
.tx-settings-panel {
  position: absolute;
  bottom: 72px;
  right: 16px;
  background: rgba(11, 11, 20, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  width: 320px;
  max-width: calc(100% - 32px);
  max-height: min(80vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 22;
  display: none;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.tx-settings-panel::-webkit-scrollbar {
  width: 4px;
}

.tx-settings-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.tx-settings-panel.visible {
  display: block;
  animation: txSettingsIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes txSettingsIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tx-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tx-settings-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-settings-title-icon svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.tx-settings-header .tx-ctrl-btn {
  padding: 4px;
  border-radius: 6px;
}

.tx-settings-header .tx-ctrl-btn svg {
  width: 16px;
  height: 16px;
}

.tx-settings-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Modüler Kutucuklar (Cards / Tiles) */
.tx-setting-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tx-setting-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(233, 69, 96, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.tx-setting-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 8px;
}

.tx-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
}

.tx-card-icon svg {
  width: 16px;
  height: 16px;
}

.tx-setting-card:hover .tx-card-icon svg {
  color: var(--accent);
}

.tx-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.tx-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tx-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(233, 69, 96, 0.12);
  border: 1px solid rgba(233, 69, 96, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.tx-card-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.25s ease, color 0.2s ease;
}

.tx-card-chevron svg {
  width: 15px;
  height: 15px;
}

/* PC Üzerine Gelince & Tıklanınca Açılma */
.tx-setting-card-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease, margin-top 0.22s ease;
}

.tx-setting-card.is-expanded .tx-setting-card-body {
  max-height: 480px;
  opacity: 1;
  margin-top: 10px;
}

.tx-setting-card.is-expanded .tx-card-chevron {
  transform: rotate(90deg);
  color: var(--accent);
}

/* Seçenek Izgaraları */
.tx-settings-speed-grid,
.tx-settings-quality-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tx-speed-option,
.tx-quality-option {
  flex: 1 1 calc(25% - 6px);
  min-width: 52px;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.tx-speed-option:hover,
.tx-quality-option:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.tx-speed-option.active,
.tx-quality-option.active {
  color: #fff;
  font-weight: 700;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(233, 69, 96, 0.4);
}

/* Sağa / Sola Sarma Barı (Seek Slider) */
.tx-seek-control-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-seek-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-seek-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tx-seek-slider:hover {
  background: rgba(255, 255, 255, 0.24);
}

.tx-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tx-seek-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(233, 69, 96, 0.85);
}

.tx-seek-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tx-seek-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(233, 69, 96, 0.85);
}

.tx-seek-value-display {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tx-seek-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tx-seek-preset-btn {
  flex: 1;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.tx-seek-preset-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tx-seek-preset-btn.active {
  color: var(--accent);
  background: rgba(233, 69, 96, 0.15);
  border-color: rgba(233, 69, 96, 0.4);
}

/* Toggles & Satırlar */
.tx-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  gap: 12px;
}

.tx-setting-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.tx-setting-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.tx-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.tx-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.tx-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  transition: background 0.25s ease;
  cursor: pointer;
}

.tx-toggle input:checked + .tx-toggle-track {
  background: var(--accent);
}

.tx-toggle-track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.tx-toggle input:checked + .tx-toggle-track::after {
  transform: translateX(16px);
}

.tx-skip-btn {
  position: absolute;
  bottom: 80px;
  right: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  z-index: 15;
  display: none;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.tx-skip-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.tx-skip-btn.visible {
  display: flex;
  animation: txSkipIn 0.35s ease-out;
}

.tx-skip-ending {
  bottom: 80px;
}

.tx-skip-countdown-badge {
  display: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

@keyframes txSkipIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tx-next-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 25;
}

.tx-next-overlay.visible {
  display: flex;
  animation: txFadeIn 0.4s ease-out;
}

.tx-next-content {
  text-align: center;
  max-width: 380px;
  padding: 24px;
}

.tx-next-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.tx-next-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
}

.tx-next-countdown-ring {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
}

.tx-next-countdown-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.tx-next-countdown-ring circle {
  fill: none;
  stroke-width: 3;
}

.tx-ring-bg {
  stroke: rgba(255, 255, 255, 0.12);
}

.tx-ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.tx-next-countdown-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.tx-next-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.tx-next-play-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.tx-next-play-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.tx-next-cancel-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 11px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tx-next-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.tx-seek-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
}

.tx-seek-indicator.left {
  left: 15%;
}

.tx-seek-indicator.right {
  right: 15%;
}

.tx-seek-indicator.active {
  display: flex;
  animation: txSeekPulse 0.6s ease-out forwards;
}

.tx-seek-indicator-content {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.tx-seek-ind-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-seek-ind-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.tx-seek-ind-num {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 900;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 1px;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

@keyframes txSeekPulse {
  0% {
    opacity: 1;
    transform: translateY(-50%) scale(0.85);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(1.35);
  }
}

.tx-center-action {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 15;
  display: none;
}

.tx-center-action.active {
  display: block;
  animation: txCenterPulse 0.5s ease-out forwards;
}

.tx-center-action-icon {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-center-action-icon svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

@keyframes txCenterPulse {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.85);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

.tx-player-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 12;
  pointer-events: none;
}

.tx-player-loader.active {
  display: flex;
}

.tx-loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: txSpin 0.75s linear infinite;
}

@keyframes txSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes txFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tx-big-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.25);
}

.tx-big-play-icon {
  width: 76px;
  height: 76px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 28px rgba(233, 69, 96, 0.45);
}

.tx-big-play:hover .tx-big-play-icon {
  transform: scale(1.1);
  background: var(--accent-hover);
  box-shadow: 0 8px 36px rgba(233, 69, 96, 0.55);
}

.tx-big-play-icon svg {
  width: 34px;
  height: 34px;
  color: #fff;
  margin-left: 3px;
}

@media (max-width: 640px) {
  .tx-player-controls {
    padding: 0 10px 10px;
  }

  .tx-player-buttons {
    gap: 2px;
  }

  .tx-ctrl-btn {
    padding: 5px;
  }

  .tx-ctrl-btn svg {
    width: 20px;
    height: 20px;
  }

  .tx-seek-btn .tx-seek-icon svg {
    width: 22px;
    height: 22px;
  }

  .tx-seek-btn .tx-seek-label {
    font-size: 0.45rem;
  }

  .tx-time-display {
    font-size: 0.7rem;
  }

  .tx-volume-wrap:hover .tx-volume-slider {
    width: 50px;
  }

  .tx-skip-btn {
    bottom: 68px;
    right: 10px;
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .tx-settings-panel {
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    bottom: 58px;
    padding: 12px 14px;
    max-height: 70vh;
    border-radius: 14px;
  }

  .tx-setting-card {
    padding: 8px 10px;
    border-radius: 10px;
  }

  .tx-setting-card-header {
    min-height: 36px;
  }

  .tx-card-title {
    font-size: 0.78rem;
  }

  .tx-card-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  .tx-speed-option,
  .tx-quality-option {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    padding: 4px;
  }

  .tx-seek-slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
  }

  .tx-seek-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
  }

  .tx-seek-preset-btn {
    padding: 6px 4px;
    font-size: 0.7rem;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tx-setting-row {
    padding: 10px 0;
  }

  .tx-setting-label {
    font-size: 0.76rem;
  }

  .tx-big-play-icon {
    width: 60px;
    height: 60px;
  }

  .tx-big-play-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* Resume Toast */
.tx-resume-toast {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(15, 15, 25, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 25;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  animation: txFadeIn 0.3s ease-out;
}

.tx-resume-text {
  font-size: 0.84rem;
  color: #fff;
  font-weight: 500;
}

.tx-resume-restart-btn {
  background: rgba(233, 69, 96, 0.2);
  color: var(--accent);
  border: 1px solid rgba(233, 69, 96, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.tx-resume-restart-btn:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 640px) {
  .tx-resume-toast {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 8px 12px;
    justify-content: space-between;
  }
  .tx-resume-text {
    font-size: 0.76rem;
  }
}

.tx-party-btn {
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.tx-party-btn.tx-party-active {
  color: var(--accent, #e94560);
}

.tx-party-btn.tx-party-active::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: #e94560;
  border-radius: 50%;
  box-shadow: 0 0 8px #e94560;
  animation: txPartyPulse 1.8s infinite;
}

@keyframes txPartyPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Controls Locked Mode (Host Only) */
.tx-player.tx-controls-locked .tx-play-pause-btn,
.tx-player.tx-controls-locked .tx-seek-btn,
.tx-player.tx-controls-locked .tx-progress-wrap,
.tx-player.tx-controls-locked .tx-big-play,
.tx-player.tx-controls-locked .tx-player-video {
  pointer-events: none !important;
  opacity: 0.35 !important;
  cursor: not-allowed !important;
}

.tx-player.tx-controls-locked .tx-player-video {
  opacity: 1 !important;
}

/* Fullscreen Player Styles */
.tx-player.is-fullscreen,
:fullscreen .tx-player,
:-webkit-full-screen .tx-player {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

.tx-player.is-fullscreen .tx-player-video,
:fullscreen .tx-player-video,
:-webkit-full-screen .tx-player-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Mobil Tam Ekran Çentik & Alt Çubuk (Safe-Area) Uyumluluğu */
.tx-player.is-fullscreen .tx-player-controls,
:fullscreen .tx-player-controls,
:-webkit-full-screen .tx-player-controls {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.tx-player.is-fullscreen .tx-skip-btn,
:fullscreen .tx-skip-btn,
:-webkit-full-screen .tx-skip-btn {
  right: max(20px, env(safe-area-inset-right));
}

.tx-player.is-fullscreen .tx-settings-panel,
:fullscreen .tx-settings-panel,
:-webkit-full-screen .tx-settings-panel {
  bottom: max(64px, calc(env(safe-area-inset-bottom) + 50px));
}
