/* ─────────────────────────────────────────────
   Modern, responsive "table-like" framing
   ───────────────────────────────────────────── */
.mus-frame {
	border: 2px solid #cfcfcf;
	border-radius: 10px;
	background: #ffff33;	/* Lemon Yellow */
	padding: 12px;
	margin: 16px auto;		/* center horizontally */
	max-width: 860px;		
}

/* Specific to YouTube frame */
.mus-frame.youtube {
	max-width: 860px;   /* wide enough for 2×400px + gap */
}

.mus-frame-title {
	margin: 0 0 10px 0;
	font-size: 1.35rem;
	line-height: 1.2;
	text-align: center;
}

.mus-subframe {
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #ffff99;	/* Pastel Yellow */
	padding: 10px;
	margin: 10px 0;
}
.mus-subframe-title {
	margin: 0 0 8px 0;
	font-size: 1.05rem;
	text-align: center;
}

.mus-frame-title,
.mus-subframe-title {
	display: inline-block;
	background: #ffffcc;          /* subtle pale yellow */
	border: 2px solid #cfcfcf;
	border-radius: 6px;
	padding: 4px 10px;
	margin-bottom: 8px;
	text-align: center;
}

/* Videos */
.video-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;     /* keep videos centered as a group */
	margin: 0 auto;              /* center the grid block itself */
	max-width: 820px;            /* 2×400px + gap (prevents edge flush) */
}
.video {
	flex: 1 1 400px;             /* wants up to 400px */
	max-width: 400px;            /* never exceed 400px */
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 6px;
	display: flex;
	justify-content: center;     /* center iframe inside */
}
.video iframe {
	width: 100%;
	aspect-ratio: 4 / 3;         /* keeps ~300x240 ratio */
	border: 0;
}

/* Sites grid */
.sites-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px;
}

/* Special handling for two entries on one row [for OurStage + Last.fm row] */
.sites-grid.one-by-two {
	display: grid;
	grid-template-columns: 1fr 1fr;  /* force 2 equal halves */
	gap: 12px;
	justify-items: stretch;          /* cards stretch horizontally */
	align-items: stretch;            /* cards stretch vertically to equal height */
	margin-top: 16px;                /* add gap above this row */
}

.sites-grid.one-by-two .site-card {
	width: 100%;                     /* fill available width */
	display: flex;                   /* allow content to center */
	flex-direction: column;          /* keep img/link/text stacked */
	justify-content: center;         /* vertical centering inside */
}		

.site-card {
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.site-card.wide {
	grid-column: 1 / -1; /* span full width when needed */
}
.site-card img {
	max-width: 180px;
	height: auto;
	display: block;
	margin: 0 auto 8px;
}
.site-card .bracket-link {
	white-space: nowrap;
}

.note {
	font-size: 0.92rem;
	color: #444;
}

/* Bracketed links: span outside <a> */
.bracket-link {
    display: inline;             /* allow wrapping */
}

.bracket-link::before { content: "["; }
.bracket-link::after  { content: "]"; }

/* Links inside bracketed span */
.bracket-link a {
    display: inline;             
    text-decoration: none;       /* optional: remove underline */
    word-break: normal;          /* rely on <wbr> for breakpoints */
    overflow-wrap: normal;       /* rely on <wbr> */
}

/* Optional: reinforce wrapping on very narrow screens */
@media (max-width: 480px) {
    .bracket-link a {
        word-break: break-word;  /* in case browser needs fallback */
    }
}

/* Keep your nested-table look aligned-centered when used */
/*
.nested-table-parent { text-align: center; }
.nested-table { display: inline-table !important; width: auto !important; max-width: none !important; }
*/

/* Stack when truly narrow */
@media (max-width: 700px) {
	.mus-subframe .sites-grid.one-by-two {
		grid-template-columns: 1fr;
	}
}

/* When layout stacks (smaller screens), let frame shrink */
@media (max-width: 880px) {
	.mus-frame.youtube {
		max-width: 420px;   /* ~1 video + padding */
	}
}

/* ───────────────────────────────────────────────
   Audio Page Narrow-Screen Fix
   Prevent left-side clipping of text inside container-860
─────────────────────────────────────────────── */
@media (max-width: 700px) {

    /* Ensure main container allows full-width children */
    .container-860 {
        display: block !important;      /* prevent flex misalignment */
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 5px !important;   /* optional small padding */
        padding-right: 5px !important;
        overflow-x: visible !important; /* allow text to render fully */
        box-sizing: border-box !important;
    }

    /* Fix table inside container-860 */
    .container-860 table.nested-table,
    .container-860 table.nested-table td {
        display: block !important;      /* prevents inline/flex interference */
        width: 100% !important;         /* shrink to container width */
        max-width: 100% !important;
        margin: 0 auto !important;      /* center table if needed */
        padding-left: 0 !important;     /* remove inherited padding */
        text-align: left !important;    /* align text properly */
        white-space: normal !important; /* allow wrapping */
        word-break: break-word !important;
    }

    /* Fix links inside the table (e.g., CD or video links) */
    .container-860 table.nested-table td a {
        display: inline !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Optional: center any headings inside the table */
    .container-860 table.nested-table td h1,
    .container-860 table.nested-table td h3,
    .container-860 table.nested-table td h4 {
        text-align: center !important;
    }
}

