/* ===========================
   Presseticker Widget (consistent across all views)
   =========================== */
.widget.pressfeed {
  background: #fff;
  font-size: 0.95rem;
}

.pressfeed-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #eee;
  background: #fff;
  box-shadow: 0 2px 4px var(--ci-shadow); /* Small shadow underneath */
  border-radius: 4px;
  overflow: hidden;
  transition: background 0.2s ease;
}

.pressfeed-item:last-child {
  border-bottom: none;
}

.pressfeed-item:hover {
  background: #fdf0f0;
}

.pressfeed-item img.thumb {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 3px;
}

/* Link container with title text and icon */
.pressfeed-item a {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
  text-decoration: none;
  line-height: 1.2em;
  transition: color 0.2s ease;
}

/* Title text limited to two lines */
.pressfeed-item a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.pressfeed-item a:hover {
  color: red;
}

.pressfeed-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  margin-left: 0.5rem;
  color: var(--ci-accent);
  transition: color 0.2s ease;
}

.pressfeed-item a:hover .pressfeed-arrow {
  color: red;
}

.widget-footer {
  padding: 0.6rem 0.9rem;
  text-align: center;
  background: #f9f9f9;
  border-top: 1px solid #eee;
}

.widget-link {
  color: var(--ci-accent);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.widget-link i {
  transition: transform 0.2s ease;
}

.widget-link:hover {
  color: var(--ci-accent-dark);
}

.widget-link:hover i {
  transform: translateX(3px);
}

/* Outer wrapper: fixed height for 5 items */
.pressfeed-marquee {
  height: calc(5 * 70px); /* adjust 70px if your item height differs */
  overflow: hidden;
  position: relative;
}

.pressfeed-marquee:hover .pressfeed-track {
    animation-play-state: paused;
}

/* Scrolling container */
.pressfeed-track {
  display: flex;
  flex-direction: column;
  animation: pressfeedScroll 60s linear infinite;
}

/* Keyframes for vertical scroll */
@keyframes pressfeedScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ===========================
   Quicktable Widget
   =========================== */
.widget.quicktable {
  background: #fff;
  font-size: 0.95rem;
}

.quicktable-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0.2rem;
  border-bottom: 1px solid #eee;
  background: #fff;
  box-shadow: 0 2px 4px var(--ci-shadow); /* Small shadow underneath */
  border-radius: 4px;
  overflow: hidden;
  transition: background 0.2s ease;
}

.quicktable-item:last-child {
  border-bottom: none;
}

.quicktable-item:hover {
  background: #fdf0f0;
}

.quicktable-item.highlight-rb {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.quicktable-item .position {
  flex: 0 0 38px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  background-color: #dcdcdc;
  color: #fff;
  font-weight: 700;
  border-radius: 3px;
}

.quicktable-item .thumb {
  flex: 0 0 30px;
  width: 30px;
  height: 17px;
  object-fit: contain;
  vertical-align: middle;
}

.quicktable-item .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 2px;
  color: #797878;
}

.quicktable-item .trend {
  flex: 0 0 20px;
  text-align: center;
}

.quicktable-item .trend.up i {
  color: var(--qt-rang1); /* Green for upward trend */
}

.quicktable-item .trend.down i {
  color: var(--qt-descender); /* Red for downward trend */
}

.quicktable-item .scores {
  flex: 0 0 20px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  background-color: #dcdcdc;
  color: #fff;
  font-weight: 700;
  border-radius: 3px;
}

/* Position-specific colors */
.quicktable-item .rang1 {
  background-color: var(--qt-rang1) !important;
}

.quicktable-item .rang2,
.quicktable-item .rang3 {
  background-color: var(--qt-rang2-3) !important;
}

.quicktable-item .rang4 {
  background-color: var(--qt-rang4) !important;
}

.quicktable-item .rang5,
.quicktable-item .rang6 {
  background-color: var(--qt-rang5-6) !important;
}

.quicktable-item .relegationdown {
  background-color: var(--qt-relegationdown) !important;
}

.quicktable-item .descender {
  background-color: var(--qt-descender) !important;
}

/* Quicktable footer uses global widget-footer */

.widget.quicktable .timestamp {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0;
}

/* ===========================
   Forum Widget (Restyled)
   =========================== */

.forum-widget {
    position: relative;
    box-shadow: 0 2px 6px var(--ci-shadow);
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
    overflow: hidden;
}

.forum-post {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
    position: relative;
}
.forum-post.active {
    display: block;
}

