/* ===============================
   GLOBAL
   =============================== */

:root {
    --theme-bg: #05060a;
    --theme-primary: #ff4081;   /* main buttons */
    --theme-secondary: #2196f3; /* secondary buttons */
    --text-main: #ffffff;
    --text-muted: #b5b7c0;
    --border-soft: rgba(255,255,255,0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


a::after,
a::before {
  content: none !important;
  display: none !important;
}

a {
  -webkit-tap-highlight-color: transparent;
}


/* ===============================
   PUBLIC SMARTLINK PAGE
   =============================== */

body.public-body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1a1a2e 0%, #05060a 60%, #02030a 100%);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    position: relative;
    overflow-x: hidden;
}

.page-bg-blur {
    position: fixed;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(24px);
    opacity: 0.2;
    z-index: 0;
    transform: scale(1.1);
}

.public-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: rgba(5, 6, 10, 0.92);
    border-radius: 20px;
    padding: 20px 18px 22px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    text-align: center;
}

/* ---- HERO COVER IMAGE ---- */
/* This will handle a plain <img> at the top of the song page */

.public-box > img:first-of-type {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16 / 9;   /* rectangle like a video */
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto 14px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.7);
}

/* If you use a wrapper <div class="cover-wrapper"><img ...></div>, this keeps it rectangular too */

.cover-wrapper {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: 0 auto 14px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.7);
    padding-top: 56.25%; /* 16:9 ratio */
}

.cover-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Video block ---- */

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    margin: 0 auto 12px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.7);
}

.video-embed,
.cover-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

/* ---- Titles ---- */

.public-box h1 {
    margin: 8px 0 4px;
    font-size: 1.6rem;
    letter-spacing: 0.03em;
}

.public-box h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700; /* bold artist name */
    color: #ffffff;
}

.description {
    margin: 0 0 12px;
    font-size: 0.93rem;
    line-height: 1.4;
    color: var(--text-muted);
}

/* ---- Audio player ---- */

.audio-player {
    margin: 10px 0 16px;
}

.audio-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.audio-player audio {
    width: 100%;
    max-width: 360px;
}

/* ---- Main stream buttons ---- */

.buttons {
    margin: 8px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch; /* full-width buttons */
}

.btn {
    display: block;
    width: 100%;
    max-width: 420px;              /* keeps it from stretching too wide */
    margin: 0 auto 8px;            /* centered, with a little space below */
    text-align: center;
    padding: 10px 12px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: var(--theme-primary);
    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
    transition: transform 0.08s ease-out,
                box-shadow 0.08s ease-out,
                background 0.12s ease-out,
                opacity 0.12s ease-out;
}

.btn {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}



.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.55);
    opacity: 0.98;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.btn.secondary {
    background: var(--theme-secondary);
}

/* ---- Buy / Shop ---- */

.buy-section {
    margin: 14px 0 8px;
}

.buy-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.buy-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ---- Download section ---- */

.download-section {
    margin: 10px 0 10px;
}

.gate-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* ===== Side panel layout ===== */
.page-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

.page-layout.has-side {
  justify-content: center;
}

.page-layout.has-side .public-box {
  max-width: 480px; /* keep your current look */
}

.side-panel {
  width: 360px;
  max-width: 40vw;
  background: rgba(5, 6, 10, 0.92);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
}

.side-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.side-click { display: block; text-decoration: none; }

.page-layout.has-side { display: flex; gap: 24px; align-items: flex-start; }
.page-layout.has-side .side-panel { order: 1; }
.page-layout.has-side .public-box { order: 2; }


/* Side panel video wrapper: default portrait, JS will adjust */
.side-panel .video-wrapper{
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 9 / 16; /* default until JS decides */
  background: rgba(0,0,0,0.35);
}

.side-panel .video-wrapper.is-landscape{ aspect-ratio: 16 / 9; }
.side-panel .video-wrapper.is-square{ aspect-ratio: 1 / 1; }

.side-panel video,
.side-panel iframe{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Controls nearly invisible until hover */
@media (hover:hover) {
  .side-panel video::-webkit-media-controls-panel {
    opacity: 0.15;
    transition: opacity 0.25s ease;
  }

  .side-panel .video-wrapper:hover video::-webkit-media-controls-panel {
    opacity: 1;
  }
}


/* Mobile: stack */
@media (max-width: 900px) {
  .page-layout { flex-direction: column; align-items: center; }
  .side-panel { width: 100%; max-width: 480px; }
}


/* ---- Socials / Connect ---- */

.socials {
    margin: 14px 0 10px;
}

.socials-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.socials-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    transition: background 0.12s ease-out, border-color 0.12s ease-out;
}

.social-link:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
}

/* ---- Email signup ---- */

