* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #fff;
  min-height: 100vh;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 10, 15, 0.78);
  z-index: -1;
}

header {
  background: rgba(17, 17, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f1f2a;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #ffaa00, #ff6b00);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #000;
  flex-shrink: 0;
}
.logo-text h1 { font-size: 15px; font-weight: 600; }
.logo-text p { font-size: 12px; color: #888; }

.container {
  max-width: 560px;
  margin: 32px auto;
  padding: 0 16px;
}

.greeting { margin-bottom: 24px; }
.greeting h2 { font-size: 26px; font-weight: 700; }
.greeting h2 span { color: #ffaa00; }
.greeting p { color: #aaa; margin-top: 4px; font-size: 14px; }

.card-main {
  background: rgba(22, 22, 31, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid #252532;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}

.card-main h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; margin-bottom: 18px; color: #fff;
}
.card-main h2 svg, .card-main h2 i { color: #ffaa00; }

.form-row {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px;
}
.input-main {
  width: 100%;
  background: #0f0f16;
  border: 1px solid #2a2a38;
  border-radius: 12px;
  padding: 15px 16px;
  color: #fff; font-size: 15px; outline: none;
}
.input-main:focus { border-color: #ffaa00; }
.input-main::placeholder { color: #555; }

.btn-gold {
  width: 100%;
  background: linear-gradient(135deg, #ffaa00, #ff6b00);
  border: none; border-radius: 12px;
  padding: 15px 20px;
  color: #000; font-weight: 700; font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-gold:disabled { opacity: 0.55; cursor: not-allowed; }

@media (min-width: 520px) {
  .form-row { flex-direction: row; }
  .input-main { flex: 1; }
  .btn-gold { width: auto; padding: 0 24px; white-space: nowrap; }
}

.site-name {
  text-align: center;
  font-size: 13px;
  color: #ffaa00;
  margin: 6px 0 14px;
  font-weight: 700;
}

.error-msg {
  background: rgba(255, 50, 50, 0.12);
  border: 1px solid rgba(255, 50, 50, 0.3);
  color: #ff6b6b;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
}

.hidden { display: none !important; }

/* Result Video */
.result-box {
  background: #0f0f16;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2a38;
}
.result-top {
  padding: 18px;
  text-align: center;
  border-bottom: 1px solid #2a2a38;
}
.result-top img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
.result-top .title { font-size: 15px; line-height: 1.4; margin-bottom: 6px; }
.result-top .author { color: #ffaa00; font-size: 13px; }

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #2a2a38;
}
.result-grid > a {
  background: #0f0f16;
  padding: 16px 10px;
  text-align: center;
  text-decoration: none;
  color: #fff;
}
.result-grid .label {
  font-size: 12px; color: #888; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.result-grid .btn-dl {
  display: inline-block;
  background: linear-gradient(135deg, #ffaa00, #ff6b00);
  color: #000; font-weight: 700; font-size: 13px;
  padding: 8px 14px; border-radius: 8px; margin-top: 4px;
}

/* ===== PHOTO GRID ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
@media (min-width: 480px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
.photo-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0f0f16;
  border: 1px solid #2a2a38;
}
.photo-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.photo-item .dl-btn {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffaa00, #ff6b00);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.download-all-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 13px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 36px 16px;
  color: #555;
}
.empty-state svg { margin-bottom: 14px; opacity: 0.4; }
.empty-state h3 { font-size: 16px; color: #aaa; margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#cooldown-info {
  text-align: center;
  font-size: 13px;
  color: #ffaa00;
  margin-top: 14px;
  font-weight: 500;
}

/* Status Card */
.status-card {
  background: rgba(24, 24, 27, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid #3f3f46;
  border-radius: 24px;
  padding: 22px;
}
.status-card h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-card h2 i { color: #34d399; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.status-grid p.label {
  font-size: 11px;
  font-weight: 600;
}
.status-grid .today { color: #34d399; }
.status-grid .month { color: #fbbf24; }
.status-grid .server {
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.status-grid .value {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}
.online-dot {
  width: 8px; height: 8px;
  background: #34d399;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #34d399;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
