:root {
  --primary: #c06c84;
  --primary-light: #f8b195;
  --bg-body: #fdfbf7;
  --surface: #ffffff;
  --text-main: #353535;
  --text-sub: #666666;
  --radius: 16px;
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
  --transition: transform 0.2s ease;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0; font-family: 'Outfit', sans-serif;
  background: var(--bg-body); color: var(--text-main);
  overflow: hidden; height: 100vh; height: 100dvh;
}

/* ===== GİRİŞ ===== */
#entry-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: linear-gradient(135deg, #fff0f3 0%, #fff 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#entry-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.entry-card {
  background: rgba(255,255,255,0.8); backdrop-filter: blur(10px);
  padding: 40px; border-radius: 30px; border: 1px solid #fff;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.05); width: 85%; max-width: 360px;
}
.heart-icon { font-size: 3.5rem; display: block; margin-bottom: 10px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% {transform: translateY(0);} 50% {transform: translateY(-10px);} }
.entry-title { font-family: 'Dancing Script', cursive; font-size: 3rem; color: var(--primary); margin: 0; }

#pass-input {
  width: 100%; padding: 15px; border-radius: 15px; border: 2px solid #eee;
  text-align: center; font-size: 1.1rem; color: var(--primary); font-weight: 600;
  background: #fff; margin: 25px 0 15px; outline: none;
}
#login-btn {
  width: 100%; padding: 15px; border-radius: 15px; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 1.1rem;
}

/* ===== LAYOUT ===== */
.app-container { display: flex; height: 100%; position: relative; }

