@charset "UTF-8";
/* ========================================
 * F1nal Lap — Sidebar Widgets
 *
 * 含まれるもの：
 * - Last Race Widget (.f1nl-lastrace-*)
 * - Standings Widget (.f1nl-standings-*)
 * - Recent Comments Widget (.f1nl-rc-*)
 *
 * ダークモード対応はサイドバー全体ダークトーンの設計で
 * Last Race / Standings 側はベースで黒系のため上書き不要。
 * Recent Comments 側は CSS 変数経由で dark-mode.css が上書きする。
 * ======================================== */

/* ========================================
 * CSS 変数（Recent Comments Widget 用）
 * ダークモード時は dark-mode.css で上書きされる
 * ======================================== */
:root {
  --f1nl-rc-author: #1bb2b2;
  --f1nl-rc-sep: #ccc;
  --f1nl-rc-article: #999;
}

/* ========================================
 * Last Race Widget
 * ======================================== */
.f1nl-lastrace {
  display: block;
  background: linear-gradient(135deg, #0f1923 0%, #1a2a2a 50%, #0f1923 100%);
  border-radius: 12px;
  border: 1px solid #2a3a3a;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.f1nl-lastrace:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 180, 166, .15);
}
.f1nl-lastrace-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--lr-c1, #00b4a6), var(--lr-c3, #00b4a6));
}
.f1nl-lastrace-head {
  padding: 12px 16px;
}
.f1nl-lastrace-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.f1nl-lastrace-label {
  font-size: 10px;
  color: rgba(255, 255, 255, .4);
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 2px;
}
.f1nl-lastrace-gp {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}
.f1nl-lastrace-arrow {
  color: #00b4a6;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  margin-top: 6px;
}
.f1nl-lastrace-podium {
  display: flex;
  gap: 5px;
}
.f1nl-lastrace-driver {
  flex: 1;
  background: rgba(255, 255, 255, .04);
  border-radius: 8px;
  padding: 6px 0;
  text-align: center;
}
.f1nl-lastrace-driver[data-pos="1"] {
  border-top: 2px solid #F5A623;
}
.f1nl-lastrace-driver[data-pos="2"] {
  border-top: 2px solid #C0C0C0;
}
.f1nl-lastrace-driver[data-pos="3"] {
  border-top: 2px solid #CD7F32;
}
.f1nl-lastrace-pos {
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 1px;
}
.f1nl-lastrace-driver[data-pos="1"] .f1nl-lastrace-pos {
  color: #F5A623;
}
.f1nl-lastrace-driver[data-pos="2"] .f1nl-lastrace-pos {
  color: #C0C0C0;
}
.f1nl-lastrace-driver[data-pos="3"] .f1nl-lastrace-pos {
  color: #CD7F32;
}
.f1nl-lastrace-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.f1nl-lastrace-team {
  font-size: 9px;
  color: rgba(255, 255, 255, .35);
}

/* ========================================
 * Standings Widget
 * ======================================== */
.f1nl-standings {
  background: linear-gradient(135deg, #0f1923 0%, #1a2a2a 50%, #0f1923 100%);
  border-radius: 12px;
  border: 1px solid #2a3a3a;
  overflow: hidden;
  position: relative;
}
.f1nl-standings-header {
  padding: 12px 16px 0;
}
.f1nl-standings-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.f1nl-standings-icon {
  font-size: 15px;
}
.f1nl-standings-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.f1nl-standings-subtitle {
  font-size: 10px;
  color: rgba(255, 255, 255, .35);
}
.f1nl-standings-tabs {
  display: flex;
  gap: 4px;
}
.f1nl-standings-tab {
  flex: 1;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: rgba(255, 255, 255, .35);
  border-bottom: 2px solid transparent;
  transition: all .2s;
  font-family: inherit;
}
.f1nl-standings-tab.is-active {
  background: rgba(255, 255, 255, .06);
  color: #00b4a6;
  border-bottom-color: #00b4a6;
}
.f1nl-standings-tab:hover:not(.is-active) {
  color: rgba(255, 255, 255, .55);
}
.f1nl-standings-panel {
  display: none;
  padding: 6px 16px 4px;
  min-height: 240px;
}
.f1nl-standings-panel.is-active {
  display: block;
}
.f1nl-standings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  min-height: 44px;
}
.f1nl-standings-row:last-child {
  border-bottom: none;
}
.f1nl-standings-pos {
  width: 20px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, .5);
}
.f1nl-standings-pos[data-pos="1"] {
  color: #F5A623;
}
.f1nl-standings-pos[data-pos="2"] {
  color: #C0C0C0;
}
.f1nl-standings-pos[data-pos="3"] {
  color: #CD7F32;
}
.f1nl-standings-color {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}
.f1nl-standings-info {
  flex: 1;
  min-width: 0;
}
.f1nl-standings-dname {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f1nl-standings-dteam {
  font-size: 9px;
  color: rgba(255, 255, 255, .3);
}
.f1nl-standings-pts-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.f1nl-standings-bar-bg {
  width: 40px;
  height: 5px;
  background: rgba(255, 255, 255, .06);
  border-radius: 3px;
  overflow: hidden;
}
.f1nl-standings-bar-fill {
  height: 100%;
  border-radius: 3px;
}
.f1nl-standings-pts {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  min-width: 24px;
  text-align: right;
}
.f1nl-standings-link,
.f1nl-standings-link:visited,
.f1nl-standings-link:hover,
.f1nl-standings-link:active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  color: #00b4a6 !important;
  text-decoration: none !important;
  border-top: 1px solid rgba(255, 255, 255, .06);
  transition: background .15s;
}
.f1nl-standings-link:hover {
  background: rgba(255, 255, 255, .03) !important;
  color: #00b4a6 !important;
}

/* ========================================
 * Recent Comments Widget
 * ======================================== */
.f1nl-rc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.f1nl-rc-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--f1nl-border-light4);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.f1nl-rc-list li:last-child .f1nl-rc-item {
  border-bottom: none;
}

.f1nl-rc-item:hover {
  background: var(--f1nl-bg-surface2);
}

.f1nl-rc-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color_gray);
}

.f1nl-rc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f1nl-rc-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.f1nl-rc-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--f1nl-text-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.f1nl-rc-meta {
  font-size: 11.5px;
  color: var(--f1nl-text-sub);
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.f1nl-rc-author {
  color: var(--f1nl-rc-author);
  font-weight: 600;
  white-space: nowrap;
}

.f1nl-rc-sep {
  margin: 0 4px;
  color: var(--f1nl-rc-sep);
}

.f1nl-rc-article {
  color: var(--f1nl-rc-article);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
