/* DM's Beatles - modern layout. Replaces css_main/css_disc/css_his/css_lyrc/css_other/css_pic. */

:root {
	--bg: #faf8f4;
	--surface: #ffffff;
	--text: #1c1c1e;
	--muted: #6b6b70;
	--line: #e7e3da;
	--accent: #b4232a;          /* default / home */
	--accent-soft: #f8e9ea;
	--link: #1b4f9c;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
}
body.sec-disc   { --accent: #1f7a4d; --accent-soft: #e3f3ea; }
body.sec-lyrics { --accent: #c4621a; --accent-soft: #fbece0; }
body.sec-hist   { --accent: #1f5fa8; --accent-soft: #e3edf9; }
body.sec-pics   { --accent: #8a5a2b; --accent-soft: #f3eadf; }
body.sec-more   { --accent: #7b3f86; --accent-soft: #f1e6f3; }

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #131316; --surface: #1c1c21; --text: #ececee; --muted: #a0a0a8;
		--line: #2c2c33; --link: #7fb0f0; --shadow: none;
	}
	body.sec-home   { --accent: #e0555c; --accent-soft: #2a1a1c; }
	body.sec-disc   { --accent: #4cc283; --accent-soft: #14261d; }
	body.sec-lyrics { --accent: #f0914a; --accent-soft: #2a1d12; }
	body.sec-hist   { --accent: #6aa7f0; --accent-soft: #14202f; }
	body.sec-pics   { --accent: #d1a26e; --accent-soft: #251d13; }
	body.sec-more   { --accent: #c58ad0; --accent-soft: #231727; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
}
body, table, tr, td, th, input, textarea, select, div { color: inherit; line-height: inherit; }
img { max-width: 100%; height: auto; }
a, a:link, a:visited { color: var(--link); }
a:hover { text-decoration: underline; }
a:active { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #111; color: #fff;
	border-bottom: 3px solid var(--accent);
}
.header-row { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand {
	font-size: 1.35rem; font-weight: 700; letter-spacing: .3px;
	color: #fff !important; text-decoration: none !important; white-space: nowrap;
}
.brand-mark { color: var(--accent); filter: brightness(1.35); }
.site-nav { display: flex; gap: 2px; flex: 1; }
.nav-group { position: relative; }
.nav-top {
	display: block; padding: 20px 12px; color: #ddd !important;
	text-decoration: none !important; font-size: .95rem; font-weight: 500;
}
.nav-group:hover .nav-top, .nav-group:focus-within .nav-top { color: #fff !important; background: #222; }
.nav-drop {
	display: none; position: absolute; top: 100%; left: 0; min-width: 190px;
	background: var(--surface); border: 1px solid var(--line); border-top: 0;
	border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.25);
	padding: 6px 0;
}
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop { display: block; }
.nav-drop a { display: block; padding: 8px 16px; color: var(--text) !important; text-decoration: none !important; font-size: .93rem; }
.nav-drop a:hover { background: var(--accent-soft); color: var(--accent) !important; }
.nav-years { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 6px 4px; }
.nav-years a { padding: 6px 10px; }
.site-search input {
	width: 190px; max-width: 100%; padding: 8px 14px; border-radius: 999px;
	border: 1px solid #333; background: #1d1d20; color: #fff; font: inherit; font-size: .9rem;
}
.site-search input::placeholder { color: #999; }
.site-search input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; margin-left: auto; padding: 6px 4px; }

/* ---------- Page ---------- */
.page { padding-top: 28px; padding-bottom: 40px; }
.page-title {
	font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.2; margin: 0 0 18px; font-weight: 700;
	padding-left: 14px; border-left: 5px solid var(--accent);
}
.content { min-height: 40vh; }

/* Legacy tables used as content blocks -> cards */
table { font-size: inherit; border-collapse: collapse; }
.table_all {
	width: 100%; margin: 0 0 18px; display: block;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); overflow: hidden;
}
.table_all > tbody, .table_all > thead { display: table; width: 100%; }
.table_all th {
	background: var(--accent-soft); color: var(--accent); text-align: left;
	padding: 10px 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
	border-bottom: 1px solid var(--line);
}
.table_all td { padding: 10px 16px; vertical-align: top; border-top: 1px solid var(--line); }
.table_all tr:first-child td { border-top: 0; }
.table_head { background: transparent; }
.table_row { background: transparent; vertical-align: top; }
tr.hovered:hover, tr.hover { background: var(--accent-soft); }

/* Plain tables inside cards (lists of albums, songs, etc.) */
.content table:not(.table_all) { max-width: 100%; }

/* ---------- Misc legacy classes ---------- */
.imgborder { border: 1px solid var(--line); border-radius: 4px; }
.navigation { padding: 0 0 16px; font-weight: 600; }
.nav_container { height: auto; overflow: hidden; }
.nav_pic {
	display: block; float: left; width: 110px; height: auto; margin: 0 8px 8px 0; padding: 6px;
	overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
	text-align: center; font-size: .85rem;
}
.nav_arrow {
	display: block; float: left; width: 28px; height: 100px; margin: 0 8px 8px 0;
	border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: center;
}
.content_title, .song_title, h3 { font-size: 1.5rem; font-weight: 600; margin: 0 0 .5em; line-height: 1.3; }
.buy, .red { color: var(--accent); font-weight: 700; }
.price { color: var(--accent); }
.disk_merchandise_images { float: right; background: transparent; text-align: right; }
.disk_merchandise_images a { padding-bottom: 1px; }
.disk_description { font-size: 1.05rem; margin: .3em 0 1em; }
.disk_song_credits, .ext_link_description { font-size: .9rem; line-height: 1.4; margin: .3em .3em .5em 2em; }
.comment { margin: .4em 0; font-size: .9rem; color: var(--muted); }
.content_song { font-size: 1rem; max-width: 720px; margin: 2em auto 3em; padding: 0 20px; }
.song_author_vocal { margin: 0 0 1.5em; font-style: italic; color: var(--muted); }
.song_credits { margin: 0 .2em .2em 1em; }

/* Forms */
input[type=text], input[type=password], input[type=email], input[type=search], textarea, select {
	border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text);
	padding: 7px 10px; font: inherit;
}
input[type=submit], input[type=button], button.btn {
	background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 8px 16px;
	font: inherit; font-weight: 600; cursor: pointer;
}
input[type=submit]:hover, input[type=button]:hover { filter: brightness(1.1); }

/* Tooltip (dhtmlgoodies) */
#dhtmlgoodies_tooltip {
	background: var(--surface); border: 1px solid var(--line); position: absolute; display: none;
	z-index: 20000; padding: 6px 8px; font-size: .8rem; line-height: 1.35; border-radius: 6px; box-shadow: var(--shadow);
}
#dhtmlgoodies_tooltipShadow { position: absolute; display: none; z-index: 10000; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-links a { margin-left: 16px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.site-nav, .site-search { display: none; width: 100%; }
	.site-nav.open { display: block; padding-bottom: 8px; }
	.site-nav.open ~ .site-search { display: block; padding-bottom: 12px; }
	.site-search input { width: 100%; }
	.nav-group { border-top: 1px solid #2a2a2a; }
	.nav-top { padding: 12px 4px; }
	.nav-drop { display: block; position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 12px; }
	.nav-drop a { color: #ccc !important; padding: 5px 4px; }
	.nav-drop a:hover { background: transparent; }
	.nav-years { grid-template-columns: repeat(4, 1fr); padding: 0; }
	.content table { max-width: 100%; }
	.table_all td, .table_all th { padding: 8px 12px; }
	.disk_merchandise_images { float: none; text-align: left; }
}

/* ---------- Home page ---------- */
.hero {
	display: flex; gap: 28px; align-items: center; margin-bottom: 22px; padding: 22px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-img { width: 300px; max-width: 38%; height: auto; border-radius: 8px; flex: none; }
.lead { font-size: 1.25rem; font-weight: 600; margin: 0 0 .6em; }
.feature-list { margin: 0; padding-left: 1.1em; }
.feature-list li { margin: .35em 0; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-bottom: 18px; }
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 18px;
}
.home-grid .card { margin-bottom: 0; }
.card h2 {
	margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent);
}
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 7px 0; border-top: 1px solid var(--line); }
.plain-list li:first-child { border-top: 0; padding-top: 0; }
.forum-boards { display: flex; flex-wrap: wrap; gap: 8px; }
.forum-boards img { border-radius: 6px; display: block; }
.muted { color: var(--muted); font-size: .9rem; }
.center { text-align: center; }
@media (max-width: 860px) {
	.hero { flex-direction: column; }
	.hero-img { max-width: 100%; width: 100%; }
}

input[type=reset] {
	background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px;
	padding: 8px 14px; font: inherit; cursor: pointer;
}
input[type=reset]:hover { color: var(--text); border-color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