.post-excerpt {
    background: #f8f8f8;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.post-excerpt .emoji {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.like-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--ci-accent);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: pulse 2s ease-in-out infinite;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.post-meta {
    color: #666;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-meta .topic-title {
    font-weight: 600;
    color: var(--ci-accent);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-meta a:hover {
    text-decoration: underline;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-user .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.user-avatar-fallback {
    color: #bbb;
    width: 28px;
    height: 28px;
    line-height: 28px;
}
.username {
    font-weight: bold;
    font-size: 0.85rem;
    color: #333;
}

/* Carousel dots */
.carousel-dots {
    text-align: center;
    margin-top: 0.6rem;
}
.carousel-dots .dot {
    height: 10px;
    width: 10px;
    margin: 0 3px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.carousel-dots .dot.active {
    background-color: var(--ci-accent);
}

/* Progress bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0,0,0,0.1);
}
.progress-bar .progress {
    height: 100%;
    width: 0;
    background: var(--ci-accent);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ===========================
   Poll Widget
   =========================== */
.poll-widget .widget-body {
    padding: 15px;
}


/* Poll archive uses global widget-link */

.poll-icon {
    padding-right: 12px;
    color: var(--ci-accent);
}

.poll-question {
    font-weight: bold;
    margin-bottom: 12px;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.poll-option-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 4px;
}

.poll-option-label input[type="radio"] {
    margin-top: 3px;
}

.poll-option-label span {
    line-height: 1.3;
}

.poll-btn {
    width: 100%;
    background-color: var(--ci-accent);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.poll-btn:hover {
    background-color: var(--ci-accent-dark);
}

.poll-btn.loading {
    opacity: 0.7;
}

.poll-error {
    color: var(--ci-accent);
    font-size: 12px;
    margin-top: 8px;
    display: none;
}

.poll-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-result-item {
    position: relative;
    margin-bottom: 6px;
    padding-top: 4px;
}

.poll-result-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
    height: 26px;
    align-items: center;
}

.poll-result-txt {
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
    color: var(--ci-dark-text);
}

.poll-result-pct {
    font-weight: bold;
    padding-right: 8px;
    color: #333;
}

.poll-progress-bg {
    background-color: #f0f0f0;
    height: 26px;
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.poll-progress-fill {
    background-color: var(--ci-accent);
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    height: 100%;
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progress-stripes 1s linear infinite;
    box-shadow: 0 0 10px rgba(227, 34, 25, 0.5);
}

@keyframes progress-stripes {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 1rem;
    }
}

.poll-total-container {
    display: flex;
    justify-content: flex-end;
    margin-top: -20px;
    margin-bottom: 5px;
    margin-right: -20px;
}

.poll-total-votes {
    background: var(--ci-accent);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    animation: pulse 2s ease-in-out infinite;
}

/* ===========================
   Next Match Widget
   =========================== */
.widget.nextmatch {
  background: #fff;
  font-size: 0.95rem;
}

.nextmatch-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.nextmatch-item .no-match {
  text-align: center;
  color: #666;
  padding: 1rem;
}

.widget.nextmatch .widget-header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nextmatch-item .match-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}

.nextmatch-item .competition {
  font-weight: bold;
  color: var(--ci-accent-dark);
  font-size: 0.9rem;
}

.nextmatch-item .datetime {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  color: #333;
}

.nextmatch-item .datetime .weekday {
  font-weight: bold;
}

.nextmatch-item .datetime .date {
  color: #666;
}

.nextmatch-item .match-teams {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nextmatch-item .teams-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
}

.nextmatch-item .team-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 112px;
  text-align: center;
}

.nextmatch-item .logo-box {
  width: 112px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.nextmatch-item .thumb {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.nextmatch-item .team-name {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #333;
  line-height: 1.2;
  word-wrap: break-word;
  white-space: initial;
  max-width: 112px;
  display: contents;
}

.nextmatch-item .team-column.rb .team-name {
  color: var(--ci-accent);
  font-weight: bold;
}

.team-result {
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 5px;
}

.nextmatch-item .match-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.nextmatch-item .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--ci-accent);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nextmatch-item .action-btn:hover,
.nextmatch-item .action-btn:focus {
  color: var(--ci-accent-dark);
}

.nextmatch-item .action-btn.text-btn {
  border-radius: 4px;
  padding: 6px 6px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  background: var(--bg-wrapper);
  color: var(--ci-accent);
  border: 1px solid var(--border-color);
}

.nextmatch-item .action-btn.text-btn:hover {
  background: var(--ci-bg-hover);
  color: var(--ci-text-inverse);
  text-decoration: none;
}

.nextmatch-item .action-btn .btn-text {
  margin-left: 5px;
}

.nextmatch-item .nm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ci-accent);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s, transform 0.2s;
  user-select: none;
  z-index: 10;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.nextmatch-item .nm-nav.nm-prev {
  left: -10px;
}

.nextmatch-item .nm-nav.nm-next {
  right: -10px;
}

.nextmatch-item .nm-nav:hover {
  color: var(--ci-accent-dark);
  transform: translateY(-50%) scale(1.1);
}

.nextmatch-item .collapsible {
  display: none;
  margin-top: 0.5rem;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.nextmatch-item .collapsible.active {
  display: block;
}

.nextmatch-item .collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--ci-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
}

.nextmatch-item .collapsible-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.nextmatch-item .collapsible-body {
  padding: 0.75rem;
  color: #333;
}

.nextmatch-item .collapsible-body p,
.nextmatch-item .collapsible-body a {
  margin: 0;
  font-size: 0.9rem;
}

.nextmatch-item .collapsible-body a {
  color: var(--ci-accent);
  text-decoration: none;
}

.nextmatch-item .collapsible-body a:hover {
  color: var(--ci-accent-dark);
}

.nextmatch-item .next-game {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.nextmatch-item .next-game .small-thumb {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 2px;
}

.nextmatch-item .next-game .separator {
  font-size: 0.9rem;
  color: #666;
}

.nextmatch-item .next-game .game-info {
  font-size: 0.85rem;
  color: #333;
}

.overall-stats {
  display: flex;
  justify-content: space-around;
  background: var(--bg-wrapper);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  text-align: center;
}

.nextmatch-item .stat-label {
  font-size: 0.8rem;
  opacity: 0.7;
}

.nextmatch-item .stat-value {
  font-weight: bold;
}

.nextmatch-item .history-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  justify-content: space-between;
}

.nextmatch-item .history-date {
  min-width: 60px;
  font-size: 0.85rem;
}

.nextmatch-item .history-teams {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nextmatch-item .history-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.nextmatch-item .history-score {
  margin: 0 5px;
  font-weight: bold;
}

.nextmatch-item .history-link {
  min-width: 60px;
  text-align: right;
  font-size: 0.85rem;
}

/* ===========================
   Stats Widget
   =========================== */
.widget.stats {
  background: #fff;
  font-size: 0.95rem;
}

.widget.stats .widget-body {
  padding: 0.6rem 0rem;
}

.widget.stats .no-data {
  text-align: center;
  color: #666;
  padding: 1rem;
}

.widget.stats .stats-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.widget.stats .stats-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--ci-accent);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.2s ease;
}

