:root {
  --blue: #007bff;
  --bg: #e5e5e5;
  --white: #fff;
  --gray: #444;
  --light-gray: #f0f2f5;
  --green: #28a745;
  --border: #ddd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #ededed;
  color: #333;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: .2s; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* HEADER */
.header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); padding: 0 15px; box-shadow: 0 1px 4px rgba(0,0,0,.1);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; height: 60px;
}
.logo img { width: 192px; height: auto; display: block; }
.search-form { flex: 1; max-width: 500px; display: flex; margin: 0 20px; }
.search-box { display: flex; width: 100%; border-radius: 25px; overflow: hidden; background: #f0f0f0; border: 1px solid #ccc; }
.search-input { flex: 1; padding: 8px 15px; border: none; outline: none; background: transparent; }
.search-btn { background: var(--blue); border: none; color: #fff; padding: 0 15px; cursor: pointer; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-mobile {
  display: none; background: var(--light-gray); border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; justify-content: center;
  align-items: center; position: relative;
}
.btn-mobile svg { width: 24px; height: 24px; stroke: #333; fill: none; stroke-width: 2; transition: transform .3s ease, opacity .3s ease; position: absolute; }
.btn-menu-toggle .icon-menu { opacity: 1; transform: rotate(0); }
.btn-menu-toggle .icon-close { opacity: 0; transform: rotate(-90deg); }
.btn-menu-toggle.active .icon-menu { opacity: 0; transform: rotate(90deg); }
.btn-menu-toggle.active .icon-close { opacity: 1; transform: rotate(0); stroke: var(--blue); }

/* LAYOUT */
.wrapper { display: flex; max-width: 1200px; margin: 20px auto; padding: 0 15px; gap: 20px; flex: 1; width: 100%; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* SIDEBAR & NAV */
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.nav-item a { display: flex; align-items: center; gap: 12px; padding: 10px 15px; border-radius: 8px; font-weight: 500; color: var(--gray); }
.nav-item a:hover { background: var(--light-gray); color: var(--blue); }
.nav-item.active a { background: var(--blue); color: #fff; }
.nav-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* SIDE BOX */
.side-box { background: var(--white); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.05); margin-bottom: 20px; overflow: hidden; transition: box-shadow .2s ease; }
.side-box:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.side-bt { background: var(--blue); padding: 12px 18px; color: #fff; }
.side-bt h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.2px; }
.side-tags { list-style: none; margin: 0; padding: 12px 15px 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.side-tags li { margin: 0; }
.side-tags a {
  display: inline-flex; align-items: center; padding: 6px 10px; background: var(--light-gray);
  color: var(--gray); border-radius: 20px; font-size: 13px; font-weight: 500;
  transition: all .2s ease; border: 1px solid transparent; white-space: nowrap;
}
.side-tags a:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,123,255,.2); }
.side-tags a:active { transform: translateY(0); }
.side-tags a.active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }

/* CONTENT BLOCKS */
.sect, .full-page { background: var(--white); border-radius: 12px; margin-bottom: 20px; }
.sect { padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.full-page { padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.full-page h1, .sect > h1 { font-size: clamp(1.25rem, 4vw, 1.75rem); margin: 0 0 20px; line-height: 1.3; word-wrap: break-word; overflow-wrap: break-word; }
.sect > h1 { color: #333; font-weight: 800; }
.sect-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--blue); display: flex; align-items: center; gap: 10px; }
.sect-t { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--blue); }
.sect-t h2, .sect-t h3 { margin: 0; font-size: 1.25rem; font-weight: 700; color: #333; line-height: 1.4; }

/* INFO BLOCK */
.info-block { display: flex; gap: 25px; margin-bottom: 25px; align-items: flex-start; }
.info-image img { width: 200px; height: 200px; border-radius: 12px; object-fit: cover; display: block; box-shadow: 0 4px 10px rgba(0,0,0,.1); }
.info-right { flex: 1; min-width: 0; }
.info-list { list-style: none; padding: 0; margin: 0 0 20px; }
.info-list li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .95rem; }
.info-list svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 2; flex-shrink: 0; }
.info-label { color: var(--gray); margin-right: 2px; }
.info-value { font-weight: 600; color: #333; min-width: 0; overflow-wrap: break-word; }

/* PLAYER */
.main-track, .track-item {
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  background: #f8f9fa; padding: 12px; border-radius: 10px; margin-bottom: 10px;
  transition: .2s; border: 1px solid transparent; cursor: pointer;
}
.track-item { gap: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: default; }
.main-track:hover, .track-item:hover { background: #f1f3f5; border-color: #eee; }
.main-track.playing, .track-item.playing { background: #f0f7ff; border-color: #cce5ff; }

.track-play {
  width: 40px; height: 40px; min-width: 40px; background: var(--blue);
  border-radius: 50%; display: flex; justify-content: center; align-items: center;
  color: #fff; border: none; transition: .2s; flex-shrink: 0; cursor: pointer;
}
.track-item .track-play { width: 36px; height: 36px; min-width: 36px; }
.track-play svg { width: 16px; height: 16px; fill: currentColor; }
.track-item .track-play svg { width: 14px; height: 14px; }

.track-progress-container { flex-grow: 1; cursor: pointer; padding: 5px 0; touch-action: manipulation; }
.track-progress { height: 6px; background: #ddd; border-radius: 4px; position: relative; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--blue); transition: width .1s linear; }
.track-time { font-size: .85rem; color: var(--gray); min-width: 42px; text-align: right; }
.track-item .track-time { min-width: 40px; }

.track-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; cursor: pointer; }
.track-desc { display: flex; flex-direction: column; min-width: 0; flex: 1; cursor: pointer; overflow: hidden; }
.track-title { font-weight: 700; color: #333; font-size: .95rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s ease; }
.track-subtitle { color: var(--gray); font-size: .85rem; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; transition: opacity .2s ease; }
.track-desc:hover .track-title { color: var(--blue); }
.track-desc:hover .track-subtitle { opacity: 1; color: var(--blue); }

.download-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; padding: 12px 28px; border-radius: 30px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.download-btn:hover { background: #218838; }

.fcaption { background: #fcfcfc; border-left: 4px solid var(--blue); padding: 15px 20px; margin: 25px 0; font-size: 14px; color: #555; border-radius: 4px; line-height: 1.6; }
.fcaption strong { color: #333; font-weight: 600; }

/* FOOTER & UTILS */
.footer { background: var(--white); border-top: 1px solid var(--border); padding: 30px 20px; text-align: center; margin-top: auto; }
.footer-content { max-width: 1200px; margin: 0 auto; color: var(--gray); font-size: .9rem; }
.footer-links { margin-bottom: 10px; }
.footer-links a { margin: 0 10px; color: var(--blue); font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }
.overlay.active { display: block; }
.sidebar-tracks { min-width: 0; }
.speedbar { font-size: 14px; color: #007bff; margin-bottom: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* CLOUD TAGS */
.cloud-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
.cloud-tags span { display: inline-block; }
.cloud-tags a {
  display: inline-flex; align-items: center; padding: 10px 20px; background: var(--light-gray);
  color: var(--gray); border-radius: 30px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: all .3s ease;
}
.cloud-tags a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,123,255,.25); border-color: var(--blue); }
.clouds_xsmall a { font-size: 14px; opacity: .85; }
.clouds_small a   { font-size: 15px; }
.clouds_medium a  { font-size: 16px; border-color: #eee; }
.clouds_large a   { font-size: 18px; color: #222; }
.clouds_xlarge a  { font-size: 20px; color: #000; border: 1px solid #ddd; }
.sect .cloud-tags { justify-content: center; gap: 6px; }
.sect .cloud-tags a {
  font-size: 13px !important; padding: 6px 12px !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

/* TAGS PAGE */
.tags-page { background: var(--white); border-radius: 12px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,.08); margin-bottom: 20px; }
.tags-page .sub-title { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.tags-page .sub-title h1 {
  font-size: clamp(1.25rem, 4vw, 1.75rem); font-weight: 800; color: #333; margin: 0;
  display: flex; align-items: center; gap: 12px; line-height: 1.3; word-wrap: break-word; overflow-wrap: break-word;
}
.tags-page .sub-title h1::before { content: ""; display: inline-block; width: 8px; height: 30px; background: var(--blue); border-radius: 4px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .btn-mobile { display: flex; }
  .wrapper { flex-direction: column; }
  .sidebar {
    position: fixed; top: 0; left: -300px; width: 280px; height: 100%;
    background: var(--white); z-index: 2000; transition: .4s cubic-bezier(.4,0,.2,1);
    visibility: hidden; padding: 20px 10px; box-shadow: 2px 0 10px rgba(0,0,0,.1);
  }
  .sidebar.active { left: 0; visibility: visible; }
  .sidebar .sect { margin-top: 40px; }
  .search-form { display: none; }
  .search-form.mobile-visible {
    display: flex; position: fixed; top: 60px; left: 0; width: 100%;
    background: #fff; padding: 10px 15px; z-index: 2001;
    box-shadow: 0 4px 10px rgba(0,0,0,.1); margin: 0; box-sizing: border-box;
  }
  .search-form.mobile-visible .search-box { width: 100%; }
}

@media (max-width: 600px) {
  .info-block { flex-direction: column; align-items: center; text-align: center; }
  .info-image img { width: 100%; max-width: 140px; height: auto; margin-bottom: 20px; }
  .info-list { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 15px; margin-bottom: 25px; padding: 0 10px; }
  .info-list li { margin-bottom: 0; font-size: .85rem; white-space: nowrap; background: rgba(0,0,0,.04); padding: 6px 12px; border-radius: 20px; }
  .info-label { display: none; }
  .download-btn { width: 100%; box-sizing: border-box; border-radius: 12px; }
  .sect > h1 { font-size: 1.5rem; flex-direction: column; align-items: flex-start; gap: 8px; }
  .sect > h1::before { height: 4px; width: 40px; margin-bottom: 5px; }
  .tags-page { padding: 20px 15px; }
  .tags-page .sub-title h1 { font-size: 1.4rem; }
  .cloud-tags { gap: 8px; }
  .cloud-tags a { padding: 8px 16px; font-size: 14px; }
  .track-title { font-size: .9rem; }
  .track-subtitle { font-size: .8rem; }
  .track-item { padding: 8px 10px; }
  .track-item .track-play { width: 32px; height: 32px; min-width: 32px; }
  .track-item .track-play svg { width: 12px; height: 12px; }
  .seo-block { padding: 30px 15px; }
  .seo-h2, .seo-h2-alt { font-size: 1.3rem; text-align: center; }
  .seo-h3 { font-size: 1.1rem; }
  .seo-inner p { text-align: left; font-size: .95rem; }
}

@media (max-width: 360px) {
  .logo img { width: 100px; }
  .header { padding: 0 10px; }
  .full-page, .sect, .tags-page { padding: 15px; }
  .track-item .track-time { font-size: .8rem; min-width: 36px; }
}