.community-redesign { min-width: 320px; background: #0b0b0c; color: #f7f7f8; }
.community-page-main { min-height: calc(100vh - 214px); padding-top: 78px; }
.community-kicker { display: block; color: var(--accent); font: 600 11px/1.5 Consolas, monospace; text-transform: uppercase; }

.community-intro { padding: 62px 0 46px; border-bottom: 1px solid #2a2a2e; }
.community-intro-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: end; gap: 72px; }
.community-intro h1 { margin: 12px 0 0; font-size: clamp(48px, 6.4vw, 80px); font-weight: 760; line-height: 1.02; }
.community-intro h1 span { color: #85858c; }
.community-intro p { max-width: 600px; margin: 20px 0 0; color: #9a9aa0; font-size: 15px; line-height: 1.65; }
.community-intro-index { position: relative; display: grid; gap: 6px; min-height: 90px; padding: 18px 54px 5px 22px; border-left: 1px solid #343439; }
.community-intro-index span { color: #77777e; font: 600 10px/1.4 Consolas, monospace; text-transform: uppercase; }
.community-intro-index strong { max-width: 230px; color: #d6d6da; font-size: 13px; font-weight: 620; line-height: 1.55; }
.community-intro-index svg { position: absolute; top: 18px; right: 0; width: 22px; height: 22px; color: var(--accent); }

.community-library { padding: 38px 0 104px; }
.community-library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 24px; }
.community-library-heading h2 { margin: 6px 0 0; font-size: 31px; line-height: 1.15; }
.community-library-heading > p { margin: 0 0 4px; color: #77777e; font: 600 10px/1.4 Consolas, monospace; text-transform: uppercase; }

.community-redesign .community-filter-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 26px; padding: 4px; background: #111113; border: 1px solid #2d2d31; border-radius: 5px; }
.community-redesign .log-filter { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px; color: #85858c; background: transparent; border: 0; border-radius: 3px; font-size: 12px; font-weight: 650; cursor: pointer; transition: color 160ms ease, background 160ms ease; }
.community-redesign .log-filter svg { width: 15px; height: 15px; }
.community-redesign .log-filter:hover { color: #ededee; background: #1b1b1e; }
.community-redesign .log-filter.is-active { color: #0b1715; background: var(--accent); }

.community-redesign .community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.community-redesign .community-card { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; min-height: 360px; padding: 0; overflow: hidden; background: #131315; border: 1px solid #2b2b30; border-radius: 6px; box-shadow: none; transition: transform 190ms ease, border-color 190ms ease; }
.community-redesign .community-card:hover { transform: translateY(-3px); border-color: #4c6d67; }
.community-redesign .community-card.is-profile-expanded { z-index: 20; overflow: visible; }
.community-redesign .community-card-media { position: relative; display: grid; place-items: center; width: 100%; height: 146px; overflow: hidden; color: #8ee9da; background: #101817; border: 0; border-bottom: 1px solid #2b3937; border-radius: 0; }
.community-redesign .community-card[data-community-type="automation"] .community-card-media { color: #c7b7f6; background: #16131d; border-color: #342b43; }
.community-redesign .community-card[data-community-type="custom-command"] .community-card-media { color: #f5bd73; background: #19150f; border-color: #403420; }
.community-redesign .community-card[data-community-type="sound"] .community-card-media { color: #ffaaa3; background: #191111; border-color: #422a28; }
.community-redesign .community-card-media::after { content: attr(data-short-label); position: absolute; right: 14px; bottom: 10px; color: currentColor; font: 600 9px/1.4 Consolas, monospace; opacity: .55; }
.community-redesign .community-card-media > svg,
.community-redesign .community-sound-cover-button > svg { width: 34px; height: 34px; stroke-width: 1.35; }
.community-redesign .community-card-media img { width: 100%; height: 100%; object-fit: cover; }
.community-redesign .community-profile-cover-button { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; width: 100%; padding: 0; color: #8ee9da; background: transparent; border: 0; cursor: pointer; }
.community-redesign .community-profile-cover-button::after { content: ""; position: absolute; inset: 0; background: rgba(142, 233, 218, .035); opacity: 0; transition: opacity 180ms ease; }
.community-redesign .community-profile-cover-button:hover::after,
.community-redesign .community-profile-cover-button:focus-visible::after { opacity: 1; }
.community-redesign .community-profile-cover-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.community-redesign .community-profile-cover-button > svg { position: relative; z-index: 1; width: 34px; height: 34px; stroke-width: 1.35; transition: color 180ms ease, filter 180ms ease, transform 180ms ease; }
.community-redesign .community-profile-cover-button:hover > svg { color: #adf5e9; filter: drop-shadow(0 0 8px rgba(98, 226, 205, .24)); transform: scale(1.07); }
.community-redesign .community-profile-cover-button img { width: 100%; height: 100%; object-fit: cover; }
.community-redesign .community-profile-label { position: absolute; right: 10px; bottom: 9px; z-index: 2; color: #76b7ad; pointer-events: none; font: 600 9px/1.4 Consolas, monospace; }
.community-redesign .community-card.is-profile-spinning .community-profile-cover-button > svg,
.community-redesign .community-card.is-profile-spinning .community-profile-cover-button > img { animation: communityProfileSpin 480ms cubic-bezier(.42, 0, .2, 1) both; }
.community-redesign .community-profile-preview-panel { position: absolute; top: -1px; left: calc(100% + 9px); z-index: -1; width: 100%; min-height: 146px; max-height: 330px; padding: 16px; overflow: auto; color: #d8d8dc; background: #101817; border: 1px solid #35514c; border-radius: 6px; box-shadow: 16px 18px 38px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transform: translateX(-34px) scale(.96); transform-origin: left center; transition: opacity 280ms ease, transform 380ms cubic-bezier(.16, 1, .3, 1); }
.community-redesign .community-card.profile-opens-left .community-profile-preview-panel { right: calc(100% + 9px); left: auto; transform: translateX(34px) scale(.96); transform-origin: right center; }
.community-redesign .community-card.is-profile-expanded .community-profile-preview-panel { z-index: 8; opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }
.community-redesign .community-profile-preview-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid #2b3c39; }
.community-redesign .community-profile-preview-header > div { display: grid; gap: 2px; }
.community-redesign .community-profile-preview-header strong { color: #f0f0f2; font-size: 13px; font-weight: 680; }
.community-redesign .community-profile-preview-kicker { color: #73c9ba; font: 600 8px/1.4 Consolas, monospace; }
.community-redesign .community-profile-master { flex: 0 0 auto; padding: 4px 6px; color: #a9d8d0; background: #172522; border: 1px solid #2d4b45; border-radius: 3px; font: 600 8px/1.3 Consolas, monospace; text-transform: uppercase; }
.community-redesign .community-profile-target-list { display: grid; gap: 4px; padding-top: 10px; }
.community-redesign .community-profile-target { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; padding: 6px 8px; color: #a9aaaf; background: #131d1b; border-left: 2px solid #355c55; opacity: 0; transform: translateY(-12px); }
.community-redesign .community-card.is-profile-expanded .community-profile-target { animation: communityTargetDrop 330ms cubic-bezier(.2, .8, .2, 1) calc(160ms + var(--target-index) * 42ms) both; }
.community-redesign .community-profile-target-name { display: inline-flex; align-items: center; min-width: 0; gap: 7px; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.community-redesign .community-profile-target-name svg { flex: 0 0 auto; width: 13px; height: 13px; color: #76b7ad; }
.community-redesign .community-profile-target-volume { flex: 0 0 auto; color: #c9e6e1; font: 600 9px/1.4 Consolas, monospace; }
.community-redesign .community-profile-target-empty { margin: 10px 0 0; color: #85858c; font-size: 11px; line-height: 1.55; }
.community-redesign .community-profile-preview-loading { display: grid; gap: 7px; padding-top: 4px; }
.community-redesign .community-profile-preview-loading span { height: 25px; background: #16221f; border: 1px solid #273b37; animation: communityLoading 700ms ease-in-out infinite alternate; }
.community-redesign .community-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; min-width: 0; padding: 19px; }
.community-redesign .community-card .changelog-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.community-redesign .community-card .changelog-meta > span:last-child { color: #707077; font: 600 9px/1.4 Consolas, monospace; text-transform: uppercase; }
.community-redesign .community-card .release-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; color: #9dcac2; background: #17201e; border: 1px solid #2e4b45; border-radius: 3px; font: 600 8px/1.3 Consolas, monospace; text-transform: uppercase; }
.community-redesign .community-card-title { margin: 3px 0 0; color: #f0f0f2; font-size: 18px; font-weight: 680; line-height: 1.25; }
.community-redesign .community-card-copy { display: -webkit-box; min-height: 44px; margin: 0; overflow: hidden; color: #96969d; font-size: 13px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.community-card-facts { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 2px; color: #797980; font-size: 11px; }
.community-card-facts span { display: inline-flex; align-items: center; gap: 5px; }
.community-card-facts svg { width: 12px; height: 12px; }
.community-redesign .community-card[data-community-type="sound"] .community-card-media::after { display: none; }
.community-redesign .community-sound-cover-button { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; width: 100%; padding: 0; color: #ffaaa3; background: transparent; border: 0; cursor: pointer; }
.community-redesign .community-sound-cover-button::after { content: ""; position: absolute; inset: 0; background: rgba(255, 170, 163, .035); opacity: 0; transition: opacity 160ms ease; }
.community-redesign .community-sound-cover-button:hover::after,
.community-redesign .community-sound-cover-button:focus-visible::after { opacity: 1; }
.community-redesign .community-sound-cover-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.community-redesign .community-sound-cover-button > svg { position: relative; z-index: 1; transition: color 160ms ease, filter 160ms ease, transform 160ms ease; }
.community-redesign .community-sound-cover-button:hover > svg { transform: scale(1.08); }
.community-redesign .community-card-media.is-playing .community-sound-cover-button > svg { color: #ffc0ba; filter: drop-shadow(0 0 8px rgba(255, 133, 124, .45)); animation: communitySoundPulse 900ms ease-in-out infinite alternate; }
.community-redesign .community-card-media.is-loading .community-sound-cover-button > svg { opacity: .6; }
.community-redesign .community-sound-cover-button img { width: 100%; height: 100%; object-fit: cover; }
.community-redesign .community-cover-progress { --preview-progress: 0%; position: absolute; right: 0; bottom: 0; left: 0; z-index: 4; width: 100%; height: 10px; margin: 0; appearance: none; opacity: 0; pointer-events: none; background: linear-gradient(to right, #ff9188 0 var(--preview-progress), #4a302f var(--preview-progress) 100%) center bottom / 100% 2px no-repeat; border: 0; cursor: pointer; transition: opacity 160ms ease, background-size 160ms ease; }
.community-redesign .community-card-media.has-preview .community-cover-progress { opacity: 1; pointer-events: auto; }
.community-redesign .community-cover-progress:hover,
.community-redesign .community-cover-progress:focus-visible { background-size: 100% 4px; outline: 0; }
.community-redesign .community-cover-progress::-webkit-slider-runnable-track { height: 10px; background: transparent; }
.community-redesign .community-cover-progress::-webkit-slider-thumb { width: 9px; height: 9px; margin-top: .5px; appearance: none; opacity: 0; background: #ffaaa3; border: 2px solid #191111; border-radius: 50%; transition: opacity 120ms ease; }
.community-redesign .community-cover-progress:hover::-webkit-slider-thumb,
.community-redesign .community-cover-progress:focus-visible::-webkit-slider-thumb { opacity: 1; }
.community-redesign .community-cover-progress::-moz-range-track { height: 2px; background: transparent; }
.community-redesign .community-cover-progress::-moz-range-thumb { width: 7px; height: 7px; opacity: 0; background: #ffaaa3; border: 2px solid #191111; border-radius: 50%; }
.community-redesign .community-cover-progress:hover::-moz-range-thumb,
.community-redesign .community-cover-progress:focus-visible::-moz-range-thumb { opacity: 1; }
.community-redesign .community-sound-status { position: absolute; right: 10px; bottom: 9px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; pointer-events: none; font: 600 9px/1.4 Consolas, monospace; }
.community-redesign .community-cover-time { max-width: 0; overflow: hidden; color: #c7847f; opacity: 0; white-space: nowrap; transition: max-width 180ms ease, opacity 180ms ease; }
.community-redesign .community-card-media.has-preview .community-cover-time { max-width: 100px; opacity: 1; }
.community-redesign .community-sound-label { color: #c7847f; }
.community-redesign .community-card .release-actions { display: flex; margin-top: auto; padding-top: 8px; }
.community-redesign .community-download-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 39px; padding: 8px 13px; color: #dcdce0; background: #19191c; border: 1px solid #36363b; border-radius: 4px; font-size: 11px; font-weight: 700; cursor: pointer; }
.community-redesign .community-download-button:hover { color: #0b1715; background: var(--accent); border-color: var(--accent); }
.community-redesign .community-download-button:disabled { opacity: .6; cursor: wait; }
.community-redesign .community-download-button svg { width: 14px; height: 14px; }

.community-empty-state { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; min-height: 190px; padding: 34px; background: #111113; border: 1px dashed #35353a; }
.community-empty-icon { display: grid; place-items: center; width: 54px; height: 54px; color: var(--accent); background: #111c1a; border: 1px solid #31514b; border-radius: 5px; }
.community-empty-icon svg { width: 24px; height: 24px; }
.community-empty-state h3 { margin: 0; font-size: 20px; }
.community-empty-state p { max-width: 560px; margin: 7px 0 0; color: #85858c; font-size: 13px; line-height: 1.6; }

.community-loading-state { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.community-loading-state span { min-height: 340px; background: #111113; border: 1px solid #252529; border-radius: 6px; animation: communityLoading 1.1s ease-in-out infinite alternate; }
@keyframes communityLoading { to { background: #151517; border-color: #303034; } }
@keyframes communitySoundPulse { to { transform: scale(1.08); opacity: .72; } }
@keyframes communityProfileSpin { to { transform: rotate(360deg) scale(1.04); } }
@keyframes communityTargetDrop { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .community-intro-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 42px; }
  .community-redesign .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-loading-state { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-loading-state span:last-child { display: none; }
}
@media (max-width: 720px) {
  .community-page-main { padding-top: 68px; }
  .community-intro { padding-top: 44px; }
  .community-intro-layout { grid-template-columns: 1fr; gap: 30px; }
  .community-intro h1 { font-size: 50px; }
  .community-intro-index { min-height: 0; padding-left: 0; border-left: 0; }
  .community-library-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .community-redesign .community-filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-redesign .log-filter:first-child { grid-column: 1 / -1; }
  .community-redesign .community-card.is-profile-expanded { overflow: hidden; }
  .community-redesign .community-profile-preview-panel,
  .community-redesign .community-card.profile-opens-left .community-profile-preview-panel { top: 0; right: 0; left: 0; width: 100%; max-height: 100%; border-radius: 5px 5px 0 0; transform: translateX(28px); transform-origin: right center; }
  .community-redesign .community-card.is-profile-expanded .community-profile-preview-panel { transform: translateX(0); }
}
@media (max-width: 560px) {
  .community-redesign .lp-shell { width: calc(100% - 34px); }
  .community-intro h1 { font-size: 42px; }
  .community-redesign .community-grid, .community-loading-state { grid-template-columns: 1fr; }
  .community-loading-state span:not(:first-child) { display: none; }
  .community-empty-state { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .community-redesign .community-card { transition: none; }
  .community-loading-state span { animation: none; }
  .community-redesign .community-sound-cover-button > svg { animation: none !important; transition: none; }
  .community-redesign .community-card.is-profile-spinning .community-profile-cover-button > svg,
  .community-redesign .community-card.is-profile-spinning .community-profile-cover-button > img,
  .community-redesign .community-card.is-profile-expanded .community-profile-target { animation: none; opacity: 1; transform: none; }
  .community-redesign .community-profile-preview-panel { transition: none; }
  .community-redesign .community-cover-progress,
  .community-redesign .community-cover-time { transition: none; }
}