.widget.stats .stats-btn:hover,
.widget.stats .stats-btn:focus {
  color: var(--ci-accent-dark);
}

.widget.stats .stats-btn.active {
  color: var(--ci-accent-dark);
  background: rgba(0, 0, 0, 0.1);
}

.widget.stats .stats-btn:hover::after,
.widget.stats .stats-btn:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 10;
}

.widget.stats #widgetStatsChart,
#mainStatsChart {
  max-height: 240px;
}

/* ===========================
   Quiz Widget Styles
   =========================== */
.quiz-widget {
    background: #fff;
    color: var(--ci-dark-text);
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 5px var(--ci-shadow);
    overflow: hidden;
}

.quiz-carousel {
    position: relative;
    min-height: 200px;
}

.quiz-item {
    display: none;
    padding: 15px;
    animation: fadeIn 0.4s ease-out;
}

.quiz-item.active {
    display: block !important;
}

.quiz-difficulty {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ci-accent-dark);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.quiz-question {
    font-size: 1.05rem;
    font-weight: bold;
    line-height: 1.4;
    color: var(--ci-dark-text);
    margin-bottom: 15px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.quiz-option {
    width: 100%;
    background-color: var(--ci-accent);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
    transition: background-color 0.2s, transform 0.1s;
}

.quiz-option:hover:not(:disabled) {
    background-color: var(--ci-accent-dark);
    transform: translateX(3px);
}

.quiz-option:disabled {
    cursor: default;
    opacity: 0.8;
}

.quiz-option.correct-answer {
    background-color: #2ecc71 !important;
    color: #fff;
}

.quiz-option.wrong-answer {
    background-color: #e74c3c !important;
    color: #fff;
}

.quiz-feedback {
    margin-top: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid var(--ci-accent);
}

.feedback-status {
    font-weight: bold;
    margin-bottom: 5px;
}

.feedback-status.correct { color: #27ae60; }
.feedback-status.wrong { color: #c0392b; }

.feedback-info {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.quiz-widget .carousel-dots {
    text-align: center;
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.quiz-widget .carousel-dots .dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

.quiz-widget .carousel-dots .dot.active {
    background-color: var(--ci-accent);
    transform: scale(1.2);
}

/* ===========================
   Fanclub Widget Styles
   =========================== */
.fanclub-widget .widget-body {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  padding: 0;
}

.fanclub-container {
  position: relative;
  height: 100%;
}

.fanclub-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

.fanclub-item.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.fc-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.fc-logo {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fc-nav {
  font-size: 1.5rem;
  color: var(--ci-accent);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s, transform 0.2s;
  user-select: none;
}

.fc-nav:hover {
  color: var(--ci-accent-dark);
  transform: scale(1.1);
}

.fc-info {
  width: 100%;
}

.fc-name {
  font-size: 1.2rem;
  color: var(--ci-accent);
  margin-bottom: 0.25rem;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
}

.fc-status {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: bold;
}

.fc-details {
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fc-detail strong {
  color: #222;
}

.fc-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.fc-links a {
  font-size: 1.25rem;
  color: var(--ci-accent);
  transition: color 0.2s;
}

.fc-links a:hover {
  color: var(--ci-accent-dark);
}

/* ===========================
   Bluesky Widget
   =========================== */
.widget.bluesky .widget-body {
    max-height: 500px;
    overflow-y: auto;
    display: block !important; /* Override flex if it interferes with scrolling */
}

.widget.bluesky .bluesky-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.widget.bluesky .bluesky-item:last-child {
    border-bottom: none;
}

.widget.bluesky .bluesky-item:hover {
    background: #fcfcfc;
}

.widget.bluesky .repost-info {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.widget.bluesky .post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.widget.bluesky .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.widget.bluesky .author-meta {
    display: flex;
    flex-direction: column;
}

.widget.bluesky .display-name {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--ci-dark-text);
}

.widget.bluesky .timestamp {
    font-size: 0.75rem;
    color: #888;
}

.widget.bluesky .post-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

.widget.bluesky .post-content a {
    color: #333;
    text-decoration: none;
    background: none;
    padding-bottom: 0;
    font-weight: normal;
}

.widget.bluesky .post-content a:hover {
    color: var(--ci-accent);
}

/* ===========================
   Historic Widget (Heute vor...)
   =========================== */
.historic-widget {
  background: #fff;
  font-size: 0.95rem;
}

.historic-container {
  display: flex;
  overflow: hidden;
  position: relative;
  background: #f9f9f9;
  border-radius: 4px;
}

.historic-item {
  flex: 0 0 100%;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

.his-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.his-nav {
  font-size: 1.5rem;
  color: var(--ci-accent);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s, transform 0.2s;
  user-select: none;
}

.his-nav:hover {
  color: var(--ci-accent);
}

.his-logo {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.his-logo img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 4px;
}

.his-info {
  text-align: center;
}

.his-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.3rem 0;
  height: 65px;
}

.his-name a {
  color: var(--ci-accent);
  text-decoration: none;
}

.his-name a:hover {
  color: var(--ci-accent-dark);
}

.his-date {
  font-size: 0.85rem;
  color: #666;
  font-weight: bold;
}

.his-intro {
  font-size: 0.9rem;
  color: #333;
  margin: 0.5rem 0 1rem;
  height: 60px;
}

/* Homepage Historic Marquee */
.historic-marquee {
    height: 420px;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.historic-track {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: historicScrollHome 40s linear infinite;
}

.historic-marquee:hover .historic-track {
    animation-play-state: paused;
}

@keyframes historicScrollHome {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@media (max-width: 767px) {
    .historic-marquee {
        height: 380px;
    }
    
    .historic-track {
        gap: 10px;
        animation-duration: 30s;
    }
}
/* Forum Login Widget */
.forum-login-widget .widget-body {
  padding: 1.25rem;
}

.forum-login-widget .user-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.75rem;
  border-radius: 8px;
}

.forum-login-widget .user-avatar,
.forum-login-widget .user-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ci-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.forum-login-widget .user-meta {
  display: flex;
  flex-direction: column;
}

.forum-login-widget .welcome-text {
  font-size: 0.75rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.forum-login-widget .username {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ci-text-dark);
}

.forum-login-widget .user-stats {
  margin-bottom: 1.25rem;
}

.forum-login-widget .stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: #444;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  border-bottom: 1px solid #eee;
}

.forum-login-widget .stat-item:hover {
  color: var(--ci-accent);
}

.forum-login-widget .stat-item i {
  color: var(--ci-accent);
  width: 16px;
}

.forum-login-widget .user-actions {
  display: flex;
  gap: 0.75rem;
}

.forum-login-widget .btn-small {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.forum-login-widget .btn-forum {
  background: var(--ci-accent);
  color: #fff;
}

.forum-login-widget .btn-logout {
  background: #f1f1f1;
  color: #666;
}

.forum-login-widget .btn-logout:hover {
  background: #e5e5e5;
  color: #333;
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form .input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.login-form .input-group i {
  position: absolute;
  left: 12px;
  color: #bbb;
  font-size: 0.9rem;
}

.login-form .input-group input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.25rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.login-form .input-group input:focus {
  border-color: var(--ci-accent);
  outline: none;
}

.login-form .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
}

.login-form .btn-login {
  background: var(--ci-accent);
  color: #fff;
  padding: 0.75rem;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.2s;
}

.login-form .btn-login:hover {
  background: var(--ci-accent-dark);
}

.login-form .form-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.login-form .form-footer a {
  color: #888;
  text-decoration: none;
}

.login-form .form-footer a:hover {
  color: var(--ci-accent);
}
/* ===========================
   Spielplan Filter & Stats
   =========================== */
.spielplan-filter .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.spielplan-filter .filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spielplan-filter .date-selects {
  display: flex;
  gap: 0.5rem;
}

.spielplan-filter .filter-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid #ccc;
}

.btn-reset:hover {
  background: #ddd;
  color: #000;
}

.overall-stats-widget {
  margin-bottom: 1.5rem;
  border-top: 3px solid var(--ci-accent);
}

.overall-stats-widget .widget-body {
  padding: 1rem;
}

@media (max-width: 767px) {
  .spielplan-filter .filter-row {
    align-items: flex-start;
    gap: 1rem;
  }
  
  .spielplan-filter .filter-group {
    width: 100%;
    justify-content: space-between;
  }

  .spielplan-filter .date-selects {
    flex: 1;
    justify-content: flex-end;
  }
}
/* ===========================
   Sidebar Configuration Modal
   =========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content.sidebar-config-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalScale 0.3s ease-out;
}

@keyframes modalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    background: var(--ci-accent);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}

.close-modal {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 0 1.5rem 1.5rem;
}

.modal-body .widget-label {
    color: var(--ci-accent);
}

.config-grid {
    margin-top: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.config-header-row, .config-row {
    display: grid;
    grid-template-columns: 1fr 140px 80px;
    align-items: center;
    padding: 0.75rem 1rem;
}

.visible-head {
    text-align: right;
}

.side-select-head {
    text-align: center;
}

.widget-drag-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drag-handle {
    cursor: grab;
    color: #ccc;
    font-size: 1.1rem;
    padding: 5px;
    transition: color 0.2s;
}

.drag-handle:hover {
    color: var(--ci-accent);
}

.config-row.sortable-ghost {
    opacity: 0.4;
    background: #fdfdfd;
    border: 2px dashed var(--ci-accent);
}

.config-row.sortable-chosen {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.config-header-row {
    background: var(--ci-accent);
    font-weight: bold;
    border-bottom: 2px solid #eee;
}

.config-row {
    border-bottom: 1px solid #eee;
}

.config-row .widget-label {
    color: var(--ci-accent);
    font-weight: 600;
}

.config-row:last-child {
    border-bottom: none;
}

.widget-toggle-label {
    display: none;
}

.side-toggle {
    display: flex;
    gap: 4px;
}

.visibility-toggle {
    display: flex;
    justify-content: flex-end;
}

.toggle-btn {
    flex: 1;
    cursor: pointer;
}

.toggle-btn input {
    display: none;
}

.toggle-btn span {
    display: block;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.2s;
}

.toggle-btn input:checked + span {
    background: var(--ci-accent);
    color: #fff;
}

.toggle-btn input:not(:checked) + span {
    color: var(--ci-accent);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: #eee;
    color: #333;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--ci-accent);
    color: #fff;
    padding: 0.5rem;
    font-size: 0.85rem;
}

/* Switch styling for visibility */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .3s;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--ci-accent);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Mobile optimizations for config grid */
@media (max-width: 767px) {
    .config-header-row {
        display: none;
    }

    .config-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        row-gap: 12px;
        padding: 1rem;
    }

    .widget-drag-cell {
        grid-column: 1;
    }

    .visibility-toggle {
        grid-column: 2;
    }

    .widget-toggle-label {
        display: block;
        padding-right: 1rem;
    }

    .side-toggle {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 4px;
    }

    .toggle-btn span {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}
