/************************************
  HOME WRAPPER & LAYOUT
************************************/

/* Container that sits above the posts on the homepage */
.tiw-wrapper-on-home {
    /* Let it stretch a bit wider to match the post cards */
    width: 100%;
    margin: 30px -30px 10px;   /* negative side margins pull it out to match posts */
    padding: 0 30px;           /* add padding back so the cards themselves align */
    display: grid;
    grid-template-columns: 0.5fr 1.5fr;  /* two equal columns: timers + video */
    column-gap: 32px;
    align-items: flex-start;
    box-sizing: border-box;
}



.tiw-home-column {
    box-sizing: border-box;
}

/* On smaller screens, stack the columns */
@media (max-width: 900px) {
    .tiw-wrapper-on-home {
        grid-template-columns: 1fr !important;
        margin: 20px 0 10px;
    }
}


/************************************
  TODAY IN CLASSIC CARD
************************************/

.tiw-card {
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0 0 10px;   /* was 20px */
    ...
}

/* Header with title + region toggle */
.tiw-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #333333;
    padding-bottom: 4px;
}

.tiw-title {
    font-weight: 600;
    font-size: 16px;
}

/************************************
  REGION TOGGLE
************************************/

.tiw-region-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tiw-region-label {
    font-size: 12px;
    color: #aaaaaa;
}

.tiw-region-btn {
    background-color: #222222;
    border: 1px solid #444444;
    color: #cccccc;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
}

.tiw-region-btn-active {
    border-color: #ffcc00;
    color: #ffffff;
}

/************************************
  SECTIONS & LISTS
************************************/

.tiw-section {
    margin-top: 10px;
}

.tiw-section-small {
    margin-top: 6px;
}

.tiw-section-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffcc00; /* gold-ish section title */
}

/* Raid list as two columns */
.tiw-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 4px;
}

/* Each raid row */
.tiw-list-item {
    display: flex;
    align-items: baseline;
    padding: 1px 0;
}

/* Timer text */
.tiw-timer {
    display: inline-block;
    min-width: 80px;
    margin-right: 8px;
    font-family: monospace;
    font-size: 13px;
    color: #00ff00; /* green countdown */
}

/* Raid name */
.tiw-raid-name {
    color: #e6e6e6;
}

/* Daily reset line */
.tiw-daily-line {
    display: flex;
    align-items: center;
    padding: 2px 0;
}

/* On phones, make raids 1 column wide */
@media (max-width: 600px) {
    .tiw-list {
        grid-template-columns: 1fr;
    }
}

/************************************
  YOUTUBE CARD (RIGHT COLUMN)
************************************/

.tiw-youtube-card {
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 12px 14px;
    color: #e6e6e6;
    font-size: 14px;
	margin: 0 0 0px;   /* add this if missing */
}

.tiw-youtube-header {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #333333;
    padding-bottom: 4px;
}

/* Responsive 16:9 iframe */
.tiw-youtube-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 240px;  /* was effectively taller before */
    border: 0;
}



/************************************
  SINGLE POST / PAGE CONTEXT
************************************/

.single .tiw-card,
.page .tiw-card {
    background-color: #111111;
}
