:root {
  --primary-color: #00bcd4;
  --bg-dark: #0a0b10;
  --card-bg: rgba(22, 24, 31, 0.7);
  --text-main: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 188, 212, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 61, 61, 0.15) 0%, transparent 40%);
  font-family: 'El Messiri', sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
  user-select: none;
}

#preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #000; z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content { position: relative; width: 100px; height: 100px; }

.keyhole {
  width: 100%; height: 100%;
  border: 4px solid var(--primary-color); border-radius: 50%;
  box-shadow: 0 0 30px var(--primary-color), inset 0 0 20px var(--primary-color);
  animation: pulseGlow 2s infinite;
}

.keyhole::after {
    content: ''; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 50px; background: var(--primary-color);
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    box-shadow: 0 0 30px var(--primary-color);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-color); opacity: 1; }
    50% { box-shadow: 0 0 50px var(--primary-color); opacity: 0.7; }
}

body.loaded #preloader { opacity: 0; visibility: hidden; }

#particles-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: -1; pointer-events: none;
}

.particle {
    position: absolute; border-radius: 50%;
    background: white; opacity: 0;
    will-change: transform, opacity;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.fog {
    position: fixed; bottom: 0; left: 0; width: 200%; height: 40vh;
    background: linear-gradient(to top, rgba(0, 188, 212, 0.15), transparent);
    filter: blur(20px); z-index: -1;
    animation: fogMove 20s infinite alternate ease-in-out;
}

@keyframes fogMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

header {
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 15px 30px; position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.home-link { color: #fff; text-decoration: none; font-weight: bold; transition: 0.3s; text-shadow: 0 0 10px var(--primary-color); }

.container { max-width: 900px; margin: 40px auto; padding: 20px; position: relative; }

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  margin-bottom: 30px;
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card.visible { opacity: 1; transform: translateY(0); }

.poster-glow {
    border-radius: 15px; width: 100%; max-width: 280px;
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.3);
    transition: transform 0.4s;
}

.poster-glow:hover { transform: scale(1.03) rotate(1deg); }

h1 { 
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin: 15px 0; font-size: 26px; 
}

.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 15px; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 40px rgba(0, 188, 212, 0.15);
  margin-bottom: 25px; background: #000;
}

.video-wrap iframe, .video-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; outline: none; }

.neon-btn {
  padding: 10px 30px; border-radius: 50px; border: 1px solid var(--primary-color);
  background: rgba(0, 188, 212, 0.1); color: var(--primary-color);
  font-family: 'El Messiri'; font-weight: bold; cursor: pointer;
  transition: 0.3s; position: relative; overflow: hidden;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}

.neon-btn:hover, .neon-btn.active {
  background: var(--primary-color); color: #000;
  box-shadow: 0 0 20px var(--primary-color);
}

.dl-table { width: 100%; border-collapse: collapse; margin-top: 15px; background: rgba(0,0,0,0.3); border-radius: 10px; overflow: hidden; }
.dl-table th { padding: 15px; color: var(--primary-color); background: rgba(0, 188, 212, 0.05); }
.dl-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; color: #ddd; }
.dl-link { 
    color: #fff; text-decoration: none; background: linear-gradient(45deg, var(--primary-color), #008ba3);
    padding: 5px 20px; border-radius: 20px; font-size: 14px; box-shadow: 0 5px 15px rgba(0,188,212,0.3);
    transition: 0.3s;
}

.stars span { font-size: 40px; cursor: pointer; color: #333; transition: 0.3s; display: inline-block; }
.stars span:hover { transform: scale(1.3); color: #ffd700 !important; text-shadow: 0 0 20px #ffd700; }

footer {
    margin-top: 60px; padding: 40px; text-align: center; color: #888;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(to top, #000, transparent);
}

.credits-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-top: 20px;
}

.credit-item {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 15px 10px; text-align: center;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.credit-item:hover { transform: translateY(-5px); background: rgba(255,255,255,0.08); box-shadow: 0 5px 20px rgba(0, 188, 212, 0.15); }
.credit-name { display: block; font-size: 1.1rem; font-weight: bold; color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.3); text-decoration: none; transition: 0.3s; }
.credit-name:hover { color: var(--primary-color); text-shadow: 0 0 15px var(--primary-color); }

.cinema-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 8px 15px; border-radius: 20px;
  cursor: pointer; margin-bottom: 10px; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 5px; transition: 0.3s;
}
.cinema-btn:hover { background: var(--primary-color); color: #000; }

.comment-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 15px 0; animation: fadeIn 0.5s; }
.comment-header { display: flex; justify-content: space-between; font-size: 0.85rem; color: #aaa; margin-bottom: 5px; }
.comment-author { color: var(--primary-color); font-weight: bold; }
.comment-body { color: #eee; line-height: 1.5; white-space: pre-wrap; }
.comment-actions { margin-top: 8px; display: flex; gap: 15px; font-size: 0.85rem; }
.action-btn { cursor: pointer; transition: 0.2s; }
.action-btn:hover { color: var(--primary-color); }
.comment-input, .comment-textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid #333; color: #fff; padding: 10px; border-radius: 8px; margin-bottom: 10px; font-family: inherit; }
#reply-status { display: none; justify-content: space-between; background: rgba(0,188,212,0.1); padding: 10px; margin-bottom: 10px; border-radius: 5px; border-right: 3px solid var(--primary-color); }

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

.report-btn { border-color: #ff3d3d; color: #ff3d3d; background: rgba(255, 61, 61, 0.1); }
.report-btn:hover { background: #ff3d3d; color: #fff; box-shadow: 0 0 20px #ff3d3d; }

.badge { padding: 5px 10px; border-radius: 5px; font-size: 0.8rem; margin-right: 10px; display: inline-block; vertical-align: middle; }
.manga { background: rgba(255, 0, 0, 0.2); color: #ff5555; border: 1px solid #ff5555; }
.filler { background: rgba(255, 215, 0, 0.2); color: #ffd700; border: 1px solid #ffd700; }
