:root {
  --red: #e11d2a;
  --red-dark: #a81420;
  --blue: #1d6fe1;
  --blue-dark: #12468f;
  --black: #0a0a0f;
  --panel: #14141c;
  --panel-2: #1c1c28;
  --text: #f4f4f6;
  --muted: #9a9ab0;
  --radius: 16px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body.theme-brutalism {
  --black: #fffcf0;
  --panel: #ffffff;
  --panel-2: #f0f0f0;
  --text: #000000;
  --muted: #444444;
  --radius: 0px;
}
body.theme-brutalism .card {
  border: 3px solid #000;
  box-shadow: 6px 6px 0px 0px #000;
  border-radius: 0;
}
body.theme-brutalism .btn {
  border: 3px solid #000;
  border-radius: 0;
  box-shadow: 4px 4px 0px 0px #000;
  font-weight: 800;
  text-transform: uppercase;
}
body.theme-brutalism .btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px #000;
}
body.theme-brutalism .nav {
  border-bottom: 3px solid #000;
}
body.theme-brutalism header {
  background: var(--panel);
}
body.theme-brutalism .bottom-nav {
  border-top: 3px solid #000;
  background: var(--panel);
}

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

html { scroll-behavior: smooth; background: var(--black); }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 120px;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--red);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.5px; }
.brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #000; }
.brand span { font-size: 1.05rem; }
.brand b { color: var(--red); }

.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }

.menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 70px 0 60px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(225,29,42,0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(29,111,225,0.18), transparent 45%);
  z-index: -1;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero h1 .r { color: var(--red); }