.signup-section {
    margin: 14px 0 10px;
    padding: 10px 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(8, 10, 20, 0.96);
}

.signup-title {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.signup-message {
    font-size: 0.8rem;
    color: #7be188;
    margin-bottom: 6px;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.signup-form input[type="email"] {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(3,3,8,0.9);
    color: var(--text-main);
    font-size: 0.9rem;
}

.signup-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.4);
}

.signup-form .btn.secondary {
    background-color: var(--btn-email);
    /* rest of your styles can stay the same */
}


/* ---- Ads ---- */

.ad-section {
    margin: 12px 0 10px;
    padding: 8px 10px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(12, 14, 24, 0.96);
}

.ad-section-top {
    margin-top: 10px;
    margin-bottom: 10px;
}

.ad-section-bottom {
    margin-top: 12px;
    margin-bottom: 6px;
}

.ad-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.ad-media {
    width: 100%;
}

.ad-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}

.ad-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.ad-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.ad-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.ad-click {
    text-decoration: none;
    color: inherit;
}

/* ---- Footer (smartlink) ---- */

.footer-note {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* FAIMUSIC.COM link – always white */

.footer-note a,
.footer-note a:visited,
.artist-footer a,
.artist-footer a:visited,
.hub-footer a,
.hub-footer a:visited {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.footer-note a:hover,
.artist-footer a:hover,
.hub-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Direct match on faimusic.com URL just in case */

a[href*="faimusic.com"],
a[href*="FAIMUSIC.COM"] {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

a[href*="faimusic.com"]:hover,
a[href*="FAIMUSIC.COM"]:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===============================
   ARTIST HUB & ARTIST PAGES
   =============================== */

body.artist-body {
    min-height: 100vh;
    background: #05060a;
    color: var(--text-main);
    margin: 0;
    padding: 20px 12px 24px;
}

.artist-container {
    max-width: 1000px;
    margin: 0 auto;
}

.artist-container h1 {
    text-align: center;
    font-size: 1.6rem;
    margin: 0 0 16px;
}

/* Artist hub grid */

.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.artist-card {
    background: #090b16;
    border-radius: 16px;
    padding: 10px 10px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 24px rgba(0,0,0,0.55);
    text-align: center;
}

/* Artist image in card – SQUARE album cover, but not insane */

.artist-card img {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto 8px;
}

.artist-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

body.artist-body .artist-meta {
    font-size: 0.9rem;
    color: #b5b7c0;           /* or whatever muted color you’re using */
    margin: 4px auto 6px;     /* tighter top/bottom */
    max-width: 260px;
}


/* Artist card links – stay white, no purple/red */

.artist-card a,
.artist-card a:visited {
    color: #ffffff;
    text-decoration: none;
}

.artist-card a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Song grid inside single artist page */

.song-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.song-card {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 6px 8px 8px;     /* smaller top padding */
    text-align: center;
}


.song-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.song-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Optional hero image on artist page */

.artist-hero {
    max-width: 280px;
    margin: 0 auto 8px;       /* was larger before */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.7);
}


.artist-hero img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.artist-footer,
.hub-footer {
    margin-top: 4px;               /* was 16px */
    padding-top: 4px;              /* was 10px */
    border-top: none;              /* remove the line */
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}


/* ===============================
   ADMIN (LOGIN + PANEL)
   =============================== */

body.admin-body {
    min-height: 100vh;
    background: #05060a;
    color: var(--text-main);
    margin: 0;
    padding: 0;
}

/* Login box */

.admin-box {
    max-width: 380px;
    margin: 80px auto 40px;
    padding: 22px 20px 20px;
    background: #0c0f1d;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-box h1 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    text-align: center;
}

.admin-box h2 {
    margin: 0 0 14px;
    font-size: 1rem;
    text-align: center;
    color: var(--text-muted);
}

.admin-box label {
    display: block;
    font-size: 0.9rem;
    margin: 10px 0 4px;
}

.admin-box input[type="password"],
.admin-box input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: #050713;
    color: var(--text-main);
}

.admin-box button {
    margin-top: 12px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 999px;
    border: none;
    background: var(--theme-primary);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

/* Header */

.admin-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #080a14;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-header h1 {
    margin: 0;
    font-size: 1.1rem;
}

.admin-header a {
    color: #b7c0ff;
    text-decoration: none;
    font-size: 0.85rem;
}

.admin-header a:hover {
    text-decoration: underline;
}

/* Admin content */

.admin-content {
    padding: 16px 18px 30px;
}

.alert {
    background: #27121a;
    border: 1px solid #ff4b6a;
    color: #ffbac6;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* Layout */

.admin-flex {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.admin-form {
    flex: 3;
    background: #090b16;
    border-radius: 16px;
    padding: 14px 14px 18px;
    border: 1px solid rgba(255,255,255,0.06);
}

.admin-list {
    flex: 2;
    background: #090b16;
    border-radius: 16px;
    padding: 14px 14px 18px;
    border: 1px solid rgba(255,255,255,0.06);
    max-height: 80vh;
    overflow: auto;
}

.admin-form h2,
.admin-list h2 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.admin-divider {
    margin: 14px 0 10px;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-form label {
    display: block;
    font-size: 0.86rem;
    margin: 8px 0 3px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin: 6px 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 3px 0 6px;
}

/* Inputs / selects / textareas */

.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="password"],
.admin-form input[type="number"],
admin-form input[type="date"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    background: #050713;
    color: var(--text-main);
    font-size: 0.9rem;
}

.admin-form textarea {
    min-height: 60px;
    resize: vertical;
}

/* Ad custom days: white box, black text */
#ad_custom_days {
    background-color: #ffffff;
    color: #000000;
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 120px; /* keeps it short and neat */
    box-sizing: border-box;
}


/* Color pickers: small, not stretched */

.admin-form input[type="color"] {
    width: 80px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    cursor: pointer;
}

/* Buttons */

.admin-form button[type="submit"],
.admin-form button {
    margin-top: 12px;
    padding: 9px 14px;
    border-radius: 999px;
    border: none;
    background: var(--theme-primary);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

/* Links table */

.admin-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-list th,
.admin-list td {
    padding: 6px 5px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: left;
}

.admin-list th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.admin-list a {
    color: #9bb3ff;
    text-decoration: none;
}

.admin-list a:hover {
    text-decoration: underline;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 900px) {
    .admin-flex {
        flex-direction: column;
    }

    .admin-list {
        max-height: none;
    }
}

@media (max-width: 600px) {
    .public-box {
        padding: 18px 14px 20px;
        border-radius: 18px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
/* ===============================
   ARTIST SONG LIST FINE-TUNING
   =============================== */

/* Make the song grid not stretch edge-to-edge */
.song-grid {
    max-width: 480px;
    margin: 16px auto 0;  /* center it under the picture */
}

/* Center text inside each song box */
.song-card {
    text-align: center;
}

/* Make song title links white (no purple) */
.song-card-title a,
.song-card-title a:visited {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

/* On hover, still white, just underlined */
.song-card-title a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Center "Single" text inside the box */
.song-card-meta {
    text-align: center;
}

/* ===============================
   UNIFORM CARDS: ARTIST & SONG
   =============================== */

/* Center and limit width of both grids */
.artist-grid,
.song-grid {
    max-width: 480px;
    margin: 16px auto 0;
}

/* Make artist cards and song cards use the same box style */
.artist-card,
.song-card {
    background: #090b16;
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 24px rgba(0,0,0,0.55);
    text-align: center;
}

/* Artist image stays square but centered inside the card */
.artist-card img {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto 8px;
}

/* Song title link: white, no purple */
.song-card-title a,
.song-card-title a:visited {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

/* Hover state: still white, just underlined */
.song-card-title a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Center the meta text like "Single" */
.song-card-meta {
    text-align: center;
}

/* ===============================
   FINAL TWEAKS: CARD SIZE + FOOTER
   =============================== */

/* Make both artist cards and song cards the same width
   and not huge. This keeps them close to the cover size. */
.artist-grid,
.song-grid {
    max-width: 1000px;
    margin: 16px auto 0; /* center under the heading/image */
}

/* Artist card (hub) and song card (artist page) share the same box */
.artist-card,
.song-card {
    max-width: 360px;
    margin: 0 auto;
    padding: 10px 14px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.55);
    background: #090b16;
}

/* Keep the artist cover nicely centered inside the card */
.artist-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    margin: 0 auto 8px;
}

/* Song title link: white, no purple */
.song-card-title a,
.song-card-title a:visited {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.song-card-title a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Center the "Single" text */
.song-card-meta {
    text-align: center;
}

/* Remove the long horizontal line under the cards */
.hub-footer,
.artist-footer {
    border-top: none;
    margin-top: 18px;
}

/* =====================================
   ARTIST PAGE: ONE CARD (EXCEPT HEADER)
   ===================================== */

/* PHOTO + BIO + SONGS all inside one card */
.artist-container-inner {
    max-width: 520px;                 /* tighter card */
    margin: 0 auto 16px;
    background: #090b16;
    border-radius: 24px;
    padding: 16px 18px 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
}


/* Keep page background dark */
body.artist-body {
    background: #05060a;
}

/* Hero image INSIDE the card */
body.artist-body .artist-hero {
    max-width: 100%;
    margin: 0 auto 10px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.7);
}

body.artist-body .artist-hero img {
    display: block;
    width: 100%;
    height: auto;
}


/* Remove mini-box from the song row */
body.artist-body .song-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 6px 10px;
    margin: 0;
    text-align: left;
}

/* Admin form: dark fill-in fields by default */
body.admin-body .admin-form input[type="text"],
body.admin-body .admin-form input[type="url"],
body.admin-body .admin-form input[type="email"],
body.admin-body .admin-form input[type="number"],
body.admin-body .admin-form textarea {
    background: #050713;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.18);
}

/* Short, compact controls for ad fields */
body.admin-body .admin-form .short-field {
    width: 110px;
    max-width: 110px;
    background: #ffffff;
    color: #000000;
}




.song-card-cover img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: block;
}

.song-card-text {
    display: flex;
    flex-direction: column;
}

.song-card-title {
    font-size: 0.96rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.song-card-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}



/* Song title link */
body.artist-body .song-card-title a,
body.artist-body .song-card-title a:visited {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

/* Center "Single" */
body.artist-body .song-card-meta {
    text-align: center;
}

/* Desktop layout: wider artist card + song grid like hub */
@media (min-width: 900px) {
    /* Let the artist card be wider on desktop */
    .artist-container-inner {
        max-width: 900px;
    }

    /* Inside artist page, show songs in rows like the hub */
    body.artist-body .song-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.copy-url-link {
    font-size: 0.78rem;
    margin-left: 6px;
    cursor: pointer;
    color: #b7c0ff;
}

.copy-url-link:hover {
    text-decoration: underline;
}

}

.copy-url-link {
    font-size: 0.8rem;
    margin-left: 6px;
    cursor: pointer;
    color: #ffffff;           /* make it white like FAIMUSIC.COM */
    text-decoration: none;
}

.copy-url-link:hover {
    text-decoration: underline;
}



/* --- Side panel layout --- */
.page-layout{
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 16px;
  box-sizing: border-box;
}

.page-layout.has-side .public-box{
  margin: 0;
}

.side-panel{
  width: 360px;
  max-width: 42vw;
  position: sticky;
  top: 24px;
}

.side-panel .video-wrapper{
  margin: 0;
}

.side-image{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.side-click{
  display: block;
  text-decoration: none;
}

.page-layout.side-left{
  flex-direction: row;
}

.page-layout.side-right{
  flex-direction: row;
}

/* On smaller screens, stack */
@media (max-width: 900px){
  .page-layout{
    flex-direction: column;
    align-items: center;
  }
  .side-panel{
    width: min(420px, 100%);
    max-width: 100%;
    position: static;
    order: 2;
  }
}

/* Email capture button (only used in the signup form) */
.btn.email-signup{
  background: var(--btn-email, #2196f3);
  border: none;
  color: #fff;
}

@import url("style_sidepanel_patch_v2.css");

.side-click {
  display: block;
  position: relative;
  text-decoration: none !important;
  color: transparent !important;
  outline: none;
}

/* Prevent browser link styling */
.side-click:link,
.side-click:visited,
.side-click:hover,
.side-click:active {
  color: transparent !important;
  text-decoration: none !important;
}


.side-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  z-index: 5;
  pointer-events: none; /* allows video controls to still work */
}

/* =========================
   MOBILE FIXES (STACK LAYOUT)
   ========================= */
@media (max-width: 900px) {
  /* Stop the skinny two-column squeeze */
  .page-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 12px;
  }

  /* Make the main smartlink card use the screen width */
  .public-box {
    width: 100%;
    max-width: 520px;   /* keeps it nice on big phones too */
    margin: 0 auto;
  }

  /* Side panel becomes a smaller block so it doesn't steal width */
  .side-panel {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  /* If your side panel was sticky on desktop, disable it on mobile */
  .side-panel {
    position: relative !important;
    top: auto !important;
  }

  /* Make side panel media not huge */
  .side-panel .video-wrapper,
  .side-panel .cover-wrapper {
    width: 100%;
    max-height: 340px;
    overflow: hidden;
    border-radius: 18px;
  }
}

/* =========================
   RESPONSIVE VIDEO EMBEDS
   (YouTube iframe + MP4 video)
   ========================= */
.video-wrapper,
.ad-video-wrapper {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}

/* YouTube iframe fills container cleanly */
.video-embed,
.ad-video {
  width: 100%;
  height: 100%;
  display: block;
}

/* If you can use aspect-ratio (modern browsers), this is gold */
.video-wrapper { aspect-ratio: 16 / 9; }
.side-panel .video-wrapper { aspect-ratio: 9 / 16; } /* side panel often vertical */

/* MP4 <video> should also fill and crop nicely */
.cover-video,
.ad-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
