/*
BU SİTENİN TÜM KODLAMASI VE TASARIMI MOVYRA EKİBİ TARAFINDAN ÖZENLE YAZILMIŞ VE TASARLANMIŞTIR.
*/
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #0b1220, #03040a);
  font-family: Arial, sans-serif;
  color: #fff;
}

.admin-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 40px;
}

.admin-card {
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(12px);
}

.hidden { display: none; }

.subtitle {
  opacity: .7;
  margin-bottom: 20px;
}


.edit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.06);
  padding: 12px 16px;
  border-radius: 10px;
}

.edit-item span {
  font-size: 14px;
}

.edit-item button {
  background: #e50914;
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}


input, textarea, select {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

textarea { min-height: 100px; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.save-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #e50914, #ff3d3d);
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 12px;
}

.status {
  margin-top: 10px;
  color: #4caf50;
}

@media (max-width: 900px) {
  .admin-wrapper {
    grid-template-columns: 1fr;
  }
}
.admin-back-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    backdrop-filter: blur(8px);
    z-index: 999;
  }
  
  .admin-back-btn:hover {
    background: rgba(255,255,255,0.18);
  }
  label {
    display: block;
    margin-top: 14px;
    font-weight: 600;
  }
  
  small {
    display: block;
    margin-bottom: 6px;
    color: #9ca3af;
    font-size: 12px;
  }
  .search-input {
    width: 100%;
    padding: 12px 14px;
    margin: 14px 0 20px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: #1f2937;
    color: white;
    font-size: 14px;
  }
  
  .search-input::placeholder {
    color: #9ca3af;
  }
  .poster-preview {
    width: 140px;         
    max-width: 140px;
    height: auto;
    border-radius: 12px;
    margin-top: 10px;
    object-fit: cover;     
    box-shadow: 0 10px 25px rgba(0,0,0,.5);
  }
  
  .hidden {
    display: none;
  }
  .preview { margin-top:10px; border-radius:10px; box-shadow:0 10px 25px rgba(0,0,0,.5); }
  .preview.wide { width:100%; max-height:340px; object-fit:cover; }
  .preview.logo { width:140px; background:#111; padding:10px; }
  .preview.video { width:100%; height:200px; border:none; }
  .hidden { display:none; }
  #posterPreview {
    width: 140px;
    aspect-ratio: 2 / 3;   
    object-fit: cover;
    background: #111;
  }
  
.navbar {

  top: 0;
  width: 100%;
  height: 72px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: 0.3s;
  z-index: 1000;
}
.navbar.scrolled {
  background: rgba(7,11,20,.9);
  backdrop-filter: blur(12px);
}
.nav-left { display: flex; gap: 40px; align-items: center; }
.logo { font-size: 32px; font-weight: bold; color: #e50914; }
.menu { display: flex; gap: 26px; }
.menu a { 
  color: #fff; 
  opacity: .85; 
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: opacity 0.3s ease;
}
.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}
.menu a:hover { 
  opacity: 1; 
}
.menu a:hover::after {
  width: 100%;
}

.nav-right { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e50914;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: bold;
}
.navbar.scrolled {
  background: rgba(7,11,20,.9);
  backdrop-filter: blur(12px);
}
.edit-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-title {
  font-size: 14px;
  color: #ffffff;
}

.edit-id {
  font-size: 12px;
  color: #7aa2ff; 
  opacity: 0.8;
  font-family: monospace;
}
.edit-info-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #ddd;
}

.edit-info-bar span {
  opacity: 0.9;
}

.edit-info-bar strong {
  color: #fff;
}

.coming-soon-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 24px;
}

.coming-soon-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
}

.coming-soon-check input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.coming-soon-desc {
  color: #aaa;
  font-size: 13px;
  line-height: 1.3;
}



input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  flex: 0 0 auto;
  accent-color: #e50914;
}