.hero h1 .b { color: var(--blue); }
.slogan {
  margin-top: 16px;
  font-size: 1.25rem;
  color: var(--muted);
  font-style: italic;
}
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--text); }
.btn-outline:hover { background: var(--blue); color: #fff; }

.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art img {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  border: 3px solid var(--red);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 6px rgba(29,111,225,0.15);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Social ---------- */
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 0 50px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.15s, filter 0.2s;
}
.social-btn:hover { transform: translateY(-3px); filter: brightness(1.12); }
.social-btn i { font-size: 1.25rem; }
.ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.xt { background: #000; border: 1px solid #333; }
.fb { background: #1877f2; }
.sp { background: #1db954; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.section-title .accent { color: var(--red); }
.section-sub { color: var(--muted); margin-bottom: 36px; }

/* ---------- Episodes ---------- */
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.ep-card {
  background: var(--panel);
  border: 1px solid #26263a;
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s;
}
.ep-card:hover { transform: translateY(-5px); border-color: var(--blue); }
.ep-num {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.ep-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.ep-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; display: flex; gap: 16px; }
.ep-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ep-play {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 700; font-size: 0.9rem;
}
.ep-play:hover { color: var(--red); }
.ep-loading { color: var(--muted); grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.ep-loading i { color: var(--blue); }
.ep-cover {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 12px; margin-bottom: 14px; background: var(--black);
}

/* ---------- Hosts ---------- */
.hosts { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.host-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid #26263a;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.host-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
}
.host-card.cabe::before { background: var(--red); }
.host-card.rafa::before { background: var(--blue); }
.host-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: #fff; margin: 0 auto 16px;
}
.host-card.cabe .host-avatar { background: var(--red); }
.host-card.rafa .host-avatar { background: var(--blue); }
.host-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.host-role { color: var(--muted); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.host-card p { color: var(--muted); }

/* ---------- Message / Support ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.card {
  background: var(--panel);
  border: 1px solid #26263a;
  border-radius: var(--radius);
  padding: 30px;
}
.card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.card p.muted { color: var(--muted); margin-bottom: 20px; }

label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid #33334a;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { resize: vertical; min-height: 120px; }
.form-msg { font-size: 0.9rem; margin-top: 6px; min-height: 20px; }
.form-msg.ok { color: #2ecc71; }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}
.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

.support-inner { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.support-icons { display: flex; gap: 16px; font-size: 1.6rem; color: var(--red); margin-bottom: 6px; }
.support-btns { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.btn-full { justify-content: center; width: 100%; }
.btn-apoiase { background: #16c47f; color: #04231a; }
.btn-apoiase:hover { background: #10a869; }

/* ---------- Pix Styles ---------- */
.pix-generator {
    margin-bottom: 20px;
}
.pix-result {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--panel-2);
    border: 1px dashed var(--blue);
    border-radius: var(--radius);
    text-align: center;
}
.pix-result.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.qr-code-box {
    margin: 1rem auto;
    padding: 1rem;
    background: white;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.copy-box {
    display: flex;
    margin-top: 1rem;
    background: var(--black);
    border: 1px solid #33334a;
    border-radius: 10px;
    overflow: hidden;
}
.copy-box input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    margin-bottom: 0;
    border-radius: 0;
}
.copy-box button {
    border: none;
    background: var(--blue);
    color: white;
    padding: 0 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.copy-box button:hover {
    background: var(--blue-dark);
}

/* ---------- Editor Override ---------- */
.ql-container {
    height: 250px;
    font-size: 1rem;
    background: var(--black);
    border-radius: 0 0 10px 10px;
    border-color: #33334a !important;
    color: var(--text);
}
.ql-toolbar {
    background: var(--panel-2);
    border-radius: 10px 10px 0 0;
    border-color: #33334a !important;
}
.ql-snow .ql-stroke {
    stroke: var(--text) !important;
}
.ql-snow .ql-fill {
    fill: var(--text) !important;
}

/* ---------- Footer ---------- */
footer {
  border-top: 2px solid var(--blue);
  padding: 34px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-socials { display: flex; justify-content: center; gap: 18px; font-size: 1.4rem; margin-bottom: 16px; }
.footer-socials a { color: var(--muted); transition: color 0.2s, transform 0.2s; }
.footer-socials a:hover { color: var(--red); transform: translateY(-3px); }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--red);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: stretch;
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 2px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.bottom-nav a i { font-size: 1.15rem; }
.bottom-nav a.active, .bottom-nav a:active { color: var(--blue); }
.bottom-nav a.active { background: rgba(29,111,225,0.12); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hosts, .split { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--panel);
    padding: 20px;
    gap: 16px;
    border-bottom: 2px solid var(--red);
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: none; }
  .bottom-nav { display: flex; }
  footer { padding-bottom: calc(34px + 70px + env(safe-area-inset-bottom)); }
}

/* ---------- Admin Styles ---------- */
.admin-header {
    background-color: var(--panel-2);
    color: var(--text);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--red);
}
.admin-header a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.admin-header a:hover {
    color: var(--blue);
}
.admin-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}
@media(min-width: 992px) {
    .admin-container {
        grid-template-columns: 1fr 2fr;
    }
}
.message-card {
    background: var(--panel);
    border: 1px solid #33334a;
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
}
.message-meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 12px;
}
.message-content {
    background: var(--black);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--blue);
}
.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}
.badge-anon {
    background-color: var(--red);
    color: white;
}
.badge-public {
    background-color: var(--blue);
    color: white;
}
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- GLOBAL PLAYER --- */
.global-player {
    position: fixed;
    bottom: -100px; /* Hidden by default */
    left: 0;
    width: 100%;
    background: #121212;
    border-top: 1px solid #282828;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    z-index: 1000;
    transition: bottom 0.3s ease;
}
.global-player.active {
    bottom: 0;
}
.gp-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}
#gp-cover {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
}
.gp-text h4 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.gp-text p {
    color: #b3b3b3;
    margin: 0;
    font-size: 0.8rem;
}
.gp-controls {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#gp-playpause {
    background: var(--red);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}
#gp-playpause:hover {
    transform: scale(1.05);
}
.gp-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    margin-top: 8px;
}
.gp-time {
    color: #b3b3b3;
    font-size: 0.75rem;
    min-width: 35px;
}
#gp-progress-container {
    width: 100%; height: 10px; /* Thicker */
    background: #444; border-radius: 5px;
    cursor: pointer; position: relative; overflow: hidden;
}
#gp-progress-bar {
    height: 100%; width: 0%;
    background: var(--red); border-radius: 5px;
    position: relative;
    transition: width 0.1s linear;
}
@keyframes loadingPulse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}
.loading-pulse::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0; width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: loadingPulse 1.5s infinite linear;
}
.gp-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
#gp-close {
    background: transparent;
    border: none;
    color: #b3b3b3;
    font-size: 1.2rem;
    cursor: pointer;
}
#gp-close:hover {
    color: #fff;
}

