:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #d8ddd5;
  color: #171717;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(145deg, rgba(29, 91, 93, 0.18), transparent 36%),
    linear-gradient(330deg, rgba(82, 77, 69, 0.18), transparent 38%),
    #d8ddd5;
}

body.is-login-screen {
  background: #050505;
}

body.is-dark-theme:not(.is-login-screen) {
  background:
    linear-gradient(145deg, rgba(45, 127, 132, 0.16), transparent 36%),
    linear-gradient(330deg, rgba(132, 71, 62, 0.14), transparent 40%),
    #111412;
  color: #f2f0ea;
}

body.is-feed-view-active:not(.is-login-screen) {
  background:
    radial-gradient(circle at 50% 8%, rgba(55, 77, 78, 0.18), transparent 42%),
    #050606;
  color: #f2f0ea;
}

button,
input {
  font: inherit;
}

button {
  white-space: nowrap;
}

.app-shell {
  width: min(100% - 32px, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

body.is-login-screen .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: block;
  padding: 0;
}

.login-panel {
  width: min(100%, 420px);
  padding: 30px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 80px rgba(23, 23, 23, 0.11);
}

.login-panel.login-sequence {
  position: relative;
  width: 100%;
  min-height: 420vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #050505;
  box-shadow: none;
}

.login-sequence-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #050505;
}

.login-sequence-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.login-sequence-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.12) 44%, rgba(5, 5, 5, 0.7)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.28), transparent 42%, rgba(5, 5, 5, 0.66));
  pointer-events: none;
}

.login-sequence-intro {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  top: clamp(28px, 8vh, 92px);
  z-index: 2;
  width: min(520px, calc(100% - 40px));
  color: #f6f4ef;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.login-sequence-intro.is-hidden {
  opacity: 0;
  transform: translateY(-16px);
}

