*{box-sizing:border-box} :root{--brand:#7c3aed;--ink:#252037;--muted:#787186;--line:#e9e5f0;--surface:#fff;--radius:22px}body{margin:0;background:#f8f7fc;color:var(--ink);font:15px/1.55 'Segoe UI',system-ui,sans-serif}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:var(--brand);text-decoration:none}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #aa8be9;outline-offset:4px}h1,h2,h3,p{margin:0 0 14px}h1{font-size:clamp(28px,3.4vw,40px);letter-spacing:-1.3px;line-height:1.16}h2{font-size:23px;letter-spacing:-.6px;line-height:1.3}h3{font-size:17px;line-height:1.4}input{display:block;width:100%;min-width:0;background:#fbfafe;border:1px solid #ddd6e9;border-radius:12px;padding:12px 14px;margin:7px 0 18px;color:var(--ink);outline:none}input:focus{border-color:var(--brand);box-shadow:0 0 0 3px #7c3aed13}label{font-weight:600;font-size:13px}input[readonly]{color:var(--muted)}.top{position:sticky;top:0;background:#f8f7fcf5;border-bottom:1px solid var(--line);z-index:20;backdrop-filter:blur(16px)}.top-inner{max-width:1320px;margin:auto;padding:16px 32px;display:flex;align-items:center;gap:32px}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:800;color:var(--ink);white-space:nowrap}.brand-mark{display:grid;place-items:center;background:var(--brand);color:white;width:36px;height:36px;border-radius:11px;font-size:23px}.top nav{display:flex;gap:25px;flex:1}.top nav a{font-size:14px;color:var(--muted);font-weight:600}.actions{margin-left:auto;display:flex;gap:8px;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;border:1px solid transparent;border-radius:12px;padding:11px 17px;font-size:14px;font-weight:650;line-height:1.4;white-space:normal;text-align:center}.primary{background:var(--brand);color:white;box-shadow:0 4px 10px #7c3aed18}.secondary{background:#eee9f7;color:#4d3770}.subtle{background:transparent;color:#696074}.danger{background:#fff0f0;color:#ab343e;border-color:#f3d7d9}.button:hover{filter:brightness(.97)}.shell{max-width:1320px;margin:auto;padding:0 32px}.hero{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:80px;padding:70px 20px 80px}.hero h1{font-size:clamp(40px,5.5vw,70px);line-height:1.05;letter-spacing:-3px;max-width:650px;margin:20px 0}.hero p{font-size:18px;line-height:1.8;color:var(--muted);max-width:520px;margin-bottom:28px}.eyebrow{font-size:11px;text-transform:uppercase;font-weight:800;letter-spacing:1.7px;color:#8b70b4;display:block;margin-bottom:12px}.hero-art{aspect-ratio:1.1;background:linear-gradient(140deg,#ede4fb,#ddd8f5 50%,#f5dcd9);border-radius:40% 40% 25% 35%;display:grid;place-items:center;position:relative}.record{width:70%;aspect-ratio:1;border-radius:50%;background:repeating-radial-gradient(circle,#292536 0 2px,#353042 3px 5px);display:grid;place-items:center;box-shadow:12px 18px 35px #30263e40;transform:rotate(-15deg)}.record div{display:grid;place-items:center;width:37%;aspect-ratio:1;border-radius:50%;background:#bfa5e8;font-size:50px;color:white}.music-caption{position:absolute;bottom:10%;background:#ffffffec;padding:13px 20px;border-radius:16px;box-shadow:0 12px 30px #30263e12;font-weight:650}.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#7b5cb0;margin-right:8px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 24px}.section-head h1,.section-head h2{margin-bottom:6px}.compact{margin-top:28px;margin-bottom:16px}.muted,.help{color:var(--muted)}.help{font-size:12px;margin-top:12px}.badge{border:1px solid var(--line);background:white;border-radius:20px;padding:6px 12px;white-space:nowrap;color:#79698a;font-size:12px;font-weight:650}.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(138px,1fr));gap:14px}.category{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;text-align:left;min-height:145px;padding:18px;border-radius:18px;border:1px solid #ffffffb3;background:var(--tile,#ede6fa);color:#383044;overflow:hidden;transition:transform .15s,box-shadow .15s}.category:hover{transform:translateY(-3px);box-shadow:0 8px 20px #30263e12}.category.selected{outline:2px solid var(--brand);outline-offset:2px}.category .cat-icon{font-size:27px;z-index:1}.category .cat-name{font-size:15px;font-weight:750;line-height:1.35;overflow-wrap:anywhere;z-index:1}.category small{font-size:11px;font-weight:500;display:block;opacity:.7;margin-top:4px}.category img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.category.has-image{color:white}.category.has-image:after{content:'';position:absolute;inset:0;background:linear-gradient(#0001,#000b)}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:26px}.auth{max-width:450px;margin:60px auto}.auth h1{margin-bottom:18px}.auth-links{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin-top:20px;flex-wrap:wrap}.full{width:100%}.notice{padding:12px 15px;border-radius:12px;background:#f0eafa;margin-bottom:18px}.notice.bad{background:#fff0f0;color:#a5323d}.notice.good{background:#ebf6ef;color:#286e43}.app-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:40px;padding:36px 0 70px}.sidebar{position:sticky;top:115px;height:max-content}.sidebar-label{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#aba2b8;margin:0 14px 16px}.sidebar nav{display:grid;gap:6px}.sidebar nav a{display:flex;align-items:center;gap:13px;padding:13px 16px;color:#81758f;font-weight:600;border-radius:12px;min-height:48px}.sidebar nav a span{font-size:20px}.sidebar nav a.active{background:#ece4f8;color:var(--brand)}.sidebar-note{font-size:13px;color:#a49aac;border-top:1px solid var(--line);margin:35px 14px 0;padding-top:20px}.master-link{display:block;margin:22px 14px;font-size:12px}.content{min-width:0}.search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#search{background:white;margin-bottom:20px;max-width:450px}.items{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px}.item{padding:12px;background:white;border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;min-width:0}.art{aspect-ratio:1.3;background:linear-gradient(130deg,#eee4f6,#e5e7f6);display:grid;place-items:center;border-radius:12px;overflow:hidden;font-size:42px;color:#a294b9}.art img{width:100%;height:100%;object-fit:cover}.item h3{margin:13px 2px 5px;overflow-wrap:anywhere}.item p{font-size:12px;margin:0 2px 15px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.item .button{margin-top:auto}.empty{grid-column:1/-1;padding:32px;text-align:center;border:1px dashed #dcd4e7;border-radius:18px;color:var(--muted);background:#ffffff70}.room-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:18px}.room-tile{border:1px solid var(--line);border-radius:16px;background:white;padding:18px;text-align:left;color:var(--ink);min-width:0}.room-tile strong{display:block;overflow-wrap:anywhere}.room-tile small{color:var(--muted)}.room-tile.active{border-color:var(--brand);background:#f3eefb}.create-room{margin:18px 0;padding:18px 24px}.create-room summary{display:flex;justify-content:space-between;cursor:pointer;font-weight:650;min-height:32px;align-items:center}.create-room form{margin-top:18px}.inline-form{display:flex;align-items:end;gap:10px;margin-bottom:20px}.inline-form>div{flex:1;min-width:0}.inline-form input{margin-bottom:0}.inline-form>input{flex:1;min-width:0}.room-playback{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px}.control-row,.button-row{display:flex;gap:8px;flex-wrap:wrap}.track-list{display:grid;gap:10px}.track-row{display:flex;align-items:center;gap:14px;background:white;border:1px solid var(--line);padding:14px 18px;border-radius:15px}.track-row.current{border-left:3px solid var(--brand)}.track-number{color:#ad9fbe;font-size:13px}.track-info{flex:1;min-width:0}.track-info strong{display:block;overflow-wrap:anywhere}.track-info small{display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.track-actions{display:flex;gap:4px}.track-actions button{padding:9px;min-height:44px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.account-grid .card h2{margin-bottom:16px}#trackForm{margin:20px 0}#logout,#endRoom{margin-top:24px}.player{position:fixed;z-index:40;bottom:18px;left:50%;transform:translateX(-50%);width:min(680px,calc(100% - 32px));display:flex;align-items:center;gap:14px;background:#292235;color:white;border:1px solid #ffffff22;border-radius:19px;padding:12px 16px;box-shadow:0 10px 40px #27203130}.player-art{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#7d5bac;font-size:25px;flex-shrink:0}.player-info{flex:1;min-width:0}.player-info strong,.player-info span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-info strong{font-size:14px}.player-info span{font-size:11px;color:#bfb2cc;margin-top:3px}.icon-button{border:0;background:#ffffff10;color:white;width:44px;height:44px;border-radius:50%;flex-shrink:0;font-size:20px}.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:110px;z-index:60;max-width:min(520px,calc(100% - 32px));background:#30273e;color:white;padding:13px 20px;border-radius:13px;box-shadow:0 8px 30px #30263e22;font-size:14px}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:28px 0 120px;color:#a197af;font-size:12px;gap:16px}dialog{border:1px solid var(--line);border-radius:22px;padding:28px;width:min(440px,calc(100% - 32px));color:var(--ink)}dialog::backdrop{background:#23162b70}dialog p{color:var(--muted);margin:20px 0}.hide{display:none!important}body.has-player{padding-bottom:30px}
@media(min-width:1100px){#userCats{grid-template-columns:repeat(4,minmax(0,1fr))}#publicCats{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:850px){.top-inner{padding:14px 20px;gap:20px}.shell{padding:0 20px}.hero{gap:30px;padding:50px 0}.app-layout{grid-template-columns:1fr;gap:24px;padding-top:24px}.sidebar{position:static}.sidebar-label,.sidebar-note{display:none}.sidebar nav{grid-template-columns:repeat(3,1fr);gap:6px;background:#eeebf4;padding:5px;border-radius:16px}.sidebar nav a{justify-content:center;padding:9px 12px}.sidebar nav a.active{background:white;box-shadow:0 2px 5px #30263e08}.master-link{margin:12px 0 0;text-align:right}.account-grid{gap:16px}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero h1{letter-spacing:-1.8px}.top nav{gap:15px}}
@media(max-width:560px){.top-inner{padding:12px 16px;gap:8px;flex-wrap:wrap}.brand{font-size:17px;gap:8px}.brand-mark{width:32px;height:32px}.top nav{order:3;flex-basis:100%;justify-content:center;font-size:12px}.top nav:has(a:not(.hide)){padding-top:6px}.actions{gap:0}.actions .button{padding:9px 10px;font-size:12px;min-height:42px}.shell{padding:0 16px}.hero{grid-template-columns:1fr;padding:36px 0 40px;gap:25px}.hero h1{font-size:42px}.hero p{font-size:16px}.hero-art{max-height:240px;width:100%;border-radius:24px;aspect-ratio:1.65}.record{width:170px}.music-caption{bottom:8%;right:8%;font-size:12px;padding:9px 14px}.eyebrow{font-size:10px;letter-spacing:1.3px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category{min-height:135px;padding:16px}.category .cat-name{font-size:14px}.section-head{align-items:flex-start;margin-bottom:20px}.section-head .badge{font-size:10px;padding:5px 8px}.items{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.item{padding:10px}.item h3{font-size:14px}.item .button{padding:9px 8px;font-size:12px}.auth{margin:24px auto}.card{padding:20px;border-radius:18px}.account-grid{grid-template-columns:1fr}.sidebar nav a{font-size:13px;gap:8px}.sidebar nav a span{font-size:18px}.inline-form{flex-wrap:wrap;align-items:stretch}.inline-form>div,.invite-row>input{flex-basis:100%}.inline-form .button{flex:1}.room-list{grid-template-columns:1fr}.room-card .section-head{flex-wrap:wrap}.track-row{flex-wrap:wrap;gap:10px;padding:13px}.track-info{flex-basis:calc(100% - 30px)}.track-actions{margin-left:auto}.player{bottom:max(12px,env(safe-area-inset-bottom));padding:10px;gap:10px;width:calc(100% - 24px)}.player-art{width:36px;height:36px}.player-info strong{font-size:12px}.icon-button{width:42px;height:42px}.toast{bottom:95px}.room-playback>.button{width:100%}.control-row{width:100%;display:grid;grid-template-columns:1fr 1fr}footer{font-size:10px}.compact{margin-top:24px}#profileEmail{overflow-wrap:anywhere}}
.section-head>div{min-width:0}.sidebar{min-width:0}.sidebar nav{min-width:0}.sidebar nav a{min-width:0}
@media(max-width:850px){.app-layout{grid-template-columns:minmax(0,1fr)}.sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:360px){.sidebar nav a{font-size:12px;gap:5px;padding:9px 6px}.sidebar nav a span{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Language controls and direction-aware layout. */
.language-choice{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.language-choice select{font:inherit;color:var(--ink);background:white;border:1px solid var(--line);border-radius:10px;min-height:42px;padding:8px;max-width:140px}
[dir="rtl"] .actions{margin-left:0;margin-right:auto}
[dir="rtl"] .category,[dir="rtl"] .room-tile{text-align:right}
[dir="rtl"] .track-row.current{border-left:1px solid var(--line);border-right:3px solid var(--brand)}
[dir="rtl"] .track-actions{margin-left:0;margin-right:auto}
[dir="rtl"] .master-link{text-align:left}
input[type="email"],input[type="url"],#inviteUrl,#rt{direction:ltr;text-align:left}
[dir="rtl"] input:not([type="email"]):not([type="url"]):not(#inviteUrl):not(#rt){text-align:right}
@media(max-width:560px){.language-choice>span{display:none}.language-choice select{max-width:110px;padding:6px;font-size:12px}.top-inner{align-items:center}.actions{flex-wrap:wrap;justify-content:flex-end}.top-inner .brand{flex-shrink:0}.top-inner:has(#loginTop:not(.hide)) .actions{flex-basis:100%;justify-content:space-between;margin-inline:0}}
/* Consistent category squares keep both labels and icons within the tile. */
.category-grid,#publicCats,#userCats{grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:12px}.category{aspect-ratio:1;min-height:0;justify-content:center;align-items:center;text-align:center!important;padding:12px;gap:9px}.category .cat-icon{font-size:22px;line-height:1;max-width:36px;overflow:hidden}.category .cat-name{font-size:13px;line-height:1.3;max-width:100%;overflow-wrap:anywhere}.category small{font-size:11px}.category.has-image:after{background:#0008}.scroll-feed{max-height:300px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.news-feed{max-width:850px;margin:20px auto}.news-post{padding:14px 0;border-bottom:1px solid var(--line)}.news-post h3{margin-bottom:5px}.news-post p,.chat-message{white-space:pre-wrap;overflow-wrap:anywhere}.news-post time{font-size:12px;color:var(--muted)}.room-chat,.device-share{margin-top:20px}.room-chat form{margin:16px 0 0}.chat-message{padding:10px;background:#f8f7fc;border-radius:10px;margin:6px 0}.chat-message small{display:block;color:var(--muted)}.check-label{display:flex;gap:10px;align-items:center;margin:12px 0}.check-label input{width:20px;height:20px;margin:0;flex:none}textarea{display:block;width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;font:inherit;margin:8px 0 16px}#reportForm{margin-top:20px}.legal-links{display:flex;gap:14px;flex-wrap:wrap;align-items:center}footer{flex-wrap:wrap}.legal-links .button{padding:0;min-height:24px;font-size:inherit}.player{flex-wrap:wrap;width:min(780px,calc(100% - 24px))}.player-buttons{display:flex;gap:6px}.player-details{flex:0 0 100%;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px}.player-details input{padding:0;margin:0;height:26px;box-shadow:none;accent-color:#c5a3ff}.player-details #playerVolume{width:90px}.player-details #playerSeek{flex:1;min-width:60px}.player-details .icon-button{width:30px;height:30px;font-size:16px}#queuePosition{flex-basis:100%;overflow-wrap:anywhere;color:#d6c9e4}.toast{bottom:185px}body.has-player{padding-bottom:125px}.ad-frame{margin:22px auto;max-width:728px;text-align:center;min-height:60px}.ad-frame small{display:block;color:var(--muted);font-size:10px}.ad-frame ins{display:inline-block;width:320px;height:50px;max-width:100%}#deviceFile{font-size:12px}#cookieDialog .button-row{display:grid;grid-template-columns:1fr 1fr}#consentStatus{font-size:13px}
@media(max-width:560px){.category-grid,#publicCats,#userCats{grid-template-columns:repeat(2,minmax(0,1fr))}.category .cat-name{font-size:13px}.player-art{display:none}.player-info{flex-basis:calc(100% - 42px)}.player-buttons{width:100%;justify-content:center}.player-details #playerSeek{flex-basis:50%}.player-details #playerVolume{width:85px}.player{gap:5px;padding:9px}.player-buttons .icon-button{width:40px;height:40px}.toast{bottom:245px}body.has-player{padding-bottom:190px}.scroll-feed{max-height:260px}.ad-frame ins{width:234px;height:60px}}

.items{max-height:620px;overflow:auto;overscroll-behavior:contain;padding:3px}.player button:disabled{cursor:default}

.news-thumb{float:left;width:64px;height:64px;object-fit:cover;border-radius:10px;margin:0 14px 10px 0}.news-post{display:flow-root}.contact-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}#contactDialog{width:min(540px,94vw);max-height:90vh;overflow:auto}#contactForm input,#contactForm textarea{width:100%;box-sizing:border-box}#contactForm label{display:block;margin-top:10px}.player-ad-area{margin:32px auto;padding:16px;max-width:380px;clear:both;text-align:center;border:1px solid #ddd;border-radius:12px}.player-ad-area small{display:block;margin-bottom:8px}.room-open #roomList,.room-open #createDetails{display:none!important}
