/* djpunjab responsive layout: loads after each page's inline styles and overrides them */
:root {
  --site-width: 1040px;
  --page-bg: #eceff3;
  --card-bg: #ffffff;
  --text: #3d3d3d;
  --muted: #777777;
  --line: #ececec;
  --blue: #2288ee;
  --blue-dark: #0063c9;
  --gold: #E4A915;
  --dark: #030303;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--page-bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0 auto; max-width: var(--site-width); min-height: 100vh;
  background: var(--card-bg); color: var(--text);
  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5;
  overflow-x: hidden;
}
body, div, td, p, form, ol, a:link, a:active { font-size: 14px; }

img, audio, video, iframe { max-width: 100%; }
h1, h2, h3, h4, p, a, span { overflow-wrap: anywhere; }

/* ---------- top bar ---------- */
div.headertop {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: auto; min-height: 52px; line-height: 1.3; padding: 6px 12px;
  font-size: 16px; letter-spacing: .3px;
  position: sticky; top: 0; z-index: 50;
}
div.headertop a { flex: none; }
.button-upload {
  float: none; margin: 0; padding: 9px 14px; border-radius: 4px;
  font-size: 14px; font-weight: bold; line-height: 1.2;
}

/* ---------- breadcrumb ---------- */
.classol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px;
  margin: 0; padding: 10px 12px; color: var(--muted);
}
.classol li { float: none; padding: 0; }
/* the markup wraps the list in <p>, which browsers split into empty <p>s, then spaces it with <br>s */
body > p:empty { display: none; }
.classol + p:empty + br, .classol + p:empty + br + br { display: none; }

/* ---------- search ---------- */
.searchbar { height: auto; min-height: 56px; padding: 4px 8px; }
/* Google's search widget is built for browser defaults: undo the site-wide resets inside it */
.searchbar *, .searchbar *::before, .searchbar *::after,
.gsc-results-wrapper-overlay *, .gsc-completion-container * {
  box-sizing: content-box; overflow-wrap: normal; line-height: normal;
}
.searchbar table, .searchbar td, .searchbar div, .searchbar form { font-size: 13px; }
.searchbar .gsc-control-cse { padding: 6px 0; border: 0; background: transparent; }
.searchbar input.gsc-input { height: auto !important; margin: 0 !important; font-size: 15px !important; }
.searchbar .gsc-search-button-v2 { padding: 10px 16px; margin-left: 6px; border-radius: 4px; }

/* ---------- section headings ---------- */
div.header {
  margin: 8px 0 0; padding: 10px 12px; border-left: 0; border-right: 0;
}
.header h1, .header h2 { font-size: 15px; line-height: 1.4; }
body > h2, body > h3, body > h4 {
  margin: 14px 12px 6px; font-size: 13px; line-height: 1.5; color: var(--muted); font-weight: normal;
}
body > h2 { font-size: 15px; color: var(--text); font-weight: bold; }
body > p { margin: 8px 12px; }
body > hr, .touch-new > hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

/* ---------- song lists ---------- */
.touch-new { padding: 4px 8px; }
.touch-new > br { display: none; }
.touch-new p {
  margin: 0; padding: 2px 8px; border-bottom: 1px solid var(--line);
  border-radius: 4px; font-size: 14px;
}
.touch-new p a { padding: 11px 0; font-size: 14px; line-height: 1.35; }
.touch-new p .style1 { color: var(--muted); }

/* ---------- song page ---------- */
.cont-a { padding: 12px; overflow: hidden; }
.album_img { float: left; margin: 0 14px 8px 0; }
.album_img img {
  width: 220px; height: 220px; object-fit: cover; display: block;
  border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.cont-a > p { margin: 4px 0; font-size: 14px; line-height: 1.6; }
.socials-site { margin-top: 6px; }
.socials-site a, .socials-site a:link, .socials-site a:visited {
  display: inline-block; padding: 9px 14px; border-radius: 4px; color: #fff; font-weight: bold;
}

/* download links become buttons */
.header + .touch-new { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
.header + .touch-new p { flex: 1 1 180px; padding: 0; border: 0; background: none; }
.header + .touch-new p a, .header + .touch-new p a:visited {
  display: block; text-align: center; padding: 11px 10px; border-radius: 4px;
  background: var(--blue); color: #fff; font-weight: bold;
}
.header + .touch-new p a:hover { background: var(--blue-dark); }
.header + .touch-new p:hover { background: none; }

body > p.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 0 12px; }
.share a { line-height: 0; }
.share br { display: none; }
.shareicon { width: 36px; height: 36px; }

.djp-inline-audio { padding: 0 12px; }
.djp-play.djp-big { margin: 14px auto; }

/* ---------- footer ---------- */
div.headerbottom { height: auto; line-height: 1.4; padding: 10px; margin-top: 12px; }
p.dj { margin: 12px; }

/* ---------- phones ---------- */
@media (max-width: 600px) {
  div.headertop { font-size: 14px; padding: 6px 10px; }
  .button-upload { padding: 8px 10px; font-size: 13px; }

  .album_img { float: none; margin: 0 auto 12px; text-align: center; }
  .album_img img { width: min(78vw, 300px); height: min(78vw, 300px); margin: 0 auto; }
  .cont-a > p { font-size: 15px; }

  .touch-new p a { padding: 12px 0; font-size: 15px; }
  .djp-play { width: 36px; height: 36px; font-size: 13px; }

  body > h3, body > h4 { font-size: 12px; }
}

/* ---------- tablets and desktop ---------- */
@media (min-width: 768px) {
  body { box-shadow: 0 0 24px rgba(0,0,0,.08); }
  body.djp-has-player { padding-bottom: 92px; }

  div.headertop { padding: 8px 20px; font-size: 18px; }
  .classol, body > p, body > h2, body > h3, body > h4 { margin-left: 20px; margin-right: 20px; }
  .classol { padding-left: 20px; padding-right: 20px; margin: 0; }
  div.header { padding: 12px 20px; }
  .searchbar { padding: 8px 20px; }
  .searchbar .gsc-control-cse { max-width: 640px; margin: 0 auto; }

  /* home and songs pages: two columns of songs */
  .touch-new:not(.header + .touch-new) {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 8px 20px;
  }
  .touch-new:not(.header + .touch-new) > hr { grid-column: 1 / -1; }
  .touch-new:not(.header + .touch-new) > p:not(.djp-row) { grid-column: 1 / -1; }

  .cont-a { padding: 20px; }
  .album_img { margin-right: 22px; }
  .album_img img { width: 260px; height: 260px; }
  .header + .touch-new, .share, .djp-inline-audio { padding-left: 20px; padding-right: 20px; }
}

@media (min-width: 1080px) {
  body { margin-top: 0; }
  .touch-new p:hover { background: #f4f8fd; }
}