.login-sequence-intro p {
  margin: 0 0 10px;
  color: rgba(246, 244, 239, 0.74);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-sequence-intro h1 {
  max-width: 9ch;
  color: #ffffff;
  font-size: clamp(3.3rem, 9vw, 8.4rem);
  line-height: 0.88;
}

.login-scroll-cue {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  bottom: 36px;
  z-index: 2;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(246, 244, 239, 0.26);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.28);
  color: rgba(246, 244, 239, 0.76);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.login-scroll-cue.is-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.login-dialog-shell {
  position: fixed;
  left: clamp(18px, 5vw, 72px);
  bottom: clamp(18px, 8vh, 84px);
  z-index: 4;
  width: min(420px, calc(100vw - 36px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(26px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.login-dialog-shell.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.login-dialog-card {
  padding: 26px;
  border: 1px solid rgba(246, 244, 239, 0.18);
  border-radius: 8px;
  background: rgba(246, 244, 239, 0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.login-dialog-card .brand-lockup {
  margin-bottom: 18px;
}

.login-dialog-card h2 {
  font-size: 2.1rem;
}

.login-mode-tabs,
.account-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.login-mode-tabs button,
.account-auth-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5b5249;
  cursor: pointer;
  font-weight: 900;
}

.login-mode-tabs button[aria-pressed="true"],
.account-auth-tabs button[aria-pressed="true"] {
  background: #171717;
  color: #ffffff;
}

.login-mode-tabs button:disabled,
.account-auth-tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.brand-lockup {
  margin-bottom: 28px;
}

.brand-lockup p,
.app-header p,
.eyebrow {
  margin: 0 0 8px;
  color: #5e6864;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 2.45rem;
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.login-form {
  display: grid;
  gap: 20px;
}

label {
  display: grid;
  gap: 8px;
  color: #303735;
  font-size: 0.92rem;
  font-weight: 700;
}

.search-field {
  width: 100%;
  margin-bottom: 20px;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 6px;
  background: #ffffff;
  color: #171717;
}

input:focus {
  border-color: #1c6f78;
  outline: 3px solid rgba(27, 114, 128, 0.18);
}

.primary-button,
.secondary-button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: #1d6a73;
  color: #ffffff;
}

.secondary-button {
  padding: 0 18px;
  background: #171717;
  color: #ffffff;
}

.compact-button {
  min-height: 40px;
  padding: 0 16px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: #9a3d32;
  font-size: 0.92rem;
}

.gallery-app {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 64px);
}

.gallery-view {
  --home-card-gap: 18px;
  --home-card-columns: 3;
  --home-card-width: calc((100% - (var(--home-card-gap) * 2)) / 3);

  min-width: 0;
}

.gallery-view.is-compact-cards {
  --home-card-columns: 5;
  --home-card-width: calc((100% - (var(--home-card-gap) * 4)) / 5);
}

.site-header,
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  position: relative;
  z-index: 5;
  margin-bottom: 14px;
  padding: 10px 0 18px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}

body.is-account-panel-open .site-header {
  z-index: 90;
}

.logo-placeholder {
  min-width: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #171717;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.is-dark-theme .site-header {
  border-bottom-color: rgba(242, 240, 234, 0.13);
}

body.is-dark-theme .logo-placeholder {
  color: #f2f0ea;
}

body.is-feed-view-active .site-header {
  border-bottom-color: rgba(242, 240, 234, 0.08);
}

body.is-feed-view-active .logo-placeholder,
body.is-feed-view-active .nav-link {
  color: #f2f0ea;
}

.logo-placeholder:focus {
  outline: 3px solid rgba(27, 114, 128, 0.18);
  outline-offset: 4px;
}

.logo-placeholder:focus:not(:focus-visible),
.nav-link:focus:not(:focus-visible) {
  outline: 0;
}

.logo-image {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.site-nav {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-link {
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #303735;
  cursor: pointer;
  font-weight: 800;
}

body.is-dark-theme .nav-link {
  color: #d6d2ca;
}

.nav-link:hover,
.nav-link:focus,
.nav-link[aria-current="page"],
.nav-link[aria-expanded="true"] {
  color: #1d6a73;
  border-bottom-color: #1d6a73;
}

.nav-link:focus {
  outline: 3px solid rgba(27, 114, 128, 0.18);
  outline-offset: 3px;
}

.basket-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.basket-count {
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #1d6a73;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
}

.account-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(440px, calc(100vw - 24px));
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  align-content: start;
  gap: 14px;
  padding: 24px;
  overflow-y: auto;
  border-left: 1px solid rgba(23, 23, 23, 0.14);
  background:
    linear-gradient(145deg, rgba(29, 91, 93, 0.12), transparent 36%),
    linear-gradient(330deg, rgba(82, 77, 69, 0.12), transparent 38%),
    #d8ddd5;
  box-shadow: -28px 0 90px rgba(23, 23, 23, 0.26);
}

body.is-account-panel-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(19, 21, 20, 0.24);
}

body.is-dark-theme .account-panel {
  border-color: rgba(242, 240, 234, 0.14);
  background:
    linear-gradient(145deg, rgba(45, 127, 132, 0.12), transparent 36%),
    linear-gradient(330deg, rgba(132, 71, 62, 0.1), transparent 40%),
    #111412;
  box-shadow: -28px 0 90px rgba(0, 0, 0, 0.52);
}

.account-panel[hidden] {
  display: none;
}

.basket-panel {
  grid-template-rows: auto 1fr;
}

.basket-summary-card {
  align-content: start;
}

.account-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 4px;
}

.account-panel-header h2 {
  font-size: 2.2rem;
}

.account-close-button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.account-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.06);
}

.account-profile-card {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
}

.account-avatar {
  width: 52px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1d6a73;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 950;
}

.account-status {
  margin: 0;
  color: #2d3432;
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.account-substatus,
.account-card-heading p {
  margin: 4px 0 0;
  color: #5f6864;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.account-card-heading h3 {
  margin: 0;
  font-size: 1.05rem;
}

.account-auth-tabs {
  margin-bottom: 0;
}

.account-auth-form {
  display: grid;
  gap: 10px;
}

.account-auth-form label {
  gap: 5px;
  font-size: 0.78rem;
}

.account-name-field.is-hidden {
  display: none !important;
}

.account-auth-form input {
  min-height: 38px;
}

.account-auth-form .primary-button {
  min-height: 38px;
}

.account-panel .secondary-button,
.account-panel .primary-button {
  width: 100%;
}

.account-actions-card {
  align-items: flex-start;
}

.account-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.account-panel .account-admin-link {
  width: auto;
  min-height: 28px;
  padding: 0 9px;
  border-color: rgba(44, 52, 49, 0.16);
  background: transparent;
  color: #5f6864;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
}

.account-panel .account-admin-link:hover,
.account-panel .account-admin-link:focus-visible {
  border-color: rgba(29, 106, 115, 0.28);
  background: rgba(29, 106, 115, 0.08);
  color: #1d6a73;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-panel .theme-toggle[aria-pressed="true"] {
  background: #dfeceb;
  color: #1d6a73;
}

body.is-dark-theme .secondary-button {
  background: #f2f0ea;
  color: #151817;
}

body.is-dark-theme .account-panel .account-admin-link {
  border-color: rgba(242, 240, 234, 0.16);
  background: transparent;
  color: #b8b4ab;
}

body.is-dark-theme .account-panel .account-admin-link:hover,
body.is-dark-theme .account-panel .account-admin-link:focus-visible {
  border-color: rgba(242, 240, 234, 0.26);
  background: rgba(242, 240, 234, 0.08);
  color: #f2f0ea;
}

body.is-dark-theme .account-panel .theme-toggle[aria-pressed="true"] {
  background: #1d6a73;
  color: #ffffff;
}

body.is-dark-theme .account-status {
  color: #f2f0ea;
}

body.is-dark-theme .account-substatus,
body.is-dark-theme .account-card-heading p {
  color: #b8b4ab;
}

body.is-dark-theme .account-card {
  border-color: rgba(242, 240, 234, 0.12);
  background: #202622;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.basket-item-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.basket-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-areas:
    "preview body"
    "preview price"
    "preview actions";
  gap: 9px 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(29, 106, 115, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.07);
}

.basket-item-preview {
  grid-area: preview;
  position: relative;
  width: 92px;
  min-height: 126px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #111614;
  color: #d8ddd5;
  font-size: 0.68rem;
  font-weight: 850;
}

.basket-item-preview img,
.basket-item-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.basket-item-body {
  grid-area: body;
  min-width: 0;
  align-self: start;
}

.basket-item h3 {
  margin: 0;
  color: #202524;
  font-size: 1rem;
  line-height: 1.12;
}

.basket-item-meta {
  margin: 6px 0 0;
  color: #5f6864;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.basket-item-assets {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.basket-item-assets span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(29, 106, 115, 0.1);
  color: #1d6a73;
  font-size: 0.7rem;
  font-weight: 900;
}

.basket-item-price-wrap {
  grid-area: price;
  width: max-content;
  max-width: 100%;
  display: inline-grid;
  gap: 2px;
  align-self: end;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(223, 236, 235, 0.9);
}

.basket-item-price-wrap span {
  color: #5f6864;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.basket-item-price-wrap strong {
  color: #1d6a73;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.basket-item-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.basket-configure-button,
.basket-remove-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.basket-configure-button {
  border: 1px solid rgba(29, 106, 115, 0.2);
  background: #1d6a73;
  color: #ffffff;
}

.basket-configure-button:hover,
.basket-configure-button:focus-visible {
  background: #15535a;
}

.basket-remove-button {
  border: 1px solid transparent;
  background: transparent;
  color: #8d312b;
}

.basket-remove-button:hover,
.basket-remove-button:focus-visible {
  border-color: rgba(141, 49, 43, 0.18);
  background: rgba(141, 49, 43, 0.07);
}

.basket-configure-button:focus-visible,
.basket-remove-button:focus-visible {
  outline: 3px solid rgba(29, 106, 115, 0.18);
  outline-offset: 2px;
}

body.is-dark-theme .basket-item h3 {
  color: #f2f0ea;
}

body.is-dark-theme .basket-item-assets span {
  background: rgba(122, 209, 215, 0.14);
  color: #7bd1d7;
}

body.is-dark-theme .basket-item-price-wrap {
  background: rgba(74, 160, 168, 0.14);
}

body.is-dark-theme .basket-item-price-wrap span {
  color: #b8b4ab;
}

body.is-dark-theme .basket-item-price-wrap strong {
  color: #7bd1d7;
}

body.is-dark-theme .basket-configure-button {
  border-color: rgba(122, 209, 215, 0.22);
  background: #4aa0a8;
  color: #101412;
}

body.is-dark-theme .basket-configure-button:hover,
body.is-dark-theme .basket-configure-button:focus-visible {
  background: #7bd1d7;
}

@media (max-width: 480px) {
  .basket-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .basket-item-preview {
    width: 76px;
    min-height: 112px;
  }

  .basket-item h3 {
    font-size: 0.92rem;
  }
}

.basket-empty {
  margin: 0;
}

.basket-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
  color: #303735;
  font-weight: 900;
}

.basket-total-row strong {
  color: #1d6a73;
}

body.is-dark-theme .account-close-button {
  border-color: rgba(242, 240, 234, 0.14);
  background: #f2f0ea;
  color: #151817;
}

body.is-dark-theme .account-auth-tabs {
  border-color: rgba(242, 240, 234, 0.14);
  background: #1b201e;
}

body.is-dark-theme .account-auth-tabs button {
  color: #d6d2ca;
}

body.is-dark-theme .account-auth-tabs button[aria-pressed="true"] {
  background: #f2f0ea;
  color: #151817;
}

.connection-status {
  min-width: 138px;
  color: #5b5249;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.connection-status.is-online {
  color: #287a48;
}

.connection-status.is-error {
  color: #a84a3d;
}

.view-heading {
  margin-bottom: 18px;
}

.coming-soon-view {
  min-height: 420px;
  padding: 48px 0;
}

.coming-soon-view h2 {
  margin-bottom: 12px;
}

.coming-soon-view p:last-child {
  color: #5e6864;
  font-size: 1.05rem;
  font-weight: 700;
}

body.is-dark-theme .coming-soon-view p:last-child,
body.is-dark-theme .group-subtitle,
body.is-dark-theme .group-text,
body.is-dark-theme .collection-card-body p,
body.is-dark-theme .card-year,
body.is-dark-theme .description,
body.is-dark-theme .like-message,
body.is-dark-theme .empty-state,
body.is-dark-theme .connection-status {
  color: #b8b4ab;
}

.site-footer {
  margin-top: 34px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
  color: #4f5854;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

body.is-dark-theme .site-footer {
  border-top-color: rgba(242, 240, 234, 0.13);
  color: #b8b4ab;
}

body.is-feed-view-active .site-footer {
  border-top-color: rgba(242, 240, 234, 0.08);
  color: rgba(242, 240, 234, 0.58);
}

.site-footer p {
  margin: 0;
}

.vip-feature {
  position: relative;
  margin-bottom: 22px;
}

.vip-view-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(15, 20, 19, 0.58);
  backdrop-filter: blur(12px);
}

.vip-view-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #171717;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.vip-view-button.wide {
  width: auto;
  padding: 0 10px;
}

.vip-view-button[aria-pressed="true"] {
  background: #1d6a73;
  color: #ffffff;
}

.vip-view-button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

.vip-track {
  display: grid;
  gap: 10px;
}

.vip-card {
  position: relative;
  min-width: 0;
  padding: 0;
  display: block;
  aspect-ratio: 2 / 1;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background: #dfe6e0;
  cursor: pointer;
  overflow: hidden;
}

.vip-card:focus {
  outline: 3px solid rgba(27, 114, 128, 0.26);
  outline-offset: 2px;
}

.vip-card.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 3px solid rgba(255, 255, 255, 0.36);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
  pointer-events: none;
}