.edit-id{color:#79a7ff!important}
.ghost-btn{background:#1f2937;border:1px solid rgba(255,255,255,.12);color:#fff;padding:0 16px;border-radius:10px;cursor:pointer;white-space:nowrap}
.option-card{padding:16px 18px;border-radius:12px;margin:14px 0;border-left:3px solid transparent;background:rgba(255,255,255,.03)}
.option-card small{display:block;margin-top:6px;color:#b7bfd1}
.option-blue{background:rgba(59,130,246,.08);border-left-color:#3b82f6}
.option-green{background:rgba(16,185,129,.08);border-left-color:#10b981}
.option-purple{background:rgba(168,85,247,.08);border-left-color:#c084fc}
.option-orange{background:rgba(245,158,11,.08);border-left-color:#f59e0b}
.kategori-analiz-page .admin-wrapper{padding-top:30px}.kategori-analiz-card{max-width:1200px}.kategori-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 22px}.cat-list{display:flex;flex-direction:column;gap:14px}.cat-row{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:14px;padding:16px}.cat-title{font-weight:700;margin-bottom:10px}.cat-actions{display:flex;gap:8px;justify-content:flex-end;margin-bottom:10px}.cat-input{width:100%;background:#121826;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:12px 14px}.header-btn.mini{padding:8px 12px;font-size:13px}
.secondary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  font-weight:700;
  transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.secondary-btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.24);
  box-shadow:0 14px 28px rgba(0,0,0,.18);
}
.detail-editor-launch{
  margin-bottom:18px;
  padding:16px 18px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.detail-editor-summary{
  margin-top:10px;
  color:#b7bfd1;
  font-size:13px;
  line-height:1.6;
}
.detail-editor-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  padding:26px;
  background:rgba(3,6,14,.74);
  backdrop-filter:blur(12px);
}
.detail-editor-modal.hidden{display:none}
.detail-editor-dialog{
  width:min(1180px,100%);
  max-height:calc(100vh - 52px);
  margin:auto;
  overflow:auto;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(10,14,24,.96), rgba(5,8,16,.96));
  box-shadow:0 34px 90px rgba(0,0,0,.45);
}
.detail-editor-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:24px 24px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.detail-editor-head h2{
  margin:0 0 6px;
  font-size:24px;
}
.detail-editor-head p{
  margin:0;
  color:#aab4c8;
  font-size:13px;
  line-height:1.6;
}
.detail-editor-close{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:#fff;
  font-size:24px;
  cursor:pointer;
}
.detail-editor-body{
  display:grid;
  grid-template-columns:minmax(320px,420px) minmax(0,1fr);
  gap:22px;
  padding:24px;
}
.detail-editor-form{
  padding:20px;
  border-radius:20px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.detail-editor-form textarea{
  min-height:120px;
}
.detail-note-builder{
  margin-top:10px;
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
}
.detail-note-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-top:10px;
}
.detail-note-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}
.detail-note-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.detail-note-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.detail-note-chip.highlight{background:rgba(250,204,21,.14);color:#fde68a}
.detail-note-chip.accent{background:rgba(96,165,250,.14);color:#bfdbfe}
.detail-note-chip.soft{background:rgba(244,114,182,.14);color:#fbcfe8}
.detail-note-remove{
  border:none;
  background:transparent;
  color:#fda4af;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
}
.detail-editor-preview{
  min-width:0;
}
.detail-preview-card{
  padding:22px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
}
.detail-preview-head{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:20px;
  align-items:start;
}
.detail-preview-poster{
  width:160px;
  height:228px;
  object-fit:cover;
  border-radius:18px;
  background:#111827;
}
.detail-preview-copy{
  min-width:0;
}
.detail-preview-title{
  font-size:30px;
  font-weight:800;
  line-height:1.08;
}
.detail-preview-meta{
  margin-top:8px;
  color:rgba(255,255,255,.6);
  line-height:1.6;
}
.detail-preview-stage{
  position:relative;
  min-height:110px;
  margin-top:16px;
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.14);
  background:linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  overflow:hidden;
}
.detail-preview-note{
  position:absolute;
  transform:translate(-50%,-50%);
  max-width:min(220px,82%);
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  font-size:12px;
  font-weight:700;
  cursor:grab;
  user-select:none;
  box-shadow:0 12px 24px rgba(0,0,0,.2);
}
.detail-preview-note.dragging{cursor:grabbing}
.detail-preview-note.highlight{background:linear-gradient(135deg, rgba(250,204,21,.22), rgba(120,53,15,.56));border-color:rgba(252,211,77,.38);color:#fff5bf}
.detail-preview-note.accent{background:linear-gradient(135deg, rgba(59,130,246,.2), rgba(30,41,59,.82));border-color:rgba(147,197,253,.32);color:#dbeafe}
.detail-preview-note.soft{background:linear-gradient(135deg, rgba(244,114,182,.18), rgba(76,29,149,.62));border-color:rgba(244,114,182,.24);color:#fdf2f8}
.detail-preview-desc{
  margin:18px 0 0;
  color:rgba(255,255,255,.84);
  line-height:1.75;
}
.detail-preview-stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 20px;
}
.detail-preview-stats span{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#f4c542;
  font-size:13px;
  font-weight:700;
}
.detail-preview-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.detail-preview-columns > div{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.detail-preview-columns strong{
  display:block;
  margin-bottom:10px;
  color:#f4c542;
}
.detail-preview-columns p{
  margin:0;
  color:rgba(255,255,255,.78);
  line-height:1.7;
  white-space:pre-line;
}
.detail-editor-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding:0 24px 24px;
}
.detail-editor-save{
  width:auto;
  min-width:220px;
}
:root{
  --main-scrollbar-size:6px;
}
html {
  scrollbar-color: #db3214be #0e1014;
  scrollbar-width: thin;
}
html::-webkit-scrollbar{
  width: var(--main-scrollbar-size);
  height: var(--main-scrollbar-size);
}
html::-webkit-scrollbar-track{
  background: #0e1014;
}
html::-webkit-scrollbar-thumb{
  background: #db3214be;
  border-radius: 999px;
}
@media (max-width: 980px){
  .detail-editor-body{grid-template-columns:1fr}
}
@media (max-width: 720px){
  .detail-editor-modal{padding:14px}
  .detail-editor-head,.detail-editor-body,.detail-editor-actions{padding-left:16px;padding-right:16px}
  .detail-preview-head{grid-template-columns:1fr}
  .detail-preview-poster{width:100%;max-width:220px;height:300px}
  .detail-preview-columns{grid-template-columns:1fr}
  .detail-note-row,.detail-editor-actions{grid-template-columns:1fr;display:grid}
}