@media (max-width: 768px) {
    body { padding-bottom: 250px; }
    .global-player {
        bottom: -200px;
        flex-direction: column;
        padding: 10px 15px;
        gap: 12px;
        align-items: stretch;
    }
    .global-player.active {
        bottom: 60px; /* Above mobile bottom nav */
    }
    .gp-info {
        width: 100%;
        gap: 10px;
    }
    #gp-cover {
        width: 40px;
        height: 40px;
    }
    .gp-text h4 {
        max-width: 200px;
        font-size: 0.9rem;
    }
    .gp-text p {
        font-size: 0.75rem;
    }
    .gp-controls {
        width: 100%;
    }
    .gp-progress-wrapper {
        margin-top: 0;
    }
    .gp-actions {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin-top: 5px;
    }
}


/* --- EPISODE PAGE --- */
.episode-header {
    display: flex; gap: 30px; margin-bottom: 40px;
    background: var(--panel); border: 1px solid #33334a;
    border-radius: var(--radius); padding: 30px;
    align-items: flex-start;
}
.episode-header img {
    width: 250px; height: 250px; object-fit: cover; border-radius: 12px;
}
.episode-details {
    flex: 1;
}
.episode-details h1 { font-size: 2.2rem; margin-bottom: 10px; color: var(--red); }
.episode-details .meta { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
.episode-details .desc { line-height: 1.7; margin-bottom: 20px; color: var(--text); }
.episode-details .desc a { color: var(--blue); }
.audio-player { width: 100%; margin-top: 20px; }

.comments-section {
    background: var(--panel-2); padding: 30px; border-radius: var(--radius);
    border: 1px solid #33334a;
}
.comment-card {
    background: var(--black); padding: 15px 20px; border-radius: 10px;
    margin-bottom: 15px; border-left: 3px solid var(--blue);
}
.comment-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; }
.comment-author { font-weight: bold; color: var(--text); }
.comment-date { color: var(--muted); }
.comment-body { color: #d0d0da; line-height: 1.5; }

@media (max-width: 768px) {
    .episode-header { flex-direction: column; align-items: center; text-align: left; }
    .episode-header img { width: 100%; height: auto; aspect-ratio: 1/1; }
}



/* --- LETTER MODAL --- */
.letter-modal {
    background-image: url("../../uploads/img/paperTexture.webp");
    background-size: cover;
    background-position: center;
    color: #222;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    max-width: 600px;
    font-family: "Georgia", serif;
    padding: 40px;
}

.letter-modal .modal-close {
    color: #222;
}
.letter-modal .modal-close:hover {
    color: #8b0000;
}
.letter-title {
    color: #8b0000;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 5px;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 10px;
}
.letter-muted {
    color: #444;
    font-style: italic;
    margin-bottom: 25px;
}
.letter-label {
    color: #222;
    font-weight: bold;
    font-family: "Courier New", Courier, monospace;
    margin-top: 15px;
}
.letter-input {
    background: transparent;
    border: none;
    border-bottom: 1px dashed #666;
    color: #111;
    border-radius: 0;
    padding-left: 0;
    font-family: "Georgia", serif;
    font-size: 1.1rem;
}
.letter-input:focus {
    background: rgba(255,255,255,0.4);
    outline: none;
    border-bottom: 1px solid #8b0000;
}
.letter-input::placeholder {
    color: #777;
    font-style: italic;
}
.letter-editor {
    background: rgba(255,255,255,0.4);
    border: 1px dashed #666 !important;
    min-height: 150px;
    margin-top: 5px;
}
.letter-modal .ql-toolbar.ql-snow {
    border: 1px dashed #666;
    background: rgba(255,255,255,0.5);
    border-bottom: none;
}
.letter-modal .ql-editor {
    color: #111;
    font-family: "Georgia", serif;
    font-size: 1.1rem;
}
.letter-checkbox input[type="checkbox"] {
    accent-color: #8b0000;
}


/* --- MODAL --- */
.modal-overlay {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center; align-items: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--panel);
    border: 1px solid #33334a;
    border-radius: var(--radius);
    padding: 30px;
    max-width: 400px; width: 100%;
    position: relative;
}
.modal-close {
    position: absolute; top: 15px; right: 15px;
    background: transparent; border: none;
    color: var(--muted); font-size: 1.5rem; cursor: pointer;
}
.modal-close:hover { color: var(--red); }

/* --- SUPPORT BANNER --- */
.support-banner {
    display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
    padding: 40px 0; border-top: 1px solid #26263a; border-bottom: 1px solid #26263a;
    margin-bottom: 60px;
}