.vip-card.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(15, 20, 19, 0.22);
  pointer-events: none;
}

.vip-thumbnail-strip {
  display: grid;
  grid-auto-columns: 74px;
  grid-auto-flow: column;
  gap: 8px;
  justify-content: end;
  overflow-x: auto;
  padding-bottom: 2px;
}

.vip-thumbnail {
  position: relative;
  width: 74px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 6px;
  background: #dfe6e0;
  color: #5f6864;
  cursor: pointer;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 800;
}

.vip-thumbnail[aria-pressed="true"] {
  border-color: #1d6a73;
  box-shadow: inset 0 0 0 2px rgba(29, 106, 115, 0.22);
}

.vip-thumbnail:focus {
  outline: 3px solid rgba(27, 114, 128, 0.26);
  outline-offset: 2px;
}

.collections-section,
.years-section,
.recent-section,
.suggested-section,
.liked-section {
  margin-bottom: 22px;
}

.section-label {
  display: block;
  margin: 0 0 8px;
  color: #303735;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

body.is-dark-theme .section-label,
body.is-dark-theme label,
body.is-dark-theme .eyebrow,
body.is-dark-theme .like-count,
body.is-dark-theme .metadata-list dd,
body.is-dark-theme .media-option,
body.is-dark-theme .detail-heading h2 {
  color: #f2f0ea;
}

body.is-dark-theme input {
  border-color: rgba(242, 240, 234, 0.16);
  background: #1b201e;
  color: #f2f0ea;
}

body.is-dark-theme input:focus {
  border-color: #4aa0a8;
  outline-color: rgba(74, 160, 168, 0.22);
}

.collection-grid {
  display: flex;
  gap: var(--home-card-gap);
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.collection-grid .public-collection-card {
  flex: 0 0 var(--home-card-width);
  scroll-snap-align: start;
}

.year-scroll {
  display: flex;
  gap: var(--home-card-gap);
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.year-scroll .public-collection-card {
  flex: 0 0 var(--home-card-width);
  scroll-snap-align: start;
}

.image-scroll {
  display: flex;
  gap: var(--home-card-gap);
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.image-scroll .image-card {
  flex: 0 0 var(--home-card-width);
  scroll-snap-align: start;
}

.public-collection-card {
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.11);
  color: #171717;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  white-space: normal;
}

body.is-dark-theme .public-collection-card,
body.is-dark-theme .image-card,
body.is-dark-theme .metadata-panel,
body.is-dark-theme .media-option {
  border-color: rgba(242, 240, 234, 0.12);
  background: rgba(27, 32, 30, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  color: #f2f0ea;
}

.public-collection-card:focus {
  outline: 3px solid rgba(27, 114, 128, 0.26);
  outline-offset: 2px;
}

.collection-card-body {
  height: 86px;
  min-height: 86px;
  padding: 14px;
  overflow: hidden;
}

.collection-card-body h3 {
  margin-bottom: 6px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.collection-card-body p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #5e6864;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gallery-view.is-compact-cards .collection-card-body,
.gallery-view.is-compact-cards .card-text {
  height: 58px;
  min-height: 58px;
  padding: 10px;
}

.gallery-view.is-compact-cards .collection-card-body h3,
.gallery-view.is-compact-cards .card-title {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.16;
}

.gallery-view.is-compact-cards .collection-card-body p,
.gallery-view.is-compact-cards .card-year {
  display: none;
}

.collection-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  border-top: 1px solid rgba(23, 23, 23, 0.08);
  background: #dfe6e0;
}

body.is-dark-theme .collection-mosaic,
body.is-dark-theme .collection-mosaic-item,
body.is-dark-theme .collection-mosaic-placeholder,
body.is-dark-theme .card-media,
body.is-dark-theme .vip-thumbnail,
body.is-dark-theme .group-thumbnail,
body.is-dark-theme .media-option-preview {
  background: #232a27;
  color: #aeb8b2;
}

.collection-mosaic-item,
.collection-mosaic-placeholder {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #dfe6e0;
}

.collection-mosaic-item:nth-child(odd),
.collection-mosaic-placeholder:nth-child(odd) {
  border-right: 1px solid rgba(23, 23, 23, 0.08);
}

.collection-mosaic-item:nth-child(-n + 2),
.collection-mosaic-placeholder:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(var(--home-card-columns), minmax(0, 1fr));
  gap: var(--home-card-gap);
}

.image-card {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.11);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  white-space: normal;
}

.image-card:focus {
  outline: 3px solid rgba(27, 114, 128, 0.26);
  outline-offset: 2px;
}

.card-text {
  height: 86px;
  min-height: 86px;
  padding: 14px;
  overflow: hidden;
}

.card-year {
  margin-bottom: 4px;
  color: #5e6864;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.card-title {
  margin-bottom: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vip-card,
.vip-thumbnail,
.group-media,
.group-thumbnail,
.collection-mosaic-item,
.card-media,
.detail-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #dfe6e0;
  color: #5f6864;
  font-weight: 800;
  text-align: center;
}

.card-media {
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  border-top: 1px solid rgba(23, 23, 23, 0.08);
}

.vip-card img,
.vip-card video,
.vip-thumbnail img,
.vip-thumbnail video,
.group-media img,
.group-media video,
.group-thumbnail img,
.group-thumbnail video,
.collection-mosaic-item img,
.collection-mosaic-item video,
.card-media img,
.card-media video,
.detail-media img,
.detail-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.vip-card img,
.vip-card video,
.vip-thumbnail img,
.vip-thumbnail video,
.group-media img,
.group-media video,
.group-thumbnail img,
.group-thumbnail video,
.collection-mosaic-item img,
.collection-mosaic-item video,
.card-media img,
.card-media video {
  object-fit: cover;
}

.card-media.is-motion-media {
  background: #dfe6e0;
}

.card-media.is-motion-media img,
.card-media.is-motion-media video {
  object-fit: cover;
  object-position: center 70%;
}

.vip-card.is-motion-media img,
.vip-card.is-motion-media video {
  object-fit: cover;
  object-position: center center;
}

.vip-card.is-cropped img,
.vip-card.is-cropped video {
  object-position: center center;
}

.detail-media img,
.detail-media video {
  object-fit: contain;
}

.detail-media.is-motion-media img,
.detail-media.is-motion-media video {
  object-fit: cover;
  object-position: center center;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  padding: 42px 0;
  color: #5f6864;
  font-weight: 700;
  text-align: center;
}

.home-empty-state {
  width: min(100%, 760px);
  margin: 34px auto 54px;
  padding: 42px 28px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 48px rgba(23, 23, 23, 0.08);
}

.home-empty-state h2 {
  margin: 0 0 10px;
  color: #171717;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
}

.home-empty-state p {
  max-width: 52ch;
  margin: 0 auto;
  color: #5f6864;
  font-size: 1rem;
  line-height: 1.55;
}

body.is-dark-theme .home-empty-state {
  border-color: rgba(242, 240, 234, 0.12);
  background: rgba(24, 28, 26, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

body.is-dark-theme .home-empty-state h2 {
  color: #f2f0ea;
}

body.is-dark-theme .home-empty-state p {
  color: #b8b4ab;
}

.feed-view {
  min-height: calc(100vh - 150px);
}

.feed-toolbar {
  margin-bottom: 14px;
  display: flex;
  justify-content: flex-end;
}

.feed-return-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #171717;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.feed-return-icon {
  display: none;
}

.feed-return-label {
  display: inline-block;
}

.feed-return-button:focus {
  outline: 3px solid rgba(27, 114, 128, 0.24);
  outline-offset: 2px;
}

.feed-shell {
  position: relative;
  min-height: min(720px, calc(100vh - 170px));
  display: grid;
  place-items: center;
}

.feed-viewport {
  width: min(430px, 100%);
  height: min(720px, calc(100vh - 170px));
  min-height: 520px;
  border: 1px solid rgba(242, 240, 234, 0.12);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feed-viewport::-webkit-scrollbar {
  display: none;
}

.feed-card {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: stretch;
  scroll-snap-align: start;
  overflow: hidden;
  background: #050505;
  color: #ffffff;
}

.feed-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050505;
}

.feed-media img,
.feed-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.feed-info {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 92px 20px 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  color: #ffffff;
}

.feed-source {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feed-info h3 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.34rem;
  line-height: 1.1;
}

.feed-description {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.feed-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.feed-more-button {
  width: max-content;
  min-height: 34px;
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #171717;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
}

.feed-more-button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

.feed-heart-button {
  position: absolute;
  bottom: 22px;
  right: 18px;
  z-index: 4;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.52);
  color: #ffffff;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.feed-heart-button .heart-icon {
  color: rgba(255, 255, 255, 0.72);
}

.feed-heart-button.is-liked {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.92);
  color: #171717;
}

.feed-heart-button.is-liked .heart-icon {
  color: #c4465b;
}

.feed-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 23, 23, 0.88);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.feed-arrow:disabled {
  cursor: default;
  opacity: 0.3;
}

.feed-arrow-prev {
  left: max(0px, calc(50% - 286px));
}

.feed-arrow-next {
  right: max(0px, calc(50% - 286px));
}

.feed-empty {
  padding: 48px 20px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-align: center;
}

.group-view {
  min-height: calc(100vh - 150px);
}

.group-toolbar {
  margin-bottom: 14px;
  display: flex;
  justify-content: flex-end;
}

.group-view-controls {
  margin-left: auto;
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(15, 20, 19, 0.58);
  backdrop-filter: blur(12px);
}

.group-stage {
  display: grid;
  gap: 14px;
}

.group-heading {
  width: min(760px, 100%);
}

.group-heading h2 {
  margin-bottom: 8px;
}

.group-subtitle {
  margin: 0;
  color: #4f5854;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.group-text {
  width: min(820px, 100%);
  margin: 2px 0 0;
  color: #303735;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
}

.group-player {
  position: relative;
  min-height: 430px;
  aspect-ratio: 2 / 1;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 24px 70px rgba(23, 23, 23, 0.18);
  overflow: hidden;
}

.group-media {
  position: absolute;
  inset: 0;
  background: #050505;
}

.group-info-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  width: min(430px, calc(100% - 36px));
  padding: 16px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #171717;
  cursor: pointer;
  text-align: left;
  white-space: normal;
  backdrop-filter: blur(12px);
}

