:root { --player-bg: rgba(29, 27, 46, 0.3); --text-color: #e9eaff; --text-color-light: #a0b1f5; --shadow-color: rgba(0, 0, 0, 0.4); --progress-track-bg: rgba(160, 177, 245, 0.15); --select-bg: rgba(160, 177, 245, 0.1); --glow-color: rgba(172, 121, 255, 0.3); --accent-gradient: linear-gradient(45deg, #ab61ff 0%, #738aff 100%); --cta-gradient-1: linear-gradient(45deg, #ab61ff 0%, #738aff 100%); --label-gradient: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%); }
html.grad-1 { --label-gradient: linear-gradient(45deg, #f6d365 0%, #fda085 100%); } html.grad-2 { --label-gradient: linear-gradient(45deg, #a1c4fd 0%, #c2e9fb 100%); } html.grad-3 { --label-gradient: linear-gradient(45deg, #84fab0 0%, #8fd3f4 100%); } html.grad-4 { --label-gradient: linear-gradient(45deg, #d4fc79 0%, #96e6a1 100%); } html.grad-5 { --label-gradient: linear-gradient(45deg, #ff9a9e 0%, #fecfef 100%); } html.grad-6 { --label-gradient: linear-gradient(45deg, #43e97b 0%, #38f9d7 100%); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } /* Для плавного скролла по якорю */
body { font-family: 'Inter', sans-serif; background-color: #12111a; background-image: radial-gradient(circle at top left, rgba(171, 97, 255, 0.15), transparent 40%), radial-gradient(circle at bottom right, rgba(115, 138, 255, 0.15), transparent 50%); position: relative; }
main { z-index: 2; position: relative; }

/* --- НОВЫЕ СТИЛИ ДЛЯ РАЗДЕЛЕНИЯ ЭКРАНОВ --- */
.player-section { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100vh; min-height: 650px; padding: 20px 15px; position: relative; }
.content-section { padding: 50px 15px; display: flex; justify-content: center; }
.scroll-down-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: var(--text-color-light); font-size: 28px; animation: bounce 2s ease-in-out infinite; opacity: 0.7; }
.scroll-down-indicator:hover { opacity: 1; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -15px); } 60% { transform: translate(-50%, -7px); } }

.vinyl-background { position: fixed; /* Теперь фон зафиксирован и не скроллится */ top: 50%; left: 50%; transform: translate(-50%, -50%); width: 85vmin; height: 85vmin; min-width: 500px; min-height: 500px; border-radius: 50%; z-index: 1; background-image: repeating-conic-gradient(from 0deg, rgba(0,0,0,0) 0deg 0.1deg, rgba(255,255,255,0.02) 0.1deg 0.2deg), linear-gradient(to bottom, #1a1a1a, #0d0d0d); box-shadow: 0 0 50px rgba(0,0,0,0.5); animation: spin-vinyl 60s linear infinite; display: flex; justify-content: center; align-items: center; }
@keyframes spin-vinyl { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
#visualizer-canvas { position: absolute; width: 150%; height: 150%; pointer-events: none; opacity: 0; transition: opacity 0.8s ease; }
#visualizer-canvas.visible { opacity: 1; }
.vinyl-background::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40%; height: 40%; border-radius: 50%; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); background: var(--label-gradient); transition: background 1s ease-in-out; z-index: 2; }
.player-container { margin-bottom: 25px; /* Уменьшили отступ, т.к. блок Поделиться теперь тоже здесь */ }
.player-container, #content-block, .share-block { width: 100%; max-width: 380px; position: relative; z-index: 2; /* Убрали z-index из body, теперь он здесь */ }
#content-block { max-width: 700px; }
.share-block { max-width: 380px; margin-bottom: 0; }

/* ... (здесь идут все стили плеера, контента и т.д. БЕЗ ИЗМЕНЕНИЙ) ... */
.vinyl-error-message { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40%; height: 40%; border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 3; pointer-events: none; animation: inherit; }
.vinyl-error-message h1 { font-size: 7vmin; font-weight: 700; color: var(--text-color); text-shadow: 0 0 15px rgba(0,0,0,0.5); animation: spin-reverse 60s linear infinite; }
@keyframes spin-reverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
.player-container { padding: 30px; border-radius: 32px; box-shadow: 0 20px 50px var(--shadow-color); background: var(--player-bg); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); transition: all 0.5s ease; display: flex; flex-direction: column; align-items: center; animation: player-fade-in 0.8s ease-out; }
@keyframes player-fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.top-bar { display: flex; justify-content: space-between; align-items: center; position: absolute; top: 20px; left: 25px; right: 25px; width: calc(100% - 50px); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 15px; }
.logo-vinyl { width: 28px; height: 28px; background: #1a1a1a; border-radius: 50%; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.3); animation: spin-logo 8s linear infinite; }
.logo-vinyl::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40%; height: 40%; border-radius: 50%; background: var(--accent-gradient); }
@keyframes spin-logo { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.help-btn, .logo-vinyl { background: none; border: none; color: var(--text-color-light); cursor: pointer; padding: 5px; transition: color 0.3s ease, transform 0.3s ease; }
.help-btn i { font-size: 16px; }
.help-btn:hover, .logo-vinyl:hover { transform: scale(1.1); color: var(--text-color); }
.select-wrapper { position: relative; }
.select-wrapper::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; position: absolute; right: 8px; top: 7px; color: var(--text-color-light); pointer-events: none; }
#lang-switcher { -webkit-appearance: none; -moz-appearance: none; appearance: none; background: var(--select-bg); border-radius: 8px; font-size: 12px; padding: 5px 22px 5px 8px; font-family: 'Inter', sans-serif; border: none; color: var(--text-color); cursor: pointer; transition: background 0.3s ease; }
#lang-switcher option { background: #34495e; color: #ecf0f1; }
.volume-control { display: flex; align-items: center; gap: 10px; width: 60%; margin: 20px 0 0 0; }
.volume-control i { color: var(--text-color-light); cursor: pointer; transition: color 0.3s ease, transform 0.3s ease; font-size: 20px; }
.volume-control i:hover { color: var(--text-color); transform: scale(1.1); }
.volume-slider { flex-grow: 1; height: 6px; background: var(--progress-track-bg); border-radius: 3px; cursor: pointer; position: relative; }
.volume-progress { height: 100%; width: 50%; background: var(--accent-gradient); border-radius: 3px; position: relative; pointer-events: none; }
.volume-progress::after { content: ''; position: absolute; right: -6px; top: -5px; width: 16px; height: 16px; background-color: white; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
#song-title { margin: 30px 0 10px 0; font-size: 42px; min-height: 55px; line-height: 1.2; color: var(--text-color); text-align: center; animation: emoji-pop-in 0.5s ease-out; cursor: pointer; transition: all 0.3s ease; }
#song-title:hover { transform: scale(1.1); }
@keyframes emoji-pop-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
#artist { width: 100%; text-align: center; min-height: 20px; font-size: 14px; color: var(--text-color-light); transition: color 0.5s ease; }
.progress-container { background: var(--progress-track-bg); border-radius: 10px; cursor: pointer; height: 10px; width: 100%; margin-top: 15px; }
.progress-bar { background: var(--accent-gradient); border-radius: 10px; height: 100%; width: 0%; transition: width 0.1s linear; position: relative; }
.progress-bar::after { content: ''; position: absolute; right: -8px; top: -4px; width: 18px; height: 18px; background-color: white; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s ease; }
.progress-container:hover .progress-bar::after { opacity: 1; }
.time-stamps { width: 100%; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-color-light); margin: 8px 2px 0; transition: color 0.5s ease; }
.main-controls-group { display: flex; gap: 20px; margin: 25px 0; }
.main-cta-btn { width: 75px; height: 75px; border-radius: 24px; border: none; color: white; font-size: 32px; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; box-shadow: 0 10px 30px -8px var(--shadow-color); transition: all 0.3s ease; }
.main-cta-btn:nth-child(1) { background: var(--cta-gradient-1); }
.main-cta-btn:nth-child(2) { background: var(--label-gradient); transition: background 1s ease-in-out; }
.main-cta-btn:hover { transform: translateY(-5px); box-shadow: 0 15px 35px -8px var(--shadow-color); }
.main-cta-btn:active { transform: translateY(-2px) scale(0.95); }
.controls-wrapper { background: none; padding: 15px 30px; margin-bottom: 10px; border-style: solid; border-width: 2px; border-image-slice: 1; border-image-source: var(--accent-gradient); border-top: none; border-left: 2px solid transparent; border-right: 2px solid transparent; border-bottom-left-radius: 150px; border-bottom-right-radius: 150px; transition: all 0.5s ease; box-shadow: 0 10px 30px -15px var(--glow-color); }
.controls { display: flex; justify-content: center; align-items: center; }
.control-btn { background: none; border: none; font-size: 20px; cursor: pointer; margin: 0 12px; color: var(--text-color-light); padding: 10px; transition: all 0.3s ease; }
.control-btn:hover { color: var(--text-color); transform: scale(1.1); }
.control-btn:active { transform: scale(0.9); }
.play-btn { font-size: 36px; transition: all 0.3s ease; }
.play-btn:hover { transform: scale(1.15); }
.play-btn, .control-btn.active { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent; }
@media (max-width: 360px) { .player-container { padding: 25px; } .main-cta-btn { width: 65px; height: 65px; font-size: 26px; border-radius: 18px; } #song-title { font-size: 36px; } }
#artist.welcome-message { font-size: 15px; line-height: 1.5; min-height: 45px; margin-bottom: 10px; opacity: 0; animation: fade-in 0.8s 0.5s ease-out forwards; }
@keyframes fade-in { to { opacity: 1; } }
#content-block { animation: player-fade-in 1s 0.2s ease-out backwards; background: var(--player-bg); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(30px); border-radius: 32px; color: var(--text-color); padding: 30px; }
#content-block h1, #content-block h2 { font-size: 24px; margin-bottom: 20px; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: inline-block; }
#content-block p, #content-block li, #content-block div { font-size: 16px; line-height: 1.7; color: var(--text-color-light); margin-bottom: 15px; }
#content-block ul { list-style: none; margin: 25px 0; padding-left: 0; }
#content-block a { color: var(--text-color); text-decoration: none; font-weight: 600; position: relative; transition: color 0.3s ease; }
#content-block a:hover { color: var(--text-color-light); }
#content-block a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px; background: var(--accent-gradient); transform: scaleX(0); transform-origin: right; transition: transform 0.4s ease; }
#content-block a:hover::after { transform: scaleX(1); transform-origin: left; }
.hashtags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hashtags a { background: var(--progress-track-bg); color: var(--text-color-light); padding: 5px 12px; border-radius: 15px; font-size: 14px; font-weight: 400; text-decoration:none; }
.hashtags a:hover { color: var(--text-color); background: var(--select-bg); }
.hashtags a::after { display: none; }
.pulse-animation { animation: pulse-glow 2.5s ease-in-out infinite; }
@keyframes pulse-glow { 0% { transform: scale(1.0); box-shadow: 0 10px 30px -8px var(--shadow-color); } 50% { transform: scale(1.05); box-shadow: 0 10px 40px 0px var(--glow-color); } 100% { transform: scale(1.0); box-shadow: 0 10px 30px -8px var(--shadow-color); } }
.share-block { animation: player-fade-in 1s 0.1s ease-out backwards; }
.share-block h2 { font-size: 20px; margin-bottom: 20px; text-align: center; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.share-buttons { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-btn { width: 50px; height: 50px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; font-size: 22px; text-decoration: none; background: var(--progress-track-bg); color: var(--text-color-light); transition: all 0.3s ease; }
.share-btn:hover { color: #fff; transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
/* Новые цвета для кнопок */
.share-btn.telegram:hover { background-color: #0088cc; } 
.share-btn.whatsapp:hover { background-color: #25d366; } 
.share-btn.vk:hover { background-color: #4680c2; }
.share-btn.odnoklassniki:hover { background-color: #ed812b; }
.share-btn.reddit:hover { background-color: #ff4500; }
.share-btn.pinterest:hover { background-color: #e60023; }
.share-btn.weibo:hover { background-color: #df2029; }
.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 30px); width: 400px; background: var(--player-bg); backdrop-filter: blur(10px); color: var(--text-color); padding: 15px 20px; border-radius: 15px; box-shadow: 0 10px 30px var(--shadow-color); z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 15px; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease; }
.cookie-banner.visible { opacity: 1; visibility: visible; }
.cookie-banner p { margin: 0; font-size: 14px; flex-grow: 1; }
.cookie-banner button { background: var(--accent-gradient); border: none; color: white; padding: 8px 15px; border-radius: 10px; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; flex-shrink: 0; }

/* =======================
   0) Градиенты под класс на body (совместимость с JS)
   ======================= */
body.grad-1 { --label-gradient: linear-gradient(45deg, #f6d365 0%, #fda085 100%); }
body.grad-2 { --label-gradient: linear-gradient(45deg, #a1c4fd 0%, #c2e9fb 100%); }
body.grad-3 { --label-gradient: linear-gradient(45deg, #84fab0 0%, #8fd3f4 100%); }
body.grad-4 { --label-gradient: linear-gradient(45deg, #d4fc79 0%, #96e6a1 100%); }
body.grad-5 { --label-gradient: linear-gradient(45deg, #ff9a9e 0%, #fecfef 100%); }
body.grad-6 { --label-gradient: linear-gradient(45deg, #43e97b 0%, #38f9d7 100%); }

/* =======================
   1) Блики для винила (по умолчанию ВКЛ)
   ======================= */
.vinyl-background::before{
  content:'';
  position:absolute; inset:0;
  border-radius:50%;
  pointer-events:none;
  mix-blend-mode:screen;
  /* мягкие блики и «световой луч» */
  background:
    radial-gradient(120% 80% at 12% 10%, rgba(255,255,255,.20) 0%, rgba(255,255,255,.05) 35%, rgba(255,255,255,0) 55%),
    linear-gradient(65deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 60%);
  opacity:.85;
  filter: blur(.4px);
  transition: opacity .4s ease, filter .4s ease;
  animation: glare-sweep 7s ease-in-out infinite;
}

@keyframes glare-sweep{
  0%,100% { transform: translate(0,0) rotate(0deg); filter: blur(.4px); }
  50%     { transform: translate(1.2%,1.2%) rotate(.8deg); filter: blur(.9px); }
}

/* =======================
   2) Состояние ПЛЕЙ: без бликов + активная сердцевина
   ======================= */
.vinyl-background.playing{
  /* немного быстрее вращаемся, но без резких рывков */
  animation-duration: 40s;
}

.vinyl-background.playing::before{
  /* прячем блики в режиме play */
  opacity: 0;
  animation: none;
  filter: none;
}

.vinyl-background.playing::after{
  /* «живой» лейбл: лёгкое свечение и дыхание */
  box-shadow:
    inset 0 0 24px rgba(0,0,0,.55),
    0 0 0 8px rgba(0,0,0,.20),
    0 0 34px var(--glow-color);
  animation: label-pulse 2.4s ease-in-out infinite;
  transform: translate(-50%, -50%) scale(1.04); /* стартовое микроскопическое увеличение */
}

@keyframes label-pulse{
  0%,100% { transform: translate(-50%, -50%) scale(1.02); }
  50%     { transform: translate(-50%, -50%) scale(1.08); }
}

/* =======================
   3) Уважение к reduced motion
   ======================= */
@media (prefers-reduced-motion: reduce){
  .vinyl-background,
  .vinyl-background::before,
  .logo-vinyl,
  .vinyl-error-message h1,
  #visualizer-canvas {
    animation: none !important;
    transition: none !important;
  }
}