.sidebar {
  width: 280px; background: var(--surface); border-right: 1px solid #f0f0f0; padding: 30px 20px;
  display: flex; flex-direction: column; z-index: 900; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo { font-family: 'Dancing Script', cursive; font-size: 2.2rem; color: var(--primary); text-align: center; margin-bottom: 30px; }
.nav-list { list-style: none; padding: 0; margin: 0; flex: 1; overflow-y: auto; }
.nav-item {
  padding: 14px 16px; margin-bottom: 6px; border-radius: 12px; cursor: pointer;
  font-weight: 500; color: var(--text-sub); display: flex; align-items: center; gap: 12px; font-size: 1rem;
}
.nav-item.active { background: #fff0f3; color: var(--primary); font-weight: 600; }

.sidebar-divider {
  border: none; border-top: 1px solid #f0e8ec; margin: 0 0 14px;
}

.main-content {
  flex: 1; padding: 30px 40px; overflow-y: auto;
  scroll-behavior: smooth; background: var(--bg-body);
  -webkit-overflow-scrolling: touch; transform: translate3d(0,0,0);
}

.section { display: none; }
.section.active { display: block; animation: fadeUp 0.4s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

h2 {
  font-family: 'Dancing Script', cursive; font-size: 2.4rem; color: var(--primary);
  margin: 0 0 25px 0; border-bottom: 2px solid rgba(192, 108, 132, 0.1);
  display: inline-block; padding-bottom: 5px;
}

/* ===== KARTLAR ===== */
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }

.card-base {
  background: var(--surface); border-radius: 18px; padding: 10px;
  box-shadow: var(--shadow-soft); cursor: pointer; border: 1px solid #fff;
  transform: translateZ(0);
}
.card-base:active { transform: scale(0.97); }

.thumb-frame { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #eee; position: relative; }
.thumb-frame img, .thumb-frame video { width: 100%; height: 100%; object-fit: cover; }

.play-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,0.3); color: #fff; font-size: 3rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5); pointer-events: none; z-index: 2;
}

.card-info { padding: 12px 5px 5px; text-align: center; font-weight: 600; color: var(--text-main); font-size: 0.95rem; }

.concert-card { background: #fff; border-radius: 20px; padding: 20px; display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow-soft); border-left: 6px solid var(--primary); cursor: pointer; }
.concert-cover { width: 70px; height: 70px; background: #fce4ec; border-radius: 15px; display: grid; place-items: center; font-size: 1.8rem; color: var(--primary); }
.back-btn { background: #fff; border: none; font-size: 1rem; font-weight: 700; color: var(--primary); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; padding: 10px 20px; border-radius: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s; }
.back-btn:active { transform: scale(0.95); }

.movie-grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.movie-box { background: #fff; border-radius: 16px; padding: 15px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-soft); border: 1px solid #f0f0f0; }
.movie-box.watched { border-left: 5px solid #a5d6a7; opacity: 0.9; }
.movie-box.pending { border-left: 5px solid var(--primary); }
.search-container { position: relative; margin-bottom: 20px; }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; pointer-events: none; }
.modern-search { width: 100%; padding: 16px 20px 16px 50px; border-radius: 30px; border: 1px solid #eee; background: #fff; font-size: 1rem; outline: none; box-shadow: var(--shadow-soft); -webkit-appearance: none; }

.about-wrap { display: flex; flex-wrap: wrap; gap: 30px; }
.about-card { flex: 1; min-width: 280px; background: #fff; border-radius: 26px; padding: 30px; box-shadow: var(--shadow-soft); text-align: center; }
.about-img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.1); margin-bottom: 15px; }
.info-pill { background: #f8f9fa; padding: 10px 14px; border-radius: 12px; margin-bottom: 8px; font-size: 0.95rem; display: flex; gap: 10px; align-items: center; text-align: left; }

.menu-btn { position: fixed; top: 15px; left: 15px; z-index: 1100; background: rgba(255,255,255,0.95); width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: none; place-items: center; font-size: 1.4rem; color: var(--text-main); border: 1px solid #eee; }
.mobile-music-btn { position: fixed; top: 15px; right: 15px; z-index: 1100; background: rgba(255,255,255,0.95); width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: none; place-items: center; font-size: 1.2rem; color: var(--primary); border: 1px solid #eee; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 800; display: none; backdrop-filter: blur(4px); }

/* ===== VIEWER ===== */
.viewer { position: fixed; inset: 0; background: #fff; z-index: 5000; display: none; flex-direction: column; align-items: center; justify-content: center; }
.viewer.show { display: flex; animation: fadeIn 0.3s; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.close-viewer { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; background: #f0f0f0; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: #333; cursor: pointer; z-index: 10; }
.viewer-content { width: 95%; height: 80%; display: flex; align-items: center; justify-content: center; position: relative; }
.viewer-content img { max-width: 100%; max-height: 100%; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); transition: opacity 0.2s ease; opacity: 1; }
.viewer-content video { max-width: 100%; max-height: 100%; border-radius: 16px; }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 100px; background: transparent; border: none; cursor: pointer; font-size: 2.5rem; color: #ddd; display: flex; align-items: center; justify-content: center; }
.nav-arrow:active { color: var(--primary); }
.nav-arrow.left { left: 0; } .nav-arrow.right { right: 0; }

/* ===== TOYS ===== */
.toys-coming { background: linear-gradient(135deg,#fff7f9,#fff1f4); padding:20px 30px; border-radius:20px; box-shadow:0 8px 30px rgba(192,108,132,0.08); font-size:1.6rem; color:var(--primary); font-weight:700; border:1px dashed #f3c6d0; }

/* ===== MUSIC PANEL ===== */
#music-panel { font-size: 0.95rem; }
#music-panel button { background:#fff; border:1px solid #eee; cursor:pointer; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sidebar { position: fixed; height: 100%; width: 280px; left: -290px; box-shadow: 10px 0 40px rgba(0,0,0,0.1); }
  .sidebar.open { transform: translateX(290px); }
  .menu-btn, .mobile-music-btn { display: grid; }
  .scrim.show { display: block; }
  .main-content { padding: 80px 20px 40px; }
  .grid-container { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .movie-grid-layout { grid-template-columns: 1fr; gap: 10px; }
  .about-wrap { flex-direction: column; }
  h2 { font-size: 2.2rem; }
}

/* ===== TOAST (FALLBACK) ===== */
.app-toast-container {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 99999; display: flex; flex-direction: column; align-items: center;
  gap: 10px; pointer-events: none; max-width: 92vw;
}