body.is-dark-theme .group-info-card {
  border-color: rgba(242, 240, 234, 0.18);
  background: rgba(24, 28, 26, 0.86);
  color: #f2f0ea;
}

.group-info-card:focus {
  outline: 3px solid rgba(255, 255, 255, 0.46);
  outline-offset: 2px;
}

.group-image-year {
  color: #1d6a73;
  font-size: 0.78rem;
  font-weight: 900;
}

.group-info-card strong {
  font-size: 1.32rem;
  line-height: 1.08;
}

.group-image-description {
  display: -webkit-box;
  overflow: hidden;
  color: #3c4441;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.is-dark-theme .group-image-description {
  color: #d2cec6;
}

.group-more-label {
  margin-top: 4px;
  color: #1d6a73;
  font-size: 0.8rem;
  font-weight: 900;
}

.group-thumb-strip {
  display: grid;
  grid-auto-columns: 116px;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.group-thumbnail {
  position: relative;
  width: 116px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 8px;
  background: #dfe6e0;
  color: #5f6864;
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  font-size: 0.72rem;
  font-weight: 800;
}

.group-thumbnail[aria-pressed="true"] {
  border-color: #1d6a73;
  box-shadow: inset 0 0 0 3px rgba(29, 106, 115, 0.28);
}

.group-thumbnail:focus {
  outline: 3px solid rgba(27, 114, 128, 0.26);
  outline-offset: 2px;
}

.group-view.is-compact-thumbs .group-thumb-strip {
  grid-auto-columns: 74px;
}

.group-view.is-compact-thumbs .group-thumbnail {
  width: 74px;
  border-radius: 6px;
}

.image-detail {
  display: grid;
  gap: 18px;
}

.metadata-panel,
.interaction-panel {
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

body.is-dark-theme .metadata-panel,
body.is-dark-theme .interaction-panel {
  border-color: rgba(242, 240, 234, 0.12);
  background: rgba(27, 32, 30, 0.88);
}

.detail-hero {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.detail-heading {
  max-width: 920px;
}

.detail-heading .eyebrow {
  margin-bottom: 6px;
}

.detail-heading h2 {
  max-width: 920px;
  margin: 0;
  color: #171d1b;
  font-size: 4.8rem;
  line-height: 0.96;
}

.detail-viewer {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.detail-media {
  width: 100%;
  min-height: auto;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  background: #111614;
  color: #f4f6f4;
  box-shadow: 0 24px 70px rgba(9, 14, 13, 0.22);
}

.media-options {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x proximity;
}

.media-option {
  flex: 0 0 228px;
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 7px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #303735;
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  text-align: left;
  backdrop-filter: blur(12px);
}

.media-option[aria-pressed="true"] {
  border-color: #1d6a73;
  box-shadow: inset 0 0 0 2px rgba(29, 106, 115, 0.18);
}

body.is-dark-theme .media-option[aria-pressed="true"] {
  border-color: #4aa0a8;
  box-shadow: inset 0 0 0 2px rgba(74, 160, 168, 0.22);
}

.media-option-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #dfe6e0;
  color: #5f6864;
  font-size: 0.76rem;
  font-weight: 800;
}

.media-option-preview img,
.media-option-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-option-preview.is-motion-media {
  background: #000000;
}

.media-option-preview.is-motion-media img,
.media-option-preview.is-motion-media video {
  object-fit: cover;
  object-position: center 70%;
}

.media-option-label {
  min-width: 0;
  padding: 0 8px 9px;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.metadata-panel,
.interaction-panel {
  padding: 18px;
}

.metadata-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.metadata-list div {
  display: grid;
  gap: 4px;
}

.metadata-list dt {
  color: #5e6864;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

body.is-dark-theme .metadata-list dt {
  color: #a9b2ad;
}

.metadata-list dd {
  margin: 0;
  color: #202524;
  font-weight: 700;
  line-height: 1.35;
}

.description {
  margin: 18px 0 0;
  color: #3c4441;
  line-height: 1.55;
}

.tag-list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #dfeceb;
  color: #1d6a73;
  font-size: 0.82rem;
  font-weight: 800;
}

body.is-dark-theme .tag-list span,
body.is-dark-theme .use-image-trigger {
  background: rgba(74, 160, 168, 0.2);
  color: #7bd1d7;
}

.like-section {
  display: grid;
  gap: 12px;
}

.like-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.like-heading .eyebrow,
.like-count,
.like-message {
  margin: 0;
}

.like-count {
  color: #303735;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

.heart-button {
  width: max-content;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(29, 106, 115, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  color: #41504b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 900;
}

.detail-heart-button {
  min-height: 42px;
  padding-inline: 16px;
}

.heart-icon {
  color: #8a9792;
  font-size: 1.2rem;
  line-height: 1;
}

.heart-button.is-liked {
  border-color: rgba(29, 106, 115, 0.28);
  background: #dfeceb;
  color: #1d6a73;
}

.heart-button.is-liked .heart-icon {
  color: #c4465b;
}

.heart-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.heart-button:focus,
.metadata-action-button:focus,
.feedback-trigger:focus,
.dialog-close-button:focus,
.feedback-choice-list button:focus {
  outline: 3px solid rgba(27, 114, 128, 0.22);
  outline-offset: 2px;
}

.like-message {
  min-height: 20px;
  color: #5e6864;
  font-size: 0.86rem;
  font-weight: 700;
}

body.is-dark-theme .heart-button {
  border-color: rgba(122, 209, 215, 0.18);
  background: rgba(242, 240, 234, 0.08);
  color: #f2f0ea;
}

body.is-dark-theme .heart-button.is-liked {
  border-color: rgba(122, 209, 215, 0.28);
  background: rgba(74, 160, 168, 0.2);
  color: #7bd1d7;
}

.feed-heart-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

.feed-heart-button .heart-button-count {
  display: none;
}

body.is-dark-theme .feed-heart-button {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(5, 5, 5, 0.52);
  color: #ffffff;
}

body.is-dark-theme .feed-heart-button.is-liked {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.92);
  color: #171717;
}

.metadata-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.interaction-panel .metadata-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
}

body.is-dark-theme .interaction-panel .metadata-actions {
  border-color: rgba(242, 240, 234, 0.1);
}

.metadata-action-button {
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.feedback-trigger {
  border: 0;
  background: #171717;
  color: #ffffff;
}

.use-image-trigger {
  border: 1px solid rgba(29, 106, 115, 0.28);
  background: #dfeceb;
  color: #1d6a73;
}

.feedback-dialog {
  width: min(100% - 32px, 520px);
  padding: 20px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 8px;
  background: #f4f6f1;
  color: #171717;
  box-shadow: 0 26px 90px rgba(9, 14, 13, 0.24);
}

body.is-dark-theme .feedback-dialog {
  border-color: rgba(242, 240, 234, 0.14);
  background: #171c1a;
  color: #f2f0ea;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}

.feedback-dialog::backdrop {
  background: rgba(14, 19, 18, 0.46);
}

.feedback-dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.feedback-dialog h2 {
  margin: 0;
  font-size: 1.45rem;
}

.dialog-close-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #171717;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.feedback-choice-list {
  display: grid;
  gap: 10px;
}

.feedback-choice-list button {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 6px;
  background: #ffffff;
  color: #303735;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.purchase-dialog-form {
  display: grid;
  gap: 14px;
}

.purchase-option-group {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 8px;
}

.purchase-option-group legend {
  padding: 0 6px;
  color: #5f6864;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.purchase-choice {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #303735;
  cursor: pointer;
  font-weight: 850;
}

.purchase-choice input {
  width: 18px;
  min-height: 18px;
  accent-color: #1d6a73;
}

.purchase-dialog-total {
  padding: 14px;
  border: 1px solid rgba(29, 106, 115, 0.18);
  border-radius: 8px;
  background: #dfeceb;
  color: #1d6a73;
}

.purchase-dialog-total span,
.purchase-dialog-total strong {
  display: block;
}

.purchase-dialog-total span {
  margin-bottom: 4px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.purchase-dialog-total strong {
  font-size: 1.35rem;
}

.purchase-dialog-total p {
  margin: 6px 0 0;
  color: #375f60;
  font-size: 0.84rem;
  font-weight: 750;
}

.purchase-dialog-form .primary-button {
  width: 100%;
}

body.is-dark-theme .feedback-choice-list button {
  border-color: rgba(242, 240, 234, 0.12);
  background: #222825;
  color: #f2f0ea;
}

body.is-dark-theme .basket-count {
  background: #4aa0a8;
  color: #101412;
}

body.is-dark-theme .basket-item {
  border-color: rgba(242, 240, 234, 0.1);
  background: rgba(242, 240, 234, 0.06);
}

body.is-dark-theme .basket-item p,
body.is-dark-theme .purchase-option-group legend,
body.is-dark-theme .purchase-dialog-total p {
  color: #b8b4ab;
}

body.is-dark-theme .basket-total-row {
  border-color: rgba(242, 240, 234, 0.1);
  color: #f2f0ea;
}

body.is-dark-theme .basket-total-row strong {
  color: #7bd1d7;
}

body.is-dark-theme .purchase-option-group,
body.is-dark-theme .purchase-choice {
  border-color: rgba(242, 240, 234, 0.12);
}

body.is-dark-theme .purchase-choice {
  background: #222825;
  color: #f2f0ea;
}

body.is-dark-theme .purchase-dialog-total {
  border-color: rgba(122, 209, 215, 0.2);
  background: rgba(74, 160, 168, 0.16);
  color: #7bd1d7;
}

@media (max-width: 960px) {
  .gallery-view {
    --home-card-columns: 1;
    --home-card-width: 100%;
  }

  .gallery-view.is-compact-cards {
    --home-card-columns: 2;
    --home-card-width: calc((100% - var(--home-card-gap)) / 2);
  }

  .detail-body {
    grid-template-columns: 1fr;
  }

  .detail-media {
    min-height: auto;
  }

  .detail-heading h2 {
    font-size: 3.5rem;
  }

  .group-player {
    min-height: 360px;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 700px) {
  body.is-feed-view-active {
    overflow: hidden;
  }

  .login-panel.login-sequence {
    min-height: 380vh;
  }

  .login-sequence-intro h1 {
    max-width: 8ch;
  }

  .login-dialog-shell {
    left: 12px;
    right: 12px;
    bottom: 14px;
    width: auto;
  }

  .login-dialog-card {
    padding: 18px;
  }

  .app-shell {
    width: min(100% - 24px, 1180px);
    place-items: start center;
    padding: 24px 0;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  body.is-feed-view-active .app-shell {
    width: 100%;
    min-height: 100dvh;
    display: block;
    padding: 0;
  }

  body.is-feed-view-active .gallery-app {
    min-height: 100dvh;
  }

  body.is-feed-view-active .site-header,
  body.is-feed-view-active .site-footer {
    display: none;
  }

  .account-panel {
    right: 0;
    left: auto;
    width: min(100vw, 440px);
  }

  .vip-view-controls {
    top: 8px;
    right: 8px;
  }

  .feed-toolbar {
    justify-content: flex-end;
  }

  .group-toolbar {
    justify-content: flex-end;
  }

  .feed-shell {
    min-height: calc(100vh - 160px);
  }

  .feed-viewport {
    width: 100%;
    height: calc(100vh - 160px);
    min-height: 460px;
  }

  body.is-feed-view-active .feed-view {
    position: fixed;
    inset: 0;
    z-index: 100;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: 0 1fr;
    padding: 0;
    background: #050505;
  }

  body.is-feed-view-active .feed-toolbar {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 20;
    margin: 0;
  }

  body.is-feed-view-active .feed-return-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    border-color: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.62);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
  }

  body.is-feed-view-active .feed-return-icon {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
  }

  body.is-feed-view-active .feed-return-label {
    display: none;
  }

  body.is-feed-view-active .feed-shell,
  body.is-feed-view-active .feed-viewport {
    width: 100%;
    height: 100dvh;
    min-height: 0;
  }

  body.is-feed-view-active .feed-shell {
    display: block;
  }

  body.is-feed-view-active .feed-viewport {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.is-feed-view-active .feed-card {
    min-height: 100dvh;
  }

  body.is-feed-view-active .feed-info {
    padding-bottom: max(22px, calc(env(safe-area-inset-bottom) + 18px));
  }

  .feed-arrow {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .feed-arrow-prev {
    left: 16px;
  }

  .feed-arrow-next {
    right: 16px;
  }

  .group-player {
    min-height: 460px;
    aspect-ratio: auto;
  }

  .group-info-card {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 14px;
  }

  .group-info-card strong {
    font-size: 1.08rem;
  }

  .group-thumb-strip {
    grid-auto-columns: 92px;
  }

  .group-thumbnail {
    width: 92px;
  }

  .group-view.is-compact-thumbs .group-thumb-strip {
    grid-auto-columns: 66px;
  }

  .group-view.is-compact-thumbs .group-thumbnail {
    width: 66px;
  }

  .connection-status {
    min-width: 0;
    text-align: left;
  }

  .search-field {
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .login-panel,
  .metadata-panel,
  .interaction-panel {
    padding: 18px;
  }

  .media-options {
    justify-content: start;
  }

  .media-option {
    flex-basis: min(72vw, 228px);
  }

  .metadata-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .metadata-action-button {
    width: 100%;
  }

  .detail-heading h2 {
    font-size: 2.4rem;
  }

  .detail-media {
    min-height: auto;
    aspect-ratio: 4 / 3;
  }
}
