@font-face {
  font-family: 'GenWanMinF';
  src: url('../../fonts/源古黑體-F.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --record-frame-radius: 32px;
  --record-frame-border: 8px;
  --record-slot-size: 184px;
  --record-slot-edge-gap: 74px;
  --record-slot-top-gap: 50px;
  --record-slot-inner-gap: 34px;
  --record-slot-row-gap: 30px;
}

body {
  background-color: #1a1a2e;
  background-image: url('../../bg-vertical.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Lilita One', 'LilitaOne-Regular', Arial, sans-serif;
}

.record-page {
  position: relative;
}

.record-page .archive-tab--active {
  min-height: 170px;
}

.record-page .archive-card::before {
  display: none;
}

.record-page .archive-card::after {
  display: none;
}

.record-page .archive-card {
  background: transparent;
}

.record-card__body {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  background: transparent;
  border-radius: inherit;
}

.record-lang-switch {
  opacity: 1;
  pointer-events: auto;
}

.record-book {
  position: absolute;
  inset: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: visible;
}

.record-page-panel {
  position: relative;
  width: calc(50% - 21px);
  border: var(--record-frame-border) solid #3a96ff;
  background-clip: padding-box;
  background: #ffffff;
}

.record-page-panel--left {
  border-radius: var(--record-frame-radius) 0 0 var(--record-frame-radius);
}

.record-page-panel--right {
  border-radius: 0 var(--record-frame-radius) var(--record-frame-radius) 0;
}

.record-page-panel--right .record-slot--right-1 {
  position: absolute;
  left: var(--record-slot-edge-gap);
  top: var(--record-slot-top-gap);
}

.record-page-panel--right .record-slot--right-2 {
  position: absolute;
  left: calc(var(--record-slot-edge-gap) + var(--record-slot-size) + var(--record-slot-inner-gap));
  top: var(--record-slot-top-gap);
}

.record-page-panel--right .record-slot--right-3 {
  position: absolute;
  left: var(--record-slot-edge-gap);
  top: calc(var(--record-slot-top-gap) + var(--record-slot-size) + var(--record-slot-row-gap));
}

.record-page-panel--right .record-slot--right-4 {
  position: absolute;
  left: calc(var(--record-slot-edge-gap) + var(--record-slot-size) + var(--record-slot-inner-gap));
  top: calc(var(--record-slot-top-gap) + var(--record-slot-size) + var(--record-slot-row-gap));
}

.record-slot {
  width: var(--record-slot-size);
  height: var(--record-slot-size);
  border-radius: 8px;
  border: 2px solid #3a96ff;
  background: #cfcfcf;
  box-shadow: none;
  overflow: hidden;
}

.record-page-panel--right.record-slots--loading .record-slot__image {
  opacity: 0;
  visibility: hidden;
}

.record-slot__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease;
}

.record-entry {
  width: 100%;
  margin: 0 0 10px;
  border: 1px solid rgba(45, 127, 222, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  color: #111111;
  font-family: 'Lilita One', 'LilitaOne-Regular', Arial, sans-serif;
}

.record-entry__head {
  margin-bottom: 4px;
}

.record-entry__time {
  margin: 0;
  color: #2d7fde;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.record-entry__section + .record-entry__section {
  margin-top: 5px;
}

.record-entry__title {
  margin: 0;
  color: #111111;
  font-size: 14px;
  line-height: 1.25;
}

.record-entry__content {
  margin: 1px 0 0;
  font-size: 18px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: #111111;
}

.record-empty {
  width: 100%;
  margin: 0;
  border: 1px dashed rgba(45, 127, 222, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #111111;
  padding: 10px 8px;
  font-size: 18px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.record-rings {
  position: absolute;
  left: calc(50% - 48px);
  top: 0;
  bottom: 0;
  width: 96px;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 6;
}

.record-rings img {
  width: 110px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(140, 140, 140, 0.35));
}

.record-actions {
  position: absolute;
  right: var(--record-slot-edge-gap);
  bottom: var(--record-slot-edge-gap);
  z-index: 8;
  display: flex;
  gap: 10px;
}

.record-action-btn {
  border: 0;
  padding: 0;
  margin: 0;
  width: 56px;
  height: 56px;
  background: transparent;
  cursor: pointer;
}

.record-action-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.record-action-btn:hover {
  filter: brightness(1.05);
}

#recordDownloadBtn {
  transform: translateY(10px);
}

.record-meta {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.record-list {
  position: absolute;
  z-index: 7;
  display: block;
  padding-right: 6px;
  overflow: auto;
}

.record-list--left {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  bottom: 18px;
  max-height: none;
}

.record-list--right {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  max-height: 170px;
}

.record-list[hidden] {
  overflow: hidden;
  display: none;
}

.record-title {
  margin: 0;
  font-family: 'Lilita One', 'LilitaOne-Regular', Arial, sans-serif;
  color: #2d7fde;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.record-lead,
.record-count {
  margin: 6px 0 0;
  color: #20304a;
  font-size: 12px;
  line-height: 1.4;
}

body.lang-zh {
  font-family: 'Lilita One', 'LilitaOne-Regular', Arial, sans-serif;
}

body.lang-zh .record-title,
body.lang-zh .archive-tab,
body.lang-zh .archive-tab__label {
  font-family: 'Lilita One', 'LilitaOne-Regular', Arial, sans-serif;
}
