Files
pipu-music/apps/web/src/pages/catalog.module.css
T
mrleo1nidandClaude Sonnet 5.5 f7ffa5d742
ci / ts / ts (packages + web) (push) Successful in 5m9s
ci / mobile / mobile (Metro-бандл Android) (push) Successful in 1m37s
Fix track page hero layout and add full-screen player
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 00:17:55 +03:00

277 lines
4.3 KiB
CSS

.section {
display: flex;
flex-direction: column;
gap: 14px;
}
.section h2 {
margin: 0;
font-family: var(--font-display);
font-size: 19px;
font-weight: 600;
letter-spacing: -0.01em;
}
.artistRow {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.tab {
display: inline-flex;
align-items: center;
gap: 6px;
height: 34px;
padding: 0 16px;
border-radius: var(--radius-pill);
border: 1px solid var(--line);
color: var(--text);
font-size: 14px;
font-weight: 600;
text-decoration: none;
}
.tab[aria-selected='true'] {
background: var(--text);
color: var(--bg);
border-color: var(--text);
}
.tabCount {
font-size: 12px;
color: var(--text3);
}
.tab[aria-selected='true'] .tabCount {
color: inherit;
opacity: 0.6;
}
.hero {
position: relative;
display: flex;
align-items: flex-end;
gap: 28px;
padding: 28px;
margin: -32px -36px 0;
overflow: hidden;
}
.heroBg {
position: absolute;
inset: -20%;
opacity: 0.4;
filter: blur(60px);
pointer-events: none;
}
.heroBg img {
width: 100%;
height: 100%;
object-fit: cover;
}
.heroCover {
position: relative;
z-index: 1;
}
.tint {
position: absolute;
inset: 0;
pointer-events: none;
}
.heroActions {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 8px;
}
.heroBody {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
}
.listen .heroCover {
max-width: 280px;
aspect-ratio: 1;
}
.listen {
display: grid;
gap: 28px;
}
.listenLyrics {
min-width: 0;
}
@media (min-width: 900px) {
.listen {
grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
align-items: start;
}
.listen .hero {
flex-direction: column;
align-items: stretch;
margin: 0;
padding: 20px;
border-radius: 20px;
}
.listen .heroCover {
max-width: none;
}
.listen .heroTitle {
font-size: clamp(28px, 3vw, 40px);
}
}
.kind {
font-size: 12px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text2);
}
.heroTitle {
margin: 0;
font-family: var(--font-display);
font-size: clamp(28px, 4vw, 48px);
font-weight: 600;
letter-spacing: -0.02em;
line-height: 1.1;
overflow-wrap: anywhere;
}
.heroMeta {
color: var(--text2);
}
.heroMeta a {
color: var(--text);
font-weight: 600;
text-decoration: none;
}
.heroMeta a:hover {
text-decoration: underline;
}
@media (max-width: 767px) {
.hero {
flex-direction: column;
align-items: flex-start;
margin: -20px -16px 0;
padding: 20px 16px;
}
}
/* Шапка коллекции (макет «Коллекция»): плитка-иконка, надзаголовок, крупный заголовок. */
.colHero {
display: flex;
align-items: flex-end;
flex-wrap: wrap;
gap: 24px;
}
.tile {
display: grid;
place-items: center;
width: 120px;
height: 120px;
border-radius: 20px;
color: #fff;
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.heroText {
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
min-width: 240px;
}
.kicker {
font-size: 13px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text2);
}
.colTitle {
margin: 0;
font-family: var(--font-display);
font-size: 40px;
font-weight: 600;
letter-spacing: -0.02em;
line-height: 1;
}
.heroSub {
font-size: 14px;
color: var(--text2);
text-wrap: pretty;
}
.underlineTabs {
display: flex;
gap: 6px;
border-bottom: 1px solid var(--line);
}
.underlineTab {
display: inline-flex;
align-items: center;
height: 42px;
padding: 0 14px;
margin-bottom: -1px;
border-bottom: 2px solid transparent;
color: var(--text2);
font-size: 15px;
font-weight: 500;
text-decoration: none;
}
.underlineTab:hover {
color: var(--text);
}
.underlineTab[aria-selected='true'] {
color: var(--text);
border-bottom-color: var(--accent);
}
.day {
margin: 0;
padding: 8px 12px;
font-family: inherit;
font-size: 14px;
font-weight: 600;
color: var(--text2);
}
.pill {
height: 44px;
border-radius: var(--radius-pill);
}
@media (max-width: 767px) {
.heroText { min-width: 0; }
.colTitle { font-size: clamp(24px, 7vw, 34px); overflow-wrap: anywhere; }
.underlineTabs { overflow-x: auto; }
.underlineTab { flex-shrink: 0; min-height: 44px; }
